comparison src/minibuf.c @ 93745:e8f312e6ec32

(Fassoc_string): Tweak docstring.
author Chong Yidong <cyd@stupidchicken.com>
date Sat, 05 Apr 2008 21:03:47 +0000
parents 620496d91e55
children 6c6216b3b878
comparison
equal deleted inserted replaced
93744:7ace78905859 93745:e8f312e6ec32
2100 2100
2101 /* Like assoc but assumes KEY is a string, and ignores case if appropriate. */ 2101 /* Like assoc but assumes KEY is a string, and ignores case if appropriate. */
2102 2102
2103 DEFUN ("assoc-string", Fassoc_string, Sassoc_string, 2, 3, 0, 2103 DEFUN ("assoc-string", Fassoc_string, Sassoc_string, 2, 3, 0,
2104 doc: /* Like `assoc' but specifically for strings (and symbols). 2104 doc: /* Like `assoc' but specifically for strings (and symbols).
2105 Symbols are converted to strings, and unibyte strings are converted to 2105
2106 multibyte for comparison. 2106 This returns the first element of LIST whose car matches the string or
2107 Case is ignored if optional arg CASE-FOLD is non-nil. 2107 symbol KEY, or nil if no match exists. When performing the
2108 As opposed to `assoc', it will also match an entry consisting of a single 2108 comparison, symbols are first converted to strings, and unibyte
2109 string rather than a cons cell whose car is a string. */) 2109 strings to multibyte. If the optional arg CASE-FOLD is non-nil, case
2110 is ignored.
2111
2112 Unlike `assoc', KEY can also match an entry in LIST consisting of a
2113 single string, rather than a cons cell whose car is a string. */)
2110 (key, list, case_fold) 2114 (key, list, case_fold)
2111 register Lisp_Object key; 2115 register Lisp_Object key;
2112 Lisp_Object list, case_fold; 2116 Lisp_Object list, case_fold;
2113 { 2117 {
2114 register Lisp_Object tail; 2118 register Lisp_Object tail;