aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-07-25 19:38:17 +0200
committerLars Ingebrigtsen2019-07-25 19:39:51 +0200
commitbb2115fd5514497ce3dc94368388cdb82e17bb76 (patch)
tree7e5011783d43010d42595b650807d8330d06fe5d
parente890d4b5d1795b6a02a1baeebb4ae98da0537671 (diff)
downloademacs-bb2115fd5514497ce3dc94368388cdb82e17bb76.tar.gz
emacs-bb2115fd5514497ce3dc94368388cdb82e17bb76.zip
Tweak previous footnote-mode patch
* lisp/mail/footnote.el (footnote--local-advice): Ensure that the variable really is local.
-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."
867 (unless ,variable 867 (unless ,variable
868 ;; nil and `ignore' have the same semantics for adaptive-fill-function, 868 ;; nil and `ignore' have the same semantics for adaptive-fill-function,
869 ;; but only `ignore' behaves correctly with add/remove-function. 869 ;; but only `ignore' behaves correctly with add/remove-function.
870 (setq ,variable #'ignore)) 870 (setq-local ,variable #'ignore))
871 (remove-function (local ',variable) #'function) 871 (remove-function (local ',variable) #'function)
872 (when ,mode 872 (when ,mode
873 (add-function :around (local ',variable) 873 (add-function :around (local ',variable)