From: Lute Kamstra Date: Thu, 26 May 2005 17:13:30 +0000 (+0000) Subject: * textmodes/reftex-index.el (reftex-index-mode) X-Git-Tag: emacs-pretest-22.0.90~9516 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7023d838b077e093d392909ca08f5d90b64c0985;p=emacs.git * textmodes/reftex-index.el (reftex-index-mode) (reftex-index-phrases-mode): * textmodes/reftex-sel.el (reftex-select-label-mode) (reftex-select-bib-mode): * textmodes/reftex-toc.el (reftex-toc-mode): Use run-mode-hooks. --- diff --git a/lisp/textmodes/reftex-index.el b/lisp/textmodes/reftex-index.el index ff2ea70a011..43e56df6685 100644 --- a/lisp/textmodes/reftex-index.el +++ b/lisp/textmodes/reftex-index.el @@ -310,7 +310,7 @@ Here are all local bindings. (easy-menu-add reftex-index-menu reftex-index-map) (add-hook 'post-command-hook 'reftex-index-post-command-hook nil t) (add-hook 'pre-command-hook 'reftex-index-pre-command-hook nil t) - (run-hooks 'reftex-index-mode-hook)) + (run-mode-hooks 'reftex-index-mode-hook)) (defconst reftex-index-help " AVAILABLE KEYS IN INDEX BUFFER @@ -1308,7 +1308,7 @@ Here are all local bindings. reftex-index-phrases-font-lock-defaults) (easy-menu-add reftex-index-phrases-menu reftex-index-phrases-map) (set (make-local-variable 'reftex-index-phrases-marker) (make-marker)) - (run-hooks 'reftex-index-phrases-mode-hook)) + (run-mode-hooks 'reftex-index-phrases-mode-hook)) (add-hook 'reftex-index-phrases-mode-hook 'turn-on-font-lock) ;; Font Locking stuff diff --git a/lisp/textmodes/reftex-sel.el b/lisp/textmodes/reftex-sel.el index eb8c3035c90..725c5122a0b 100644 --- a/lisp/textmodes/reftex-sel.el +++ b/lisp/textmodes/reftex-sel.el @@ -60,7 +60,7 @@ During a selection process, these are the local bindings. (when (syntax-table-p reftex-latex-syntax-table) (set-syntax-table reftex-latex-syntax-table)) ;; We do not set a local map - reftex-select-item does this. - (run-hooks 'reftex-select-label-mode-hook)) + (run-mode-hooks 'reftex-select-label-mode-hook)) (defvar reftex-select-bib-map nil "Keymap used for *RefTeX Select* buffer, when selecting a BibTeX entry. @@ -88,7 +88,7 @@ During a selection process, these are the local bindings. mode-name "BSelect") (set (make-local-variable 'reftex-select-marked) nil) ;; We do not set a local map - reftex-select-item does this. - (run-hooks 'reftex-select-bib-mode-hook)) + (run-mode-hooks 'reftex-select-bib-mode-hook)) ;;; (defun reftex-get-offset (buf here-am-I &optional typekey toc index file) ;;; ;; Find the correct offset data, like insert-docstruct would, but faster. diff --git a/lisp/textmodes/reftex-toc.el b/lisp/textmodes/reftex-toc.el index 8ad811391c7..b5edba97f4b 100644 --- a/lisp/textmodes/reftex-toc.el +++ b/lisp/textmodes/reftex-toc.el @@ -73,7 +73,7 @@ Here are all local bindings. (add-hook 'post-command-hook 'reftex-toc-post-command-hook nil t) (add-hook 'pre-command-hook 'reftex-toc-pre-command-hook nil t) (easy-menu-add reftex-toc-menu reftex-toc-map) - (run-hooks 'reftex-toc-mode-hook)) + (run-mode-hooks 'reftex-toc-mode-hook)) (defvar reftex-last-toc-file nil "Stores the file name from which `reftex-toc' was called. For redo command.")