Преглед на файлове

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 години
родител
ревизия
ca69fdd884
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  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))