Browse Source

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.
Bastien Guerry 11 years ago
parent
commit
ca69fdd884
1 changed files with 1 additions and 0 deletions
  1. 1 0
      lisp/org-table.el

+ 1 - 0
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))