summaryrefslogtreecommitdiff
path: root/lisp/mail/supercite.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2021-04-29 18:03:51 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2021-04-29 18:03:51 -0400
commit1cf03f290bd02082c2ffa25a9adf27203334d36c (patch)
tree37cc51de74bc086c7ac27d8b41a12355272095e7 /lisp/mail/supercite.el
parent39ebc2689b5475c31ff8a825b872be93bbf32602 (diff)
downloademacs-1cf03f290bd02082c2ffa25a9adf27203334d36c.tar.gz
* 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.
Diffstat (limited to 'lisp/mail/supercite.el')
-rw-r--r--lisp/mail/supercite.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/mail/supercite.el b/lisp/mail/supercite.el
index dc1c641052b..d545b0c3f15 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))