diff options
| -rw-r--r-- | lisp/bookmark.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/bookmark.el b/lisp/bookmark.el index da8a4e2b809..043b8d54d1b 100644 --- a/lisp/bookmark.el +++ b/lisp/bookmark.el | |||
| @@ -1037,6 +1037,10 @@ For example, if this is a Info buffer, return the Info file's name." | |||
| 1037 | (lambda (x y) (string-lessp (car x) (car y)))))))) | 1037 | (lambda (x y) (string-lessp (car x) (car y)))))))) |
| 1038 | 1038 | ||
| 1039 | 1039 | ||
| 1040 | (defvar bookmark-after-jump-hook nil | ||
| 1041 | "Hook run after `bookmark-jump' jumps to a bookmark. | ||
| 1042 | Useful for example to unhide text in `outline-mode'.") | ||
| 1043 | |||
| 1040 | ;;;###autoload | 1044 | ;;;###autoload |
| 1041 | (defun bookmark-jump (bookmark) | 1045 | (defun bookmark-jump (bookmark) |
| 1042 | "Jump to bookmark BOOKMARK (a point in some file). | 1046 | "Jump to bookmark BOOKMARK (a point in some file). |
| @@ -1059,6 +1063,7 @@ of the old one in the permanent bookmark record." | |||
| 1059 | (and cell | 1063 | (and cell |
| 1060 | (switch-to-buffer (car cell)) | 1064 | (switch-to-buffer (car cell)) |
| 1061 | (goto-char (cdr cell)) | 1065 | (goto-char (cdr cell)) |
| 1066 | (progn (run-hooks 'bookmark-jump-hook) t) | ||
| 1062 | (if bookmark-automatically-show-annotations | 1067 | (if bookmark-automatically-show-annotations |
| 1063 | ;; if there is an annotation for this bookmark, | 1068 | ;; if there is an annotation for this bookmark, |
| 1064 | ;; show it in a buffer. | 1069 | ;; show it in a buffer. |