Tweak previous footnote-mode patch

* lisp/mail/footnote.el (footnote--local-advice): Ensure that the
variable really is local.
This commit is contained in:
Lars Ingebrigtsen 2019-07-25 19:38:17 +02:00
parent e890d4b5d1
commit bb2115fd55

View file

@ -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)