aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Fogel1995-03-20 14:46:38 +0000
committerKarl Fogel1995-03-20 14:46:38 +0000
commit2c9ad69fecd6f560cb6bc4bd9021d6acb7c39e0a (patch)
treeb5c33a8ec720786d7a940309ded9adabcc75fa16
parent73e78cf15e394e3fa9a79d9aa0d75a48c005834d (diff)
downloademacs-2c9ad69fecd6f560cb6bc4bd9021d6acb7c39e0a.tar.gz
emacs-2c9ad69fecd6f560cb6bc4bd9021d6acb7c39e0a.zip
(bookmark-automatically-show-annotations): new var.
(bookmark-jump): only show annotation if above var is non-nil.
-rw-r--r--lisp/bookmark.el13
1 files changed, 9 insertions, 4 deletions
diff --git a/lisp/bookmark.el b/lisp/bookmark.el
index 79b2904898a..645a55688ce 100644
--- a/lisp/bookmark.el
+++ b/lisp/bookmark.el
@@ -5,7 +5,7 @@
5;; Author: Karl Fogel <kfogel@cyclic.com> 5;; Author: Karl Fogel <kfogel@cyclic.com>
6;; Maintainer: Karl Fogel <kfogel@cyclic.com> 6;; Maintainer: Karl Fogel <kfogel@cyclic.com>
7;; Created: July, 1993 7;; Created: July, 1993
8;; Author's Update Number: 2.6.9 8;; Author's Update Number: 2.6.10
9;; Keywords: bookmarks, placeholders, annotations 9;; Keywords: bookmarks, placeholders, annotations
10 10
11;;; Summary: 11;;; Summary:
@@ -252,6 +252,10 @@ name. Otherwise they will be displayed in LIFO order (that is, most
252recently set ones come first, oldest ones come last).") 252recently set ones come first, oldest ones come last).")
253 253
254 254
255(defvar bookmark-automatically-show-annotations t
256 "*Nil means don't show annotations when jumping to a bookmark.")
257
258
255(defvar bookmark-search-size 16 259(defvar bookmark-search-size 16
256 "Length of the context strings recorded on either side of a bookmark.") 260 "Length of the context strings recorded on either side of a bookmark.")
257 261
@@ -980,9 +984,10 @@ of the old one in the permanent bookmark record."
980 (and cell 984 (and cell
981 (switch-to-buffer (car cell)) 985 (switch-to-buffer (car cell))
982 (goto-char (cdr cell)) 986 (goto-char (cdr cell))
983 ;; if there is an annotation for this bookmark, 987 (if bookmark-automatically-show-annotations
984 ;; show it in a buffer. 988 ;; if there is an annotation for this bookmark,
985 (bookmark-show-annotation str)))) 989 ;; show it in a buffer.
990 (bookmark-show-annotation str)))))
986 991
987 992
988(defun bookmark-jump-noselect (str) 993(defun bookmark-jump-noselect (str)