aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLute Kamstra2005-05-26 16:43:37 +0000
committerLute Kamstra2005-05-26 16:43:37 +0000
commit9a9691963ddcdcbe3aeba52c591b728b73e8796c (patch)
tree820492d1c148476accdfb7b4eed4b002a76d3bc3
parent4b66bdf054026e8e07f935fe329497a03a3d3826 (diff)
downloademacs-9a9691963ddcdcbe3aeba52c591b728b73e8796c.tar.gz
emacs-9a9691963ddcdcbe3aeba52c591b728b73e8796c.zip
* 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.
-rw-r--r--lisp/ChangeLog25
-rw-r--r--lisp/progmodes/ada-mode.el2
-rw-r--r--lisp/progmodes/antlr-mode.el2
-rw-r--r--lisp/progmodes/autoconf.el2
-rw-r--r--lisp/progmodes/dcl-mode.el2
-rw-r--r--lisp/progmodes/delphi.el2
-rw-r--r--lisp/progmodes/ebrowse.el8
-rw-r--r--lisp/progmodes/f90.el2
-rw-r--r--lisp/progmodes/fortran.el2
-rw-r--r--lisp/progmodes/icon.el2
-rw-r--r--lisp/progmodes/idlw-help.el2
-rw-r--r--lisp/progmodes/idlw-shell.el2
-rw-r--r--lisp/progmodes/idlwave.el2
-rw-r--r--lisp/progmodes/inf-lisp.el2
-rw-r--r--lisp/progmodes/m4-mode.el2
-rw-r--r--lisp/progmodes/meta-mode.el4
-rw-r--r--lisp/progmodes/modula2.el2
-rw-r--r--lisp/progmodes/octave-inf.el2
-rw-r--r--lisp/progmodes/octave-mod.el2
-rw-r--r--lisp/progmodes/pascal.el2
-rw-r--r--lisp/progmodes/sh-script.el2
-rw-r--r--lisp/progmodes/sql.el4
-rw-r--r--lisp/progmodes/vhdl-mode.el2
-rw-r--r--lisp/progmodes/xscheme.el2
24 files changed, 53 insertions, 28 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 057ed951994..70a22f6123e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -43,6 +43,31 @@
43 * play/snake.el (snake-mode): 43 * play/snake.el (snake-mode):
44 * play/solitaire.el (solitaire-mode): 44 * play/solitaire.el (solitaire-mode):
45 * play/tetris.el (tetris-mode): 45 * play/tetris.el (tetris-mode):
46 * progmodes/ada-mode.el (ada-mode):
47 * progmodes/antlr-mode.el (antlr-mode):
48 * progmodes/autoconf.el (autoconf-mode):
49 * progmodes/dcl-mode.el (dcl-mode):
50 * progmodes/delphi.el (delphi-mode):
51 * progmodes/ebrowse.el (ebrowse-tree-mode)
52 (ebrowse-electric-list-mode, ebrowse-member-mode)
53 (ebrowse-electric-position-mode):
54 * progmodes/f90.el (f90-mode):
55 * progmodes/fortran.el (fortran-mode):
56 * progmodes/icon.el (icon-mode):
57 * progmodes/idlw-help.el (idlwave-help-mode):
58 * progmodes/idlw-shell.el (idlwave-shell-mode):
59 * progmodes/idlwave.el (idlwave-mode):
60 * progmodes/inf-lisp.el (inferior-lisp-mode):
61 * progmodes/m4-mode.el (m4-mode):
62 * progmodes/meta-mode.el (metafont-mode, metapost-mode):
63 * progmodes/modula2.el (modula-2-mode):
64 * progmodes/octave-inf.el (inferior-octave-mode):
65 * progmodes/octave-mod.el (octave-mode):
66 * progmodes/pascal.el (pascal-mode):
67 * progmodes/sh-script.el (sh-mode):
68 * progmodes/sql.el (sql-mode, sql-interactive-mode):
69 * progmodes/vhdl-mode.el (vhdl-mode):
70 * progmodes/xscheme.el (scheme-interaction-mode):
46 * replace.el (occur-mode): 71 * replace.el (occur-mode):
47 * ses.el (ses-mode): 72 * ses.el (ses-mode):
48 * simple.el (completion-list-mode): 73 * simple.el (completion-list-mode):
diff --git a/lisp/progmodes/ada-mode.el b/lisp/progmodes/ada-mode.el
index d31978b5ec9..bc0edb1f047 100644
--- a/lisp/progmodes/ada-mode.el
+++ b/lisp/progmodes/ada-mode.el
@@ -1369,7 +1369,7 @@ If you use ada-xref.el:
1369 (min ada-indent (current-column)))))) 1369 (min ada-indent (current-column))))))
1370 (add-hook 'skeleton-end-hook 'ada-adjust-case-skeleton nil t) 1370 (add-hook 'skeleton-end-hook 'ada-adjust-case-skeleton nil t)
1371 1371
1372 (run-hooks 'ada-mode-hook) 1372 (run-mode-hooks 'ada-mode-hook)
1373 1373
1374 ;; To be run after the hook, in case the user modified 1374 ;; To be run after the hook, in case the user modified
1375 ;; ada-fill-comment-prefix 1375 ;; ada-fill-comment-prefix
diff --git a/lisp/progmodes/antlr-mode.el b/lisp/progmodes/antlr-mode.el
index 03587577f59..bdf376bfab7 100644
--- a/lisp/progmodes/antlr-mode.el
+++ b/lisp/progmodes/antlr-mode.el
@@ -2624,7 +2624,7 @@ the default language."
2624 (imenu-add-to-menubar 2624 (imenu-add-to-menubar
2625 (if (stringp antlr-imenu-name) antlr-imenu-name "Index"))) 2625 (if (stringp antlr-imenu-name) antlr-imenu-name "Index")))
2626 (antlr-set-tabs) 2626 (antlr-set-tabs)
2627 (run-hooks 'antlr-mode-hook)) 2627 (run-mode-hooks 'antlr-mode-hook))
2628 2628
2629;; A smarter version of `group-buffers-menu-by-mode-then-alphabetically' (in 2629;; A smarter version of `group-buffers-menu-by-mode-then-alphabetically' (in
2630;; XEmacs) could use the following property. The header of the submenu would 2630;; XEmacs) could use the following property. The header of the submenu would
diff --git a/lisp/progmodes/autoconf.el b/lisp/progmodes/autoconf.el
index ec83e33b10d..908b18b070b 100644
--- a/lisp/progmodes/autoconf.el
+++ b/lisp/progmodes/autoconf.el
@@ -103,7 +103,7 @@ searching backwards at another AC_... command."
103 (set (make-local-variable 'indent-line-function) #'indent-relative) 103 (set (make-local-variable 'indent-line-function) #'indent-relative)
104 (set (make-local-variable 'add-log-current-defun-function) 104 (set (make-local-variable 'add-log-current-defun-function)
105 #'autoconf-current-defun-function) 105 #'autoconf-current-defun-function)
106 (run-hooks 'autoconf-mode-hook)) 106 (run-mode-hooks 'autoconf-mode-hook))
107 107
108(provide 'autoconf-mode) 108(provide 'autoconf-mode)
109 109
diff --git a/lisp/progmodes/dcl-mode.el b/lisp/progmodes/dcl-mode.el
index b52e004e5bb..0a89091165c 100644
--- a/lisp/progmodes/dcl-mode.el
+++ b/lisp/progmodes/dcl-mode.el
@@ -641,7 +641,7 @@ There is some minimal font-lock support (see vars
641 (setq mode-name "DCL") 641 (setq mode-name "DCL")
642 (use-local-map dcl-mode-map) 642 (use-local-map dcl-mode-map)
643 (tempo-use-tag-list 'dcl-tempo-tags) 643 (tempo-use-tag-list 'dcl-tempo-tags)
644 (run-hooks 'dcl-mode-hook)) 644 (run-mode-hooks 'dcl-mode-hook))
645 645
646 646
647;;; *** Movement commands *************************************************** 647;;; *** Movement commands ***************************************************
diff --git a/lisp/progmodes/delphi.el b/lisp/progmodes/delphi.el
index 8d3ee554026..3d86f15c175 100644
--- a/lisp/progmodes/delphi.el
+++ b/lisp/progmodes/delphi.el
@@ -2002,7 +2002,7 @@ no args, if that value is non-nil."
2002 (delphi-parse-region (point-min) (point-max)) 2002 (delphi-parse-region (point-min) (point-max))
2003 (delphi-progress-done)))) 2003 (delphi-progress-done))))
2004 2004
2005 (run-hooks 'delphi-mode-hook)) 2005 (run-mode-hooks 'delphi-mode-hook))
2006 2006
2007;;; arch-tag: 410e192d-e9b5-4397-ad62-12340fc3fa41 2007;;; arch-tag: 410e192d-e9b5-4397-ad62-12340fc3fa41
2008;;; delphi.el ends here 2008;;; delphi.el ends here
diff --git a/lisp/progmodes/ebrowse.el b/lisp/progmodes/ebrowse.el
index 6dd15897e7b..953ecd79f7f 100644
--- a/lisp/progmodes/ebrowse.el
+++ b/lisp/progmodes/ebrowse.el
@@ -1162,7 +1162,7 @@ Tree mode key bindings:
1162 (when tree 1162 (when tree
1163 (ebrowse-redraw-tree) 1163 (ebrowse-redraw-tree)
1164 (set-buffer-modified-p nil)) 1164 (set-buffer-modified-p nil))
1165 (run-hooks 'ebrowse-tree-mode-hook))) 1165 (run-mode-hooks 'ebrowse-tree-mode-hook)))
1166 1166
1167 1167
1168 1168
@@ -2026,7 +2026,7 @@ COLLAPSE non-nil means collapse the branch."
2026 truncate-lines t 2026 truncate-lines t
2027 buffer-read-only t 2027 buffer-read-only t
2028 major-mode 'ebrowse-electric-list-mode) 2028 major-mode 'ebrowse-electric-list-mode)
2029 (run-hooks 'ebrowse-electric-list-mode-hook)) 2029 (run-mode-hooks 'ebrowse-electric-list-mode-hook))
2030 2030
2031 2031
2032(defun ebrowse-list-tree-buffers () 2032(defun ebrowse-list-tree-buffers ()
@@ -2277,7 +2277,7 @@ See 'Electric-command-loop' for a description of STATE and CONDITION."
2277 ebrowse--const-display-flag nil 2277 ebrowse--const-display-flag nil
2278 ebrowse--pure-display-flag nil) 2278 ebrowse--pure-display-flag nil)
2279 (modify-syntax-entry ?_ (char-to-string (char-syntax ?a))) 2279 (modify-syntax-entry ?_ (char-to-string (char-syntax ?a)))
2280 (run-hooks 'ebrowse-member-mode-hook)) 2280 (run-mode-hooks 'ebrowse-member-mode-hook))
2281 2281
2282 2282
2283 2283
@@ -3987,7 +3987,7 @@ Runs the hook `ebrowse-electric-position-mode-hook'."
3987 truncate-lines t 3987 truncate-lines t
3988 buffer-read-only t 3988 buffer-read-only t
3989 major-mode 'ebrowse-electric-position-mode) 3989 major-mode 'ebrowse-electric-position-mode)
3990 (run-hooks 'ebrowse-electric-position-mode-hook)) 3990 (run-mode-hooks 'ebrowse-electric-position-mode-hook))
3991 3991
3992 3992
3993(defun ebrowse-draw-position-buffer () 3993(defun ebrowse-draw-position-buffer ()
diff --git a/lisp/progmodes/f90.el b/lisp/progmodes/f90.el
index eb6db05c159..6eb39051984 100644
--- a/lisp/progmodes/f90.el
+++ b/lisp/progmodes/f90.el
@@ -830,7 +830,7 @@ with no args, if that value is non-nil."
830 (set (make-local-variable 'end-of-defun-function) 'f90-end-of-subprogram) 830 (set (make-local-variable 'end-of-defun-function) 'f90-end-of-subprogram)
831 (set (make-local-variable 'add-log-current-defun-function) 831 (set (make-local-variable 'add-log-current-defun-function)
832 #'f90-current-defun) 832 #'f90-current-defun)
833 (run-hooks 'f90-mode-hook)) 833 (run-mode-hooks 'f90-mode-hook))
834 834
835 835
836;; Inline-functions. 836;; Inline-functions.
diff --git a/lisp/progmodes/fortran.el b/lisp/progmodes/fortran.el
index 30e1977d28d..458a4c8de2b 100644
--- a/lisp/progmodes/fortran.el
+++ b/lisp/progmodes/fortran.el
@@ -799,7 +799,7 @@ with no args, if that value is non-nil."
799 #'fortran-current-defun) 799 #'fortran-current-defun)
800 (set (make-local-variable 'dabbrev-case-fold-search) 'case-fold-search) 800 (set (make-local-variable 'dabbrev-case-fold-search) 'case-fold-search)
801 (set (make-local-variable 'gud-find-expr-function) 'fortran-gud-find-expr) 801 (set (make-local-variable 'gud-find-expr-function) 'fortran-gud-find-expr)
802 (run-hooks 'fortran-mode-hook)) 802 (run-mode-hooks 'fortran-mode-hook))
803 803
804 804
805(defun fortran-gud-find-expr () 805(defun fortran-gud-find-expr ()
diff --git a/lisp/progmodes/icon.el b/lisp/progmodes/icon.el
index c61c64532a3..0eb1b8bf3df 100644
--- a/lisp/progmodes/icon.el
+++ b/lisp/progmodes/icon.el
@@ -205,7 +205,7 @@ with no args, if that value is non-nil."
205 (cons '(icon-mode "\\<procedure\\>" "\\<end\\>" nil 205 (cons '(icon-mode "\\<procedure\\>" "\\<end\\>" nil
206 icon-forward-sexp-function) 206 icon-forward-sexp-function)
207 hs-special-modes-alist))) 207 hs-special-modes-alist)))
208 (run-hooks 'icon-mode-hook)) 208 (run-mode-hooks 'icon-mode-hook))
209 209
210;; This is used by indent-for-comment to decide how much to 210;; This is used by indent-for-comment to decide how much to
211;; indent a comment in Icon code based on its context. 211;; indent a comment in Icon code based on its context.
diff --git a/lisp/progmodes/idlw-help.el b/lisp/progmodes/idlw-help.el
index 8696e1a7d63..6c2cb00bbde 100644
--- a/lisp/progmodes/idlw-help.el
+++ b/lisp/progmodes/idlw-help.el
@@ -278,7 +278,7 @@ Here are all keybindings.
278 (set (make-local-variable 'idlwave-help-def-pos) nil) 278 (set (make-local-variable 'idlwave-help-def-pos) nil)
279 (set (make-local-variable 'idlwave-help-args) nil) 279 (set (make-local-variable 'idlwave-help-args) nil)
280 (set (make-local-variable 'idlwave-help-in-header) nil) 280 (set (make-local-variable 'idlwave-help-in-header) nil)
281 (run-hooks 'idlwave-help-mode-hook)) 281 (run-mode-hooks 'idlwave-help-mode-hook))
282 282
283(defun idlwave-html-help-location () 283(defun idlwave-html-help-location ()
284 "Return the help directory where HTML files are, or nil if that is unknown." 284 "Return the help directory where HTML files are, or nil if that is unknown."
diff --git a/lisp/progmodes/idlw-shell.el b/lisp/progmodes/idlw-shell.el
index 77244819f1b..e804b9f8d50 100644
--- a/lisp/progmodes/idlw-shell.el
+++ b/lisp/progmodes/idlw-shell.el
@@ -1055,7 +1055,7 @@ IDL has currently stepped.")
1055 (set (make-local-variable 'tool-bar-map) nil) 1055 (set (make-local-variable 'tool-bar-map) nil)
1056 1056
1057 ;; Run the hooks. 1057 ;; Run the hooks.
1058 (run-hooks 'idlwave-shell-mode-hook) 1058 (run-mode-hooks 'idlwave-shell-mode-hook)
1059 (idlwave-shell-send-command idlwave-shell-initial-commands nil 'hide) 1059 (idlwave-shell-send-command idlwave-shell-initial-commands nil 'hide)
1060 ;; Turn off IDL's ^d interpreting, and define a system 1060 ;; Turn off IDL's ^d interpreting, and define a system
1061 ;; variable which knows the version of IDLWAVE 1061 ;; variable which knows the version of IDLWAVE
diff --git a/lisp/progmodes/idlwave.el b/lisp/progmodes/idlwave.el
index a118b0055a9..6bd7e0eaced 100644
--- a/lisp/progmodes/idlwave.el
+++ b/lisp/progmodes/idlwave.el
@@ -1954,7 +1954,7 @@ The main features of this mode are
1954 (idlwave-new-buffer-update) 1954 (idlwave-new-buffer-update)
1955 1955
1956 ;; Run the mode hook 1956 ;; Run the mode hook
1957 (run-hooks 'idlwave-mode-hook)) 1957 (run-mode-hooks 'idlwave-mode-hook))
1958 1958
1959(defvar idlwave-setup-done nil) 1959(defvar idlwave-setup-done nil)
1960(defun idlwave-setup () 1960(defun idlwave-setup ()
diff --git a/lisp/progmodes/inf-lisp.el b/lisp/progmodes/inf-lisp.el
index 13bc7f08999..b59ac86d417 100644
--- a/lisp/progmodes/inf-lisp.el
+++ b/lisp/progmodes/inf-lisp.el
@@ -269,7 +269,7 @@ to continue it."
269 (use-local-map inferior-lisp-mode-map) ;c-c c-k for "kompile" file 269 (use-local-map inferior-lisp-mode-map) ;c-c c-k for "kompile" file
270 (setq comint-get-old-input (function lisp-get-old-input)) 270 (setq comint-get-old-input (function lisp-get-old-input))
271 (setq comint-input-filter (function lisp-input-filter)) 271 (setq comint-input-filter (function lisp-input-filter))
272 (run-hooks 'inferior-lisp-mode-hook)) 272 (run-mode-hooks 'inferior-lisp-mode-hook))
273 273
274(defun lisp-get-old-input () 274(defun lisp-get-old-input ()
275 "Return a string containing the sexp ending at point." 275 "Return a string containing the sexp ending at point."
diff --git a/lisp/progmodes/m4-mode.el b/lisp/progmodes/m4-mode.el
index bd6fac5c639..5becd22f6eb 100644
--- a/lisp/progmodes/m4-mode.el
+++ b/lisp/progmodes/m4-mode.el
@@ -147,7 +147,7 @@
147 font-lock-defaults '(m4-font-lock-keywords nil) 147 font-lock-defaults '(m4-font-lock-keywords nil)
148 ) 148 )
149 (set-syntax-table m4-mode-syntax-table) 149 (set-syntax-table m4-mode-syntax-table)
150 (run-hooks 'm4-mode-hook)) 150 (run-mode-hooks 'm4-mode-hook))
151 151
152(provide 'm4-mode) 152(provide 'm4-mode)
153;;stuff to play with for debugging 153;;stuff to play with for debugging
diff --git a/lisp/progmodes/meta-mode.el b/lisp/progmodes/meta-mode.el
index 7bf9921b2ee..3d77de8f182 100644
--- a/lisp/progmodes/meta-mode.el
+++ b/lisp/progmodes/meta-mode.el
@@ -998,7 +998,7 @@ Turning on Metafont mode calls the value of the variables
998 (setq meta-complete-list 998 (setq meta-complete-list
999 (list (list "\\<\\(\\sw+\\)" 1 'meta-symbol-list) 999 (list (list "\\<\\(\\sw+\\)" 1 'meta-symbol-list)
1000 (list "" 'ispell-complete-word))) 1000 (list "" 'ispell-complete-word)))
1001 (run-hooks 'meta-common-mode-hook 'metafont-mode-hook)) 1001 (run-mode-hooks 'meta-common-mode-hook 'metafont-mode-hook))
1002 1002
1003;;;###autoload 1003;;;###autoload
1004(defun metapost-mode () 1004(defun metapost-mode ()
@@ -1023,7 +1023,7 @@ Turning on MetaPost mode calls the value of the variable
1023 (setq meta-complete-list 1023 (setq meta-complete-list
1024 (list (list "\\<\\(\\sw+\\)" 1 'meta-symbol-list) 1024 (list (list "\\<\\(\\sw+\\)" 1 'meta-symbol-list)
1025 (list "" 'ispell-complete-word))) 1025 (list "" 'ispell-complete-word)))
1026 (run-hooks 'meta-common-mode-hook 'metapost-mode-hook)) 1026 (run-mode-hooks 'meta-common-mode-hook 'metapost-mode-hook))
1027 1027
1028 1028
1029;;; Just in case ... 1029;;; Just in case ...
diff --git a/lisp/progmodes/modula2.el b/lisp/progmodes/modula2.el
index 0fa46bee0f9..5fd3dbcb11b 100644
--- a/lisp/progmodes/modula2.el
+++ b/lisp/progmodes/modula2.el
@@ -172,7 +172,7 @@ followed by the first character of the construct.
172 ;; Obsoleted by Emacs 19.35 parse-partial-sexp's COMMENTSTOP. 172 ;; Obsoleted by Emacs 19.35 parse-partial-sexp's COMMENTSTOP.
173 ;(font-lock-comment-start-regexp . "(\\*") 173 ;(font-lock-comment-start-regexp . "(\\*")
174 )) 174 ))
175 (run-hooks 'm2-mode-hook)) 175 (run-mode-hooks 'm2-mode-hook))
176 176
177;; Regexps written with help from Ron Forrester <ron@orcad.com> 177;; Regexps written with help from Ron Forrester <ron@orcad.com>
178;; and Spencer Allain <sallain@teknowledge.com>. 178;; and Spencer Allain <sallain@teknowledge.com>.
diff --git a/lisp/progmodes/octave-inf.el b/lisp/progmodes/octave-inf.el
index 265cf6c049b..250d00171f2 100644
--- a/lisp/progmodes/octave-inf.el
+++ b/lisp/progmodes/octave-inf.el
@@ -158,7 +158,7 @@ Entry to this mode successively runs the hooks `comint-mode-hook' and
158 inferior-octave-dynamic-complete-functions) 158 inferior-octave-dynamic-complete-functions)
159 (comint-read-input-ring t) 159 (comint-read-input-ring t)
160 160
161 (run-hooks 'inferior-octave-mode-hook)) 161 (run-mode-hooks 'inferior-octave-mode-hook))
162 162
163;;;###autoload 163;;;###autoload
164(defun inferior-octave (&optional arg) 164(defun inferior-octave (&optional arg)
diff --git a/lisp/progmodes/octave-mod.el b/lisp/progmodes/octave-mod.el
index 281edfd693e..35d5bd897c9 100644
--- a/lisp/progmodes/octave-mod.el
+++ b/lisp/progmodes/octave-mod.el
@@ -555,7 +555,7 @@ including a reproducible test case and send the message."
555 555
556 (octave-add-octave-menu) 556 (octave-add-octave-menu)
557 (octave-initialize-completions) 557 (octave-initialize-completions)
558 (run-hooks 'octave-mode-hook)) 558 (run-mode-hooks 'octave-mode-hook))
559 559
560;;; Miscellaneous useful functions 560;;; Miscellaneous useful functions
561(defun octave-describe-major-mode () 561(defun octave-describe-major-mode ()
diff --git a/lisp/progmodes/pascal.el b/lisp/progmodes/pascal.el
index 6292fd36a67..e4d36244537 100644
--- a/lisp/progmodes/pascal.el
+++ b/lisp/progmodes/pascal.el
@@ -383,7 +383,7 @@ no args, if that value is non-nil."
383 (make-local-variable 'imenu-generic-expression) 383 (make-local-variable 'imenu-generic-expression)
384 (setq imenu-generic-expression pascal-imenu-generic-expression) 384 (setq imenu-generic-expression pascal-imenu-generic-expression)
385 (setq imenu-case-fold-search t) 385 (setq imenu-case-fold-search t)
386 (run-hooks 'pascal-mode-hook)) 386 (run-mode-hooks 'pascal-mode-hook))
387 387
388 388
389 389
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el
index e2d82f7f13b..604ff8c1e78 100644
--- a/lisp/progmodes/sh-script.el
+++ b/lisp/progmodes/sh-script.el
@@ -1392,7 +1392,7 @@ with your script for an edit-interpret-debug cycle."
1392 (string-match "\\.m?spec\\'" buffer-file-name)) 1392 (string-match "\\.m?spec\\'" buffer-file-name))
1393 "rpm"))))) 1393 "rpm")))))
1394 (sh-set-shell (or interpreter sh-shell-file) nil nil)) 1394 (sh-set-shell (or interpreter sh-shell-file) nil nil))
1395 (run-hooks 'sh-mode-hook)) 1395 (run-mode-hooks 'sh-mode-hook))
1396 1396
1397;;;###autoload 1397;;;###autoload
1398(defalias 'shell-script-mode 'sh-mode) 1398(defalias 'shell-script-mode 'sh-mode)
diff --git a/lisp/progmodes/sql.el b/lisp/progmodes/sql.el
index 902cd920ead..add4493e5f8 100644
--- a/lisp/progmodes/sql.el
+++ b/lisp/progmodes/sql.el
@@ -2249,7 +2249,7 @@ you must tell Emacs. Here's how to do that in your `~/.emacs' file:
2249 (setq local-abbrev-table sql-mode-abbrev-table) 2249 (setq local-abbrev-table sql-mode-abbrev-table)
2250 (setq abbrev-all-caps 1) 2250 (setq abbrev-all-caps 1)
2251 ;; Run hook 2251 ;; Run hook
2252 (run-hooks 'sql-mode-hook) 2252 (run-mode-hooks 'sql-mode-hook)
2253 ;; Catch changes to sql-product and highlight accordingly 2253 ;; Catch changes to sql-product and highlight accordingly
2254 (sql-highlight-product) 2254 (sql-highlight-product)
2255 (add-hook 'hack-local-variables-hook 'sql-highlight-product t t)) 2255 (add-hook 'hack-local-variables-hook 'sql-highlight-product t t))
@@ -2367,7 +2367,7 @@ you entered, right above the output it created.
2367 (make-local-variable 'sql-input-ring-separator) 2367 (make-local-variable 'sql-input-ring-separator)
2368 (make-local-variable 'sql-input-ring-file-name) 2368 (make-local-variable 'sql-input-ring-file-name)
2369 ;; Run hook. 2369 ;; Run hook.
2370 (run-hooks 'sql-interactive-mode-hook) 2370 (run-mode-hooks 'sql-interactive-mode-hook)
2371 ;; Set comint based on user overrides. 2371 ;; Set comint based on user overrides.
2372 (setq comint-prompt-regexp sql-prompt-regexp) 2372 (setq comint-prompt-regexp sql-prompt-regexp)
2373 (setq left-margin sql-prompt-length) 2373 (setq left-margin sql-prompt-length)
diff --git a/lisp/progmodes/vhdl-mode.el b/lisp/progmodes/vhdl-mode.el
index f840ef356d9..af05de75b34 100644
--- a/lisp/progmodes/vhdl-mode.el
+++ b/lisp/progmodes/vhdl-mode.el
@@ -4622,7 +4622,7 @@ Key bindings:
4622 (if noninteractive "" " See menu for documentation and release notes.")) 4622 (if noninteractive "" " See menu for documentation and release notes."))
4623 4623
4624 ;; run hooks 4624 ;; run hooks
4625 (run-hooks 'vhdl-mode-hook)) 4625 (run-mode-hooks 'vhdl-mode-hook))
4626 4626
4627(defun vhdl-activate-customizations () 4627(defun vhdl-activate-customizations ()
4628 "Activate all customizations on local variables." 4628 "Activate all customizations on local variables."
diff --git a/lisp/progmodes/xscheme.el b/lisp/progmodes/xscheme.el
index bf1279da8a0..8ee791affe1 100644
--- a/lisp/progmodes/xscheme.el
+++ b/lisp/progmodes/xscheme.el
@@ -338,7 +338,7 @@ with no args, if that value is non-nil.
338 (setq xscheme-previous-process-state (cons nil nil))))))) 338 (setq xscheme-previous-process-state (cons nil nil)))))))
339 (scheme-interaction-mode-initialize) 339 (scheme-interaction-mode-initialize)
340 (scheme-mode-variables) 340 (scheme-mode-variables)
341 (run-hooks 'scheme-mode-hook 'scheme-interaction-mode-hook)) 341 (run-mode-hooks 'scheme-mode-hook 'scheme-interaction-mode-hook))
342 342
343(defun exit-scheme-interaction-mode () 343(defun exit-scheme-interaction-mode ()
344 "Take buffer out of scheme interaction mode" 344 "Take buffer out of scheme interaction mode"