emacs-diffs
[Top][All Lists]
Advanced

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

master 1cf03f2: * lisp/mail/supercite.el (sc-select-attribution): Fix le


From: Stefan Monnier
Subject: master 1cf03f2: * lisp/mail/supercite.el (sc-select-attribution): Fix lexical conversion
Date: Thu, 29 Apr 2021 18:06:31 -0400 (EDT)

branch: master
commit 1cf03f290bd02082c2ffa25a9adf27203334d36c
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>

    * lisp/mail/supercite.el (sc-select-attribution): Fix lexical conversion
    
    Mark `citation` and `attribution` as dynamically scoped around
    `sc-attribs-postselect-hook`, as documented in the function's docstring.
---
 lisp/mail/supercite.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lisp/mail/supercite.el b/lisp/mail/supercite.el
index dc1c641..d545b0c 100644
--- a/lisp/mail/supercite.el
+++ b/lisp/mail/supercite.el
@@ -1128,6 +1128,8 @@ selection but before querying is performed.  During
 auto-selected citation string and the variable `attribution' is bound
 to the auto-selected attribution string."
   (run-hooks 'sc-attribs-preselect-hook)
+  (with-suppressed-warnings ((lexical citation attribution))
+    (defvar citation) (defvar attribution))
   (let ((query-p sc-confirm-always-p)
        attribution citation
        (attriblist sc-preferred-attribution-list))



reply via email to

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