소스 검색

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 12 년 전
부모
커밋
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))