Tweak previous footnote-mode patch
* lisp/mail/footnote.el (footnote--local-advice): Ensure that the variable really is local.
This commit is contained in:
parent
e890d4b5d1
commit
bb2115fd55
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue