summaryrefslogtreecommitdiff
path: root/lisp/mail
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/mail')
-rw-r--r--lisp/mail/footnote.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/mail/footnote.el b/lisp/mail/footnote.el
index 111aa7f3ea3..202e5528060 100644
--- a/lisp/mail/footnote.el
+++ b/lisp/mail/footnote.el
@@ -867,7 +867,7 @@ advice, and FUNCTION is what'll be added as an :around advice."
(unless ,variable
;; nil and `ignore' have the same semantics for adaptive-fill-function,
;; but only `ignore' behaves correctly with add/remove-function.
- (setq ,variable #'ignore))
+ (setq-local ,variable #'ignore))
(remove-function (local ',variable) #'function)
(when ,mode
(add-function :around (local ',variable)