mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-25 06:17:34 +00:00
(Fassoc_string): Allow symbols as keys.
This commit is contained in:
parent
669b454d39
commit
1954495fad
1 changed files with 3 additions and 1 deletions
|
|
@ -2089,7 +2089,9 @@ string rather than a cons cell whose car is a string. */)
|
|||
register Lisp_Object elt, tem, thiscar;
|
||||
elt = Fcar (tail);
|
||||
thiscar = CONSP (elt) ? XCAR (elt) : elt;
|
||||
if (!STRINGP (thiscar))
|
||||
if (SYMBOLP (thiscar))
|
||||
thiscar = Fsymbol_name (thiscar);
|
||||
else if (!STRINGP (thiscar))
|
||||
continue;
|
||||
tem = Fcompare_strings (thiscar, make_number (0), Qnil,
|
||||
key, make_number (0), Qnil,
|
||||
|
|
|
|||
Loading…
Reference in a new issue