summaryrefslogtreecommitdiff
path: root/lisp/mail/rmailedit.el
diff options
context:
space:
mode:
authorStefan Kangas <stefan@marxist.se>2020-12-05 10:54:14 +0100
committerStefan Kangas <stefan@marxist.se>2020-12-05 10:54:14 +0100
commitf254c8b5f3df13bdee246fd9217870fa74dceea6 (patch)
treed6541bd8777dcbcab769c61263beaca1727ff0d1 /lisp/mail/rmailedit.el
parent5ef30fbf11c3ee0ff1c30061dab554b9bd3ce841 (diff)
downloademacs-f254c8b5f3df13bdee246fd9217870fa74dceea6.tar.gz
Prefer setq-local in mail/*.el
* lisp/mail/emacsbug.el (report-emacs-bug): * lisp/mail/rfc822.el (rfc822-addresses): * lisp/mail/rmail.el (rmail-perm-variables, rmail-show-message-1): * lisp/mail/rmailedit.el (rmail-edit-mode): (rmail-edit-current-message, rmail-cease-edit): * lisp/mail/rmailsum.el (rmail-new-summary-1, rmail-summary-mode): (rmail-summary-update-highlight): * lisp/mail/sendmail.el (mail-mode): Prefer setq-local.
Diffstat (limited to 'lisp/mail/rmailedit.el')
-rw-r--r--lisp/mail/rmailedit.el22
1 files changed, 9 insertions, 13 deletions
diff --git a/lisp/mail/rmailedit.el b/lisp/mail/rmailedit.el
index 3026283a082..72a5603ddc2 100644
--- a/lisp/mail/rmailedit.el
+++ b/lisp/mail/rmailedit.el
@@ -66,8 +66,7 @@ This function runs the hooks `text-mode-hook' and `rmail-edit-mode-hook'.
(setq mode-line-modified (default-value 'mode-line-modified))
;; Don't turn off auto-saving based on the size of the buffer
;; because that code does not understand buffer-swapping.
- (make-local-variable 'auto-save-include-big-deletions)
- (setq auto-save-include-big-deletions t)
+ (setq-local auto-save-include-big-deletions t)
;; If someone uses C-x C-s, don't clobber the rmail file (bug#2625).
(add-hook 'write-region-annotate-functions
'rmail-write-region-annotate nil t)
@@ -98,10 +97,9 @@ This function runs the hooks `text-mode-hook' and `rmail-edit-mode-hook'.
(if (zerop rmail-total-messages)
(error "No messages in this buffer"))
(rmail-modify-format)
- (make-local-variable 'rmail-old-pruned)
- (setq rmail-old-pruned (rmail-msg-is-pruned))
+ (setq-local rmail-old-pruned (rmail-msg-is-pruned))
(rmail-edit-mode)
- (set (make-local-variable 'rmail-old-mime-state)
+ (setq-local rmail-old-mime-state
(and rmail-enable-mime
;; If you use something else, you are on your own.
(eq rmail-mime-feature 'rmailmm)
@@ -125,13 +123,11 @@ This function runs the hooks `text-mode-hook' and `rmail-edit-mode-hook'.
(goto-char (point-min))
;; t = decoded; raw = raw.
(aref (aref (rmail-mime-entity-display entity) 0) 0)))))
- (make-local-variable 'rmail-old-text)
- (setq rmail-old-text
- (save-restriction
- (widen)
- (buffer-substring (point-min) (point-max))))
- (make-local-variable 'rmail-old-headers)
- (setq rmail-old-headers (rmail-edit-headers-alist t))
+ (setq-local rmail-old-text
+ (save-restriction
+ (widen)
+ (buffer-substring (point-min) (point-max))))
+ (setq-local rmail-old-headers (rmail-edit-headers-alist t))
(setq buffer-read-only nil)
(setq buffer-undo-list nil)
;; Whether the buffer is initially marked as modified or not
@@ -209,7 +205,7 @@ This function runs the hooks `text-mode-hook' and `rmail-edit-mode-hook'.
(kill-all-local-variables)
(rmail-mode-1)
(if (boundp 'tool-bar-map)
- (set (make-local-variable 'tool-bar-map) rmail-tool-bar-map))
+ (setq-local tool-bar-map rmail-tool-bar-map))
(setq buffer-undo-list t)
(rmail-variables))
;; If text has really changed, mark message as edited.