From bb2115fd5514497ce3dc94368388cdb82e17bb76 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Thu, 25 Jul 2019 19:38:17 +0200 Subject: [PATCH] Tweak previous footnote-mode patch * lisp/mail/footnote.el (footnote--local-advice): Ensure that the variable really is local. --- lisp/mail/footnote.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2