diff options
| author | Sam Steingold | 2017-11-22 16:05:45 -0500 |
|---|---|---|
| committer | Sam Steingold | 2017-11-22 16:14:36 -0500 |
| commit | 72688426cef4e5128ce68f75cb8a3f31572daec0 (patch) | |
| tree | bdef625dc3dcd1b365da7ab87bb483e8f7c09d8b | |
| parent | 6710c265aa300bd29e5841a88c03ca101d3d1f75 (diff) | |
| download | emacs-72688426cef4e5128ce68f75cb8a3f31572daec0.tar.gz emacs-72688426cef4e5128ce68f75cb8a3f31572daec0.zip | |
Remove *-yank-hooks aliases for -citation-hook, obsolete since 19.34.
* lisp/simple.el (compose-mail): Use `mail-citation-hook'
instead of `mail-yank-hooks'.
* lisp/mail/sendmail.el (mail-yank-hooks): Remove.
(mail-yank-original, mail-yank-region): Drop `mail-yank-hooks'.
* lisp/mh-e/mh-letter.el (mh-yank-hooks): Remove.
(mh-insert-prefix-string): Drop `mh-yank-hooks'.
| -rw-r--r-- | lisp/mail/sendmail.el | 15 | ||||
| -rw-r--r-- | lisp/mh-e/mh-letter.el | 13 | ||||
| -rw-r--r-- | lisp/simple.el | 2 |
3 files changed, 2 insertions, 28 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el index 3e22fd84117..cd802115276 100644 --- a/lisp/mail/sendmail.el +++ b/lisp/mail/sendmail.el | |||
| @@ -243,15 +243,6 @@ Used by `mail-yank-original' via `mail-indent-citation'." | |||
| 243 | :type 'integer | 243 | :type 'integer |
| 244 | :group 'sendmail) | 244 | :group 'sendmail) |
| 245 | 245 | ||
| 246 | (defvar mail-yank-hooks nil | ||
| 247 | "Obsolete hook for modifying a citation just inserted in the mail buffer. | ||
| 248 | Each hook function can find the citation between (point) and (mark t). | ||
| 249 | And each hook function should leave point and mark around the citation | ||
| 250 | text as modified. | ||
| 251 | This is a normal hook, misnamed for historical reasons. | ||
| 252 | It is obsolete and mail agents should no longer use it.") | ||
| 253 | (make-obsolete-variable 'mail-yank-hooks 'mail-citation-hook "19.34") | ||
| 254 | |||
| 255 | ;;;###autoload | 246 | ;;;###autoload |
| 256 | (defcustom mail-citation-hook nil | 247 | (defcustom mail-citation-hook nil |
| 257 | "Hook for modifying a citation just inserted in the mail buffer. | 248 | "Hook for modifying a citation just inserted in the mail buffer. |
| @@ -1718,8 +1709,6 @@ and don't delete any header fields." | |||
| 1718 | (rfc822-goto-eoh) | 1709 | (rfc822-goto-eoh) |
| 1719 | (point)))))) | 1710 | (point)))))) |
| 1720 | (run-hooks 'mail-citation-hook))) | 1711 | (run-hooks 'mail-citation-hook))) |
| 1721 | (mail-yank-hooks | ||
| 1722 | (run-hooks 'mail-yank-hooks)) | ||
| 1723 | (t | 1712 | (t |
| 1724 | (mail-indent-citation))))) | 1713 | (mail-indent-citation))))) |
| 1725 | ;; This is like exchange-point-and-mark, but doesn't activate the mark. | 1714 | ;; This is like exchange-point-and-mark, but doesn't activate the mark. |
| @@ -1788,9 +1777,7 @@ and don't delete any header fields." | |||
| 1788 | (rfc822-goto-eoh) | 1777 | (rfc822-goto-eoh) |
| 1789 | (point)))))) | 1778 | (point)))))) |
| 1790 | (run-hooks 'mail-citation-hook)) | 1779 | (run-hooks 'mail-citation-hook)) |
| 1791 | (if mail-yank-hooks | 1780 | (mail-indent-citation))))))) |
| 1792 | (run-hooks 'mail-yank-hooks) | ||
| 1793 | (mail-indent-citation)))))))) | ||
| 1794 | 1781 | ||
| 1795 | (defun mail-split-line () | 1782 | (defun mail-split-line () |
| 1796 | "Split current line, moving portion beyond point vertically down. | 1783 | "Split current line, moving portion beyond point vertically down. |
diff --git a/lisp/mh-e/mh-letter.el b/lisp/mh-e/mh-letter.el index 28c18e4dd2f..871ba49522a 100644 --- a/lisp/mh-e/mh-letter.el +++ b/lisp/mh-e/mh-letter.el | |||
| @@ -60,17 +60,6 @@ | |||
| 60 | (to . mh-alias-letter-expand-alias)) | 60 | (to . mh-alias-letter-expand-alias)) |
| 61 | "Alist of header fields and completion functions to use.") | 61 | "Alist of header fields and completion functions to use.") |
| 62 | 62 | ||
| 63 | (defvar mh-yank-hooks nil | ||
| 64 | "Obsolete hook for modifying a citation just inserted in the mail buffer. | ||
| 65 | |||
| 66 | Each hook function can find the citation between point and mark. | ||
| 67 | And each hook function should leave point and mark around the | ||
| 68 | citation text as modified. | ||
| 69 | |||
| 70 | This is a normal hook, misnamed for historical reasons. | ||
| 71 | It is obsolete and is only used if `mail-citation-hook' is nil.") | ||
| 72 | (mh-make-obsolete-variable 'mh-yank-hooks 'mail-citation-hook "19.34") | ||
| 73 | |||
| 74 | 63 | ||
| 75 | 64 | ||
| 76 | ;;; Letter Menu | 65 | ;;; Letter Menu |
| @@ -972,8 +961,6 @@ Otherwise, simply insert MH-INS-STRING before each line." | |||
| 972 | (sc-cite-original)) | 961 | (sc-cite-original)) |
| 973 | (mail-citation-hook | 962 | (mail-citation-hook |
| 974 | (run-hooks 'mail-citation-hook)) | 963 | (run-hooks 'mail-citation-hook)) |
| 975 | (mh-yank-hooks ;old hook name | ||
| 976 | (run-hooks 'mh-yank-hooks)) | ||
| 977 | (t | 964 | (t |
| 978 | (or (bolp) (forward-line 1)) | 965 | (or (bolp) (forward-line 1)) |
| 979 | (while (< (point) (point-max)) | 966 | (while (< (point) (point-max)) |
diff --git a/lisp/simple.el b/lisp/simple.el index 22a8e25bc79..fde6669df10 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -7855,7 +7855,7 @@ buffer buried." | |||
| 7855 | (eq mail-user-agent 'message-user-agent) | 7855 | (eq mail-user-agent 'message-user-agent) |
| 7856 | (let (warn-vars) | 7856 | (let (warn-vars) |
| 7857 | (dolist (var '(mail-mode-hook mail-send-hook mail-setup-hook | 7857 | (dolist (var '(mail-mode-hook mail-send-hook mail-setup-hook |
| 7858 | mail-yank-hooks mail-archive-file-name | 7858 | mail-citation-hook mail-archive-file-name |
| 7859 | mail-default-reply-to mail-mailing-lists | 7859 | mail-default-reply-to mail-mailing-lists |
| 7860 | mail-self-blind)) | 7860 | mail-self-blind)) |
| 7861 | (and (boundp var) | 7861 | (and (boundp var) |