summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2014-01-30 11:58:28 +0100
committerBastien Guerry <bzg@altern.org>2014-01-30 11:58:28 +0100
commitca69fdd88467cb65859c497770e00ebc717c9564 (patch)
treecb44931b3b01555593e805072713a5603b57f863
parent7fc6d3df3939e80b1261ed5cb8c77b389ee117af (diff)
downloadorg-mode-ca69fdd88467cb65859c497770e00ebc717c9564.tar.gz
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.
-rw-r--r--lisp/org-table.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/org-table.el b/lisp/org-table.el
index 4999f62..c952234 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))