* 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):
(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
(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
(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)
(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 ***************************************************
(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
(when tree
(ebrowse-redraw-tree)
(set-buffer-modified-p nil))
- (run-hooks 'ebrowse-tree-mode-hook)))
+ (run-mode-hooks 'ebrowse-tree-mode-hook)))
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 ()
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))
\f
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 ()
(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))
\f
;; Inline-functions.
#'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))
\f
(defun fortran-gud-find-expr ()
(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))
\f
;; This is used by indent-for-comment to decide how much to
;; indent a comment in Icon code based on its context.
(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."
(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
(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 ()
(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."
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
(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 ()
(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 ...
;; 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))
\f
;; Regexps written with help from Ron Forrester <ron@orcad.com>
;; and Spencer Allain <sallain@teknowledge.com>.
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)
(octave-add-octave-menu)
(octave-initialize-completions)
- (run-hooks 'octave-mode-hook))
+ (run-mode-hooks 'octave-mode-hook))
\f
;;; Miscellaneous useful functions
(defun octave-describe-major-mode ()
(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))
\f
(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)
(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))
(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)
(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."
(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"