1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 04:10:54 -08:00

EUDC: Fix a void-variable error

* lisp/net/eudcb-mailabbrev.el (eudc-mailabbrev-query-internal):
Check if symbol is bound before taking its value.  (Bug#59369)
This commit is contained in:
Brent Westbrook 2022-11-19 09:23:57 -05:00 committed by Thomas Fitzsimmons
parent 91c3a276dd
commit db3ff76dc7

View file

@ -78,7 +78,10 @@ RETURN-ATTRS is a list of attributes to return, defaulting to
(dolist (term query)
(let* ((attr (car term))
(value (cdr term))
(raw-matches (symbol-value (intern-soft value mail-abbrevs))))
(soft (intern-soft value mail-abbrevs))
(raw-matches (and
(boundp soft)
(symbol-value soft))))
(when (and raw-matches
(memq attr '(email firstname name)))
(let* ((matches (split-string raw-matches ", "))