* 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.
This commit is contained in:
Stefan Monnier 2021-04-29 18:03:51 -04:00
parent 39ebc2689b
commit 1cf03f290b

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