summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2011-08-16 22:00:24 +0200
committerNicolas Goaziou <n.goaziou@gmail.com>2011-08-16 23:20:33 +0200
commit4178a154f3ec32d1fd627dfeaa8927d52f4d9f6a (patch)
tree62d6077d7c56b7c3159a2dca2c8dcc73a5bc26c2
parent6815e30b62e21261bc6acad0b36705cd880c824f (diff)
downloadorg-mode-4178a154f3ec32d1fd627dfeaa8927d52f4d9f6a.tar.gz
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.
-rw-r--r--lisp/org-footnote.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/org-footnote.el b/lisp/org-footnote.el
index 3488a1d..fe93b72 100644
--- a/lisp/org-footnote.el
+++ b/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."