mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-27 10:54:40 +00:00
* obsolete/ooutline.el (outline-mode):
* obsolete/options.el (Edit-options-mode): * obsolete/rnews.el (news-mode): * obsolete/rnewspost.el (news-reply-mode): Use run-mode-hooks.
This commit is contained in:
parent
57f9923ee7
commit
e1c31ddba8
@ -224,7 +224,7 @@ Turning on outline mode calls the value of `text-mode-hook' and then of
|
||||
(setq font-lock-defaults '(outline-font-lock-keywords t))
|
||||
(make-local-variable 'change-major-mode-hook)
|
||||
(add-hook 'change-major-mode-hook 'show-all)
|
||||
(run-hooks 'text-mode-hook 'outline-mode-hook))
|
||||
(run-mode-hooks 'text-mode-hook 'outline-mode-hook))
|
||||
|
||||
(defcustom outline-minor-mode-prefix "\C-c@"
|
||||
"*Prefix key to use for Outline commands in Outline minor mode.
|
||||
|
@ -109,7 +109,7 @@ For convenience, the characters \\[backward-paragraph] and \\[forward-paragraph]
|
||||
(setq truncate-lines t)
|
||||
(setq major-mode 'Edit-options-mode)
|
||||
(setq mode-name "Options")
|
||||
(run-hooks 'Edit-options-mode-hook))
|
||||
(run-mode-hooks 'Edit-options-mode-hook))
|
||||
|
||||
(defun Edit-options-set () (interactive)
|
||||
(Edit-options-modify
|
||||
|
@ -375,7 +375,7 @@ U unsubscribe from specified newsgroup."
|
||||
(set-syntax-table text-mode-syntax-table)
|
||||
(use-local-map news-mode-map)
|
||||
(setq local-abbrev-table text-mode-abbrev-table)
|
||||
(run-hooks 'news-mode-hook))
|
||||
(run-mode-hooks 'news-mode-hook))
|
||||
|
||||
(defun string-subst-char (new old string)
|
||||
(let (index)
|
||||
|
@ -130,7 +130,7 @@ C-c C-r caesar rotate all letters by 13 places in the article's body (rot13)."
|
||||
(setq mode-name "News Reply")
|
||||
(make-local-variable 'paragraph-separate)
|
||||
(make-local-variable 'paragraph-start)
|
||||
(run-hooks 'text-mode-hook 'news-reply-mode-hook))
|
||||
(run-mode-hooks 'text-mode-hook 'news-reply-mode-hook))
|
||||
|
||||
(defvar news-reply-yank-from ""
|
||||
"Save `From:' field for `news-reply-yank-original'.")
|
||||
|
Loading…
Reference in New Issue
Block a user