* progmodes/ada-mode.el (ada-mode):
* progmodes/antlr-mode.el (antlr-mode): * progmodes/autoconf.el (autoconf-mode): * progmodes/dcl-mode.el (dcl-mode): * progmodes/delphi.el (delphi-mode): * progmodes/ebrowse.el (ebrowse-tree-mode) (ebrowse-electric-list-mode, ebrowse-member-mode) (ebrowse-electric-position-mode): * progmodes/f90.el (f90-mode): * progmodes/fortran.el (fortran-mode): * progmodes/icon.el (icon-mode): * progmodes/idlw-help.el (idlwave-help-mode): * progmodes/idlw-shell.el (idlwave-shell-mode): * progmodes/idlwave.el (idlwave-mode): * progmodes/inf-lisp.el (inferior-lisp-mode): * progmodes/m4-mode.el (m4-mode): * progmodes/meta-mode.el (metafont-mode, metapost-mode): * progmodes/modula2.el (modula-2-mode): * progmodes/octave-inf.el (inferior-octave-mode): * progmodes/octave-mod.el (octave-mode): * progmodes/pascal.el (pascal-mode): * progmodes/sh-script.el (sh-mode): * progmodes/sql.el (sql-mode, sql-interactive-mode): * progmodes/vhdl-mode.el (vhdl-mode): * progmodes/xscheme.el (scheme-interaction-mode): Use run-mode-hooks.
This commit is contained in:
parent
4b66bdf054
commit
9a9691963d
24 changed files with 53 additions and 28 deletions
|
|
@ -43,6 +43,31 @@
|
|||
* play/snake.el (snake-mode):
|
||||
* play/solitaire.el (solitaire-mode):
|
||||
* play/tetris.el (tetris-mode):
|
||||
* progmodes/ada-mode.el (ada-mode):
|
||||
* progmodes/antlr-mode.el (antlr-mode):
|
||||
* progmodes/autoconf.el (autoconf-mode):
|
||||
* progmodes/dcl-mode.el (dcl-mode):
|
||||
* progmodes/delphi.el (delphi-mode):
|
||||
* progmodes/ebrowse.el (ebrowse-tree-mode)
|
||||
(ebrowse-electric-list-mode, ebrowse-member-mode)
|
||||
(ebrowse-electric-position-mode):
|
||||
* progmodes/f90.el (f90-mode):
|
||||
* progmodes/fortran.el (fortran-mode):
|
||||
* progmodes/icon.el (icon-mode):
|
||||
* progmodes/idlw-help.el (idlwave-help-mode):
|
||||
* progmodes/idlw-shell.el (idlwave-shell-mode):
|
||||
* progmodes/idlwave.el (idlwave-mode):
|
||||
* progmodes/inf-lisp.el (inferior-lisp-mode):
|
||||
* progmodes/m4-mode.el (m4-mode):
|
||||
* progmodes/meta-mode.el (metafont-mode, metapost-mode):
|
||||
* progmodes/modula2.el (modula-2-mode):
|
||||
* progmodes/octave-inf.el (inferior-octave-mode):
|
||||
* progmodes/octave-mod.el (octave-mode):
|
||||
* progmodes/pascal.el (pascal-mode):
|
||||
* progmodes/sh-script.el (sh-mode):
|
||||
* progmodes/sql.el (sql-mode, sql-interactive-mode):
|
||||
* progmodes/vhdl-mode.el (vhdl-mode):
|
||||
* progmodes/xscheme.el (scheme-interaction-mode):
|
||||
* replace.el (occur-mode):
|
||||
* ses.el (ses-mode):
|
||||
* simple.el (completion-list-mode):
|
||||
|
|
|
|||
|
|
@ -1369,7 +1369,7 @@ If you use ada-xref.el:
|
|||
(min ada-indent (current-column))))))
|
||||
(add-hook 'skeleton-end-hook 'ada-adjust-case-skeleton nil t)
|
||||
|
||||
(run-hooks 'ada-mode-hook)
|
||||
(run-mode-hooks 'ada-mode-hook)
|
||||
|
||||
;; To be run after the hook, in case the user modified
|
||||
;; ada-fill-comment-prefix
|
||||
|
|
|
|||
|
|
@ -2624,7 +2624,7 @@ the default language."
|
|||
(imenu-add-to-menubar
|
||||
(if (stringp antlr-imenu-name) antlr-imenu-name "Index")))
|
||||
(antlr-set-tabs)
|
||||
(run-hooks 'antlr-mode-hook))
|
||||
(run-mode-hooks 'antlr-mode-hook))
|
||||
|
||||
;; A smarter version of `group-buffers-menu-by-mode-then-alphabetically' (in
|
||||
;; XEmacs) could use the following property. The header of the submenu would
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ searching backwards at another AC_... command."
|
|||
(set (make-local-variable 'indent-line-function) #'indent-relative)
|
||||
(set (make-local-variable 'add-log-current-defun-function)
|
||||
#'autoconf-current-defun-function)
|
||||
(run-hooks 'autoconf-mode-hook))
|
||||
(run-mode-hooks 'autoconf-mode-hook))
|
||||
|
||||
(provide 'autoconf-mode)
|
||||
|
||||
|
|
|
|||
|
|
@ -641,7 +641,7 @@ There is some minimal font-lock support (see vars
|
|||
(setq mode-name "DCL")
|
||||
(use-local-map dcl-mode-map)
|
||||
(tempo-use-tag-list 'dcl-tempo-tags)
|
||||
(run-hooks 'dcl-mode-hook))
|
||||
(run-mode-hooks 'dcl-mode-hook))
|
||||
|
||||
|
||||
;;; *** Movement commands ***************************************************
|
||||
|
|
|
|||
|
|
@ -2002,7 +2002,7 @@ no args, if that value is non-nil."
|
|||
(delphi-parse-region (point-min) (point-max))
|
||||
(delphi-progress-done))))
|
||||
|
||||
(run-hooks 'delphi-mode-hook))
|
||||
(run-mode-hooks 'delphi-mode-hook))
|
||||
|
||||
;;; arch-tag: 410e192d-e9b5-4397-ad62-12340fc3fa41
|
||||
;;; delphi.el ends here
|
||||
|
|
|
|||
|
|
@ -1162,7 +1162,7 @@ Tree mode key bindings:
|
|||
(when tree
|
||||
(ebrowse-redraw-tree)
|
||||
(set-buffer-modified-p nil))
|
||||
(run-hooks 'ebrowse-tree-mode-hook)))
|
||||
(run-mode-hooks 'ebrowse-tree-mode-hook)))
|
||||
|
||||
|
||||
|
||||
|
|
@ -2026,7 +2026,7 @@ COLLAPSE non-nil means collapse the branch."
|
|||
truncate-lines t
|
||||
buffer-read-only t
|
||||
major-mode 'ebrowse-electric-list-mode)
|
||||
(run-hooks 'ebrowse-electric-list-mode-hook))
|
||||
(run-mode-hooks 'ebrowse-electric-list-mode-hook))
|
||||
|
||||
|
||||
(defun ebrowse-list-tree-buffers ()
|
||||
|
|
@ -2277,7 +2277,7 @@ See 'Electric-command-loop' for a description of STATE and CONDITION."
|
|||
ebrowse--const-display-flag nil
|
||||
ebrowse--pure-display-flag nil)
|
||||
(modify-syntax-entry ?_ (char-to-string (char-syntax ?a)))
|
||||
(run-hooks 'ebrowse-member-mode-hook))
|
||||
(run-mode-hooks 'ebrowse-member-mode-hook))
|
||||
|
||||
|
||||
|
||||
|
|
@ -3987,7 +3987,7 @@ Runs the hook `ebrowse-electric-position-mode-hook'."
|
|||
truncate-lines t
|
||||
buffer-read-only t
|
||||
major-mode 'ebrowse-electric-position-mode)
|
||||
(run-hooks 'ebrowse-electric-position-mode-hook))
|
||||
(run-mode-hooks 'ebrowse-electric-position-mode-hook))
|
||||
|
||||
|
||||
(defun ebrowse-draw-position-buffer ()
|
||||
|
|
|
|||
|
|
@ -830,7 +830,7 @@ with no args, if that value is non-nil."
|
|||
(set (make-local-variable 'end-of-defun-function) 'f90-end-of-subprogram)
|
||||
(set (make-local-variable 'add-log-current-defun-function)
|
||||
#'f90-current-defun)
|
||||
(run-hooks 'f90-mode-hook))
|
||||
(run-mode-hooks 'f90-mode-hook))
|
||||
|
||||
|
||||
;; Inline-functions.
|
||||
|
|
|
|||
|
|
@ -799,7 +799,7 @@ with no args, if that value is non-nil."
|
|||
#'fortran-current-defun)
|
||||
(set (make-local-variable 'dabbrev-case-fold-search) 'case-fold-search)
|
||||
(set (make-local-variable 'gud-find-expr-function) 'fortran-gud-find-expr)
|
||||
(run-hooks 'fortran-mode-hook))
|
||||
(run-mode-hooks 'fortran-mode-hook))
|
||||
|
||||
|
||||
(defun fortran-gud-find-expr ()
|
||||
|
|
|
|||
|
|
@ -205,7 +205,7 @@ with no args, if that value is non-nil."
|
|||
(cons '(icon-mode "\\<procedure\\>" "\\<end\\>" nil
|
||||
icon-forward-sexp-function)
|
||||
hs-special-modes-alist)))
|
||||
(run-hooks 'icon-mode-hook))
|
||||
(run-mode-hooks 'icon-mode-hook))
|
||||
|
||||
;; This is used by indent-for-comment to decide how much to
|
||||
;; indent a comment in Icon code based on its context.
|
||||
|
|
|
|||
|
|
@ -278,7 +278,7 @@ Here are all keybindings.
|
|||
(set (make-local-variable 'idlwave-help-def-pos) nil)
|
||||
(set (make-local-variable 'idlwave-help-args) nil)
|
||||
(set (make-local-variable 'idlwave-help-in-header) nil)
|
||||
(run-hooks 'idlwave-help-mode-hook))
|
||||
(run-mode-hooks 'idlwave-help-mode-hook))
|
||||
|
||||
(defun idlwave-html-help-location ()
|
||||
"Return the help directory where HTML files are, or nil if that is unknown."
|
||||
|
|
|
|||
|
|
@ -1055,7 +1055,7 @@ IDL has currently stepped.")
|
|||
(set (make-local-variable 'tool-bar-map) nil)
|
||||
|
||||
;; Run the hooks.
|
||||
(run-hooks 'idlwave-shell-mode-hook)
|
||||
(run-mode-hooks 'idlwave-shell-mode-hook)
|
||||
(idlwave-shell-send-command idlwave-shell-initial-commands nil 'hide)
|
||||
;; Turn off IDL's ^d interpreting, and define a system
|
||||
;; variable which knows the version of IDLWAVE
|
||||
|
|
|
|||
|
|
@ -1954,7 +1954,7 @@ The main features of this mode are
|
|||
(idlwave-new-buffer-update)
|
||||
|
||||
;; Run the mode hook
|
||||
(run-hooks 'idlwave-mode-hook))
|
||||
(run-mode-hooks 'idlwave-mode-hook))
|
||||
|
||||
(defvar idlwave-setup-done nil)
|
||||
(defun idlwave-setup ()
|
||||
|
|
|
|||
|
|
@ -269,7 +269,7 @@ to continue it."
|
|||
(use-local-map inferior-lisp-mode-map) ;c-c c-k for "kompile" file
|
||||
(setq comint-get-old-input (function lisp-get-old-input))
|
||||
(setq comint-input-filter (function lisp-input-filter))
|
||||
(run-hooks 'inferior-lisp-mode-hook))
|
||||
(run-mode-hooks 'inferior-lisp-mode-hook))
|
||||
|
||||
(defun lisp-get-old-input ()
|
||||
"Return a string containing the sexp ending at point."
|
||||
|
|
|
|||
|
|
@ -147,7 +147,7 @@
|
|||
font-lock-defaults '(m4-font-lock-keywords nil)
|
||||
)
|
||||
(set-syntax-table m4-mode-syntax-table)
|
||||
(run-hooks 'm4-mode-hook))
|
||||
(run-mode-hooks 'm4-mode-hook))
|
||||
|
||||
(provide 'm4-mode)
|
||||
;;stuff to play with for debugging
|
||||
|
|
|
|||
|
|
@ -998,7 +998,7 @@ Turning on Metafont mode calls the value of the variables
|
|||
(setq meta-complete-list
|
||||
(list (list "\\<\\(\\sw+\\)" 1 'meta-symbol-list)
|
||||
(list "" 'ispell-complete-word)))
|
||||
(run-hooks 'meta-common-mode-hook 'metafont-mode-hook))
|
||||
(run-mode-hooks 'meta-common-mode-hook 'metafont-mode-hook))
|
||||
|
||||
;;;###autoload
|
||||
(defun metapost-mode ()
|
||||
|
|
@ -1023,7 +1023,7 @@ Turning on MetaPost mode calls the value of the variable
|
|||
(setq meta-complete-list
|
||||
(list (list "\\<\\(\\sw+\\)" 1 'meta-symbol-list)
|
||||
(list "" 'ispell-complete-word)))
|
||||
(run-hooks 'meta-common-mode-hook 'metapost-mode-hook))
|
||||
(run-mode-hooks 'meta-common-mode-hook 'metapost-mode-hook))
|
||||
|
||||
|
||||
;;; Just in case ...
|
||||
|
|
|
|||
|
|
@ -172,7 +172,7 @@ followed by the first character of the construct.
|
|||
;; Obsoleted by Emacs 19.35 parse-partial-sexp's COMMENTSTOP.
|
||||
;(font-lock-comment-start-regexp . "(\\*")
|
||||
))
|
||||
(run-hooks 'm2-mode-hook))
|
||||
(run-mode-hooks 'm2-mode-hook))
|
||||
|
||||
;; Regexps written with help from Ron Forrester <ron@orcad.com>
|
||||
;; and Spencer Allain <sallain@teknowledge.com>.
|
||||
|
|
|
|||
|
|
@ -158,7 +158,7 @@ Entry to this mode successively runs the hooks `comint-mode-hook' and
|
|||
inferior-octave-dynamic-complete-functions)
|
||||
(comint-read-input-ring t)
|
||||
|
||||
(run-hooks 'inferior-octave-mode-hook))
|
||||
(run-mode-hooks 'inferior-octave-mode-hook))
|
||||
|
||||
;;;###autoload
|
||||
(defun inferior-octave (&optional arg)
|
||||
|
|
|
|||
|
|
@ -555,7 +555,7 @@ including a reproducible test case and send the message."
|
|||
|
||||
(octave-add-octave-menu)
|
||||
(octave-initialize-completions)
|
||||
(run-hooks 'octave-mode-hook))
|
||||
(run-mode-hooks 'octave-mode-hook))
|
||||
|
||||
;;; Miscellaneous useful functions
|
||||
(defun octave-describe-major-mode ()
|
||||
|
|
|
|||
|
|
@ -383,7 +383,7 @@ no args, if that value is non-nil."
|
|||
(make-local-variable 'imenu-generic-expression)
|
||||
(setq imenu-generic-expression pascal-imenu-generic-expression)
|
||||
(setq imenu-case-fold-search t)
|
||||
(run-hooks 'pascal-mode-hook))
|
||||
(run-mode-hooks 'pascal-mode-hook))
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1392,7 +1392,7 @@ with your script for an edit-interpret-debug cycle."
|
|||
(string-match "\\.m?spec\\'" buffer-file-name))
|
||||
"rpm")))))
|
||||
(sh-set-shell (or interpreter sh-shell-file) nil nil))
|
||||
(run-hooks 'sh-mode-hook))
|
||||
(run-mode-hooks 'sh-mode-hook))
|
||||
|
||||
;;;###autoload
|
||||
(defalias 'shell-script-mode 'sh-mode)
|
||||
|
|
|
|||
|
|
@ -2249,7 +2249,7 @@ you must tell Emacs. Here's how to do that in your `~/.emacs' file:
|
|||
(setq local-abbrev-table sql-mode-abbrev-table)
|
||||
(setq abbrev-all-caps 1)
|
||||
;; Run hook
|
||||
(run-hooks 'sql-mode-hook)
|
||||
(run-mode-hooks 'sql-mode-hook)
|
||||
;; Catch changes to sql-product and highlight accordingly
|
||||
(sql-highlight-product)
|
||||
(add-hook 'hack-local-variables-hook 'sql-highlight-product t t))
|
||||
|
|
@ -2367,7 +2367,7 @@ you entered, right above the output it created.
|
|||
(make-local-variable 'sql-input-ring-separator)
|
||||
(make-local-variable 'sql-input-ring-file-name)
|
||||
;; Run hook.
|
||||
(run-hooks 'sql-interactive-mode-hook)
|
||||
(run-mode-hooks 'sql-interactive-mode-hook)
|
||||
;; Set comint based on user overrides.
|
||||
(setq comint-prompt-regexp sql-prompt-regexp)
|
||||
(setq left-margin sql-prompt-length)
|
||||
|
|
|
|||
|
|
@ -4622,7 +4622,7 @@ Key bindings:
|
|||
(if noninteractive "" " See menu for documentation and release notes."))
|
||||
|
||||
;; run hooks
|
||||
(run-hooks 'vhdl-mode-hook))
|
||||
(run-mode-hooks 'vhdl-mode-hook))
|
||||
|
||||
(defun vhdl-activate-customizations ()
|
||||
"Activate all customizations on local variables."
|
||||
|
|
|
|||
|
|
@ -338,7 +338,7 @@ with no args, if that value is non-nil.
|
|||
(setq xscheme-previous-process-state (cons nil nil)))))))
|
||||
(scheme-interaction-mode-initialize)
|
||||
(scheme-mode-variables)
|
||||
(run-hooks 'scheme-mode-hook 'scheme-interaction-mode-hook))
|
||||
(run-mode-hooks 'scheme-mode-hook 'scheme-interaction-mode-hook))
|
||||
|
||||
(defun exit-scheme-interaction-mode ()
|
||||
"Take buffer out of scheme interaction mode"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue