From: Lars Ingebrigtsen Date: Thu, 25 Jul 2019 17:38:17 +0000 (+0200) Subject: Tweak previous footnote-mode patch X-Git-Tag: emacs-27.0.90~1817^2~127 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bb2115fd5514497ce3dc94368388cdb82e17bb76;p=emacs.git Tweak previous footnote-mode patch * lisp/mail/footnote.el (footnote--local-advice): Ensure that the variable really is local. --- 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)