]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/mail/supercite.el (sc-select-attribution): Fix lexical conversion
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 29 Apr 2021 22:03:51 +0000 (18:03 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 29 Apr 2021 22:03:51 +0000 (18:03 -0400)
Mark `citation` and `attribution` as dynamically scoped around
`sc-attribs-postselect-hook`, as documented in the function's docstring.

lisp/mail/supercite.el

index dc1c641052b24839e01dffad3923fdfe293e6490..d545b0c3f1556d0251d7940f1a261f19fe3a650b 100644 (file)
@@ -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))