emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master bb2115f 2/2: Tweak previous footnote-mode patch


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master bb2115f 2/2: Tweak previous footnote-mode patch
Date: Thu, 25 Jul 2019 13:39:58 -0400 (EDT)

branch: master
commit bb2115fd5514497ce3dc94368388cdb82e17bb76
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    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 111aa7f..202e552 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]