diff options
author | Stefan Kangas <stefan@marxist.se> | 2021-10-12 02:02:22 +0200 |
---|---|---|
committer | Stefan Kangas <stefan@marxist.se> | 2021-10-12 02:02:22 +0200 |
commit | 8436243ac62a12b732e9c8cb54bb3c1d6efc9c25 (patch) | |
tree | ba12139f1e63285e6fb28cad6fc406d13ff8542a /lisp/mh-e/mh-comp.el | |
parent | f8d750135e90282864019b4484d0f0dec34cbd2f (diff) | |
download | emacs-8436243ac62a12b732e9c8cb54bb3c1d6efc9c25.tar.gz |
Prefer setq-local in lisp/mh-e/*.el
* lisp/mh-e/mh-utils.el (mh-make-local-vars): Make obsolete.
* lisp/mh-e/mh-comp.el (mh-forward):
* lisp/mh-e/mh-folder.el (mh-folder-mode):
* lisp/mh-e/mh-identity.el (mh-identity-handler-signature)
(mh-identity-insert-attribution-verb):
* lisp/mh-e/mh-letter.el (mh-letter-mode):
* lisp/mh-e/mh-search.el (mh-search-folder):
* lisp/mh-e/mh-seq.el (mh-narrow-to-seq, mh-widen):
* lisp/mh-e/mh-show.el (mh-show-mode):
* lisp/mh-e/mh-tool-bar.el (mh-tool-bar-define):
* lisp/mh-e/mh-xface.el (mh-x-image-url-display)
(mh-x-image-url-fetch-image): Prefer setq-local.
Diffstat (limited to 'lisp/mh-e/mh-comp.el')
-rw-r--r-- | lisp/mh-e/mh-comp.el | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lisp/mh-e/mh-comp.el b/lisp/mh-e/mh-comp.el index 4681ad885d0..b42527f1bf5 100644 --- a/lisp/mh-e/mh-comp.el +++ b/lisp/mh-e/mh-comp.el @@ -579,11 +579,12 @@ See also `mh-compose-forward-as-mime-flag', (goto-char (point-min)) ;; Set the local value of mh-mail-header-separator according to what is ;; present in the buffer... - (set (make-local-variable 'mh-mail-header-separator) - (save-excursion - (goto-char (mh-mail-header-end)) - (buffer-substring-no-properties (point) (line-end-position)))) - (set (make-local-variable 'mail-header-separator) mh-mail-header-separator) ;override sendmail.el + (setq-local mh-mail-header-separator + (save-excursion + (goto-char (mh-mail-header-end)) + (buffer-substring-no-properties (point) + (line-end-position)))) + (setq-local mail-header-separator mh-mail-header-separator) ;override sendmail.el ;; If using MML, translate MH-style directive (if (equal mh-compose-insertion 'mml) (save-excursion |