Pārlūkot izejas kodu

org-footnote: do not suggest bindings outside Org

* lisp/org-footnote.el (org-footnote-goto-definition): don't send
  erroneous message: suggested bindings might not be set outside Org.
Nicolas Goaziou 13 gadi atpakaļ
vecāks
revīzija
4178a154f3
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      lisp/org-footnote.el

+ 2 - 1
lisp/org-footnote.el

@@ -351,7 +351,8 @@ If no footnote is found, return nil."
       (looking-at (format "\\[%s\\]\\|\\[%s:" label label))
       (goto-char (match-end 0))
       (org-show-context 'link-search)
-      (message "Edit definition and go back with `C-c &' or, if unique, with `C-c C-c'."))))
+      (when (org-mode-p)
+	(message "Edit definition and go back with `C-c &' or, if unique, with `C-c C-c'.")))))
 
 (defun org-footnote-goto-previous-reference (label)
   "Find the first closest (to point) reference of footnote with label LABEL."