From ca69fdd88467cb65859c497770e00ebc717c9564 Mon Sep 17 00:00:00 2001 From: Bastien Guerry Date: Thu, 30 Jan 2014 11:58:28 +0100 Subject: [PATCH] org-table.el (org-table-field-info): Throw a user error when not at a table * org-table.el (org-table-field-info): Throw a user error when not at a table. --- lisp/org-table.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/org-table.el b/lisp/org-table.el index 4999f62fe..c95223411 100644 --- a/lisp/org-table.el +++ b/lisp/org-table.el @@ -1241,6 +1241,7 @@ is always the old value." (defun org-table-field-info (arg) "Show info about the current field, and highlight any reference at point." (interactive "P") + (unless (org-at-table-p) (user-error "Not at a table")) (org-table-get-specials) (save-excursion (let* ((pos (point)) -- 2.11.4.GIT