# HG changeset patch # User Lute Kamstra # Date 1117110519 0 # Node ID d00be6e651cdd2119e078e85bdb496458e75bc06 # Parent 5aa3c60503e2cc7d16202bfd3a9e1daefdbbeeee (bookmark-read-annotation-mode, bookmark-edit-annotation-mode) (bookmark-bmenu-mode): Use run-mode-hooks. diff -r 5aa3c60503e2 -r d00be6e651cd lisp/bookmark.el --- a/lisp/bookmark.el Thu May 26 12:24:05 2005 +0000 +++ b/lisp/bookmark.el Thu May 26 12:28:39 2005 +0000 @@ -866,7 +866,7 @@ (use-local-map bookmark-read-annotation-mode-map) (setq major-mode 'bookmark-read-annotation-mode) (insert (funcall bookmark-read-annotation-text-func bookmark)) - (run-hooks 'text-mode-hook)) + (run-mode-hooks 'text-mode-hook)) (defun bookmark-read-annotation (parg bookmark) @@ -903,7 +903,7 @@ (let ((annotation (bookmark-get-annotation bookmark))) (if (and annotation (not (string-equal annotation ""))) (insert annotation))) - (run-hooks 'text-mode-hook)) + (run-mode-hooks 'text-mode-hook)) (defun bookmark-send-edited-annotation () @@ -1618,7 +1618,7 @@ (setq buffer-read-only t) (setq major-mode 'bookmark-bmenu-mode) (setq mode-name "Bookmark Menu") - (run-hooks 'bookmark-bmenu-mode-hook)) + (run-mode-hooks 'bookmark-bmenu-mode-hook)) (defun bookmark-bmenu-toggle-filenames (&optional show)