From db3ff76dc7d3184e51cb7ed17c78ef76babb9032 Mon Sep 17 00:00:00 2001 From: Brent Westbrook Date: Sat, 19 Nov 2022 09:23:57 -0500 Subject: [PATCH] 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) --- lisp/net/eudcb-mailabbrev.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lisp/net/eudcb-mailabbrev.el b/lisp/net/eudcb-mailabbrev.el index 64b50af09bc..4a2dd9ad4a4 100644 --- a/lisp/net/eudcb-mailabbrev.el +++ b/lisp/net/eudcb-mailabbrev.el @@ -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 ", ")) -- 2.39.5