diff options
Diffstat (limited to 'src/fns.c')
| -rw-r--r-- | src/fns.c | 9 |
1 files changed, 9 insertions, 0 deletions
| @@ -1924,6 +1924,15 @@ The value is actually the tail of LIST whose car is ELT. */) | |||
| 1924 | return Qnil; | 1924 | return Qnil; |
| 1925 | } | 1925 | } |
| 1926 | 1926 | ||
| 1927 | Lisp_Object | ||
| 1928 | memq_no_quit (Lisp_Object elt, Lisp_Object list) | ||
| 1929 | { | ||
| 1930 | for (; CONSP (list); list = XCDR (list)) | ||
| 1931 | if (EQ (XCAR (list), elt)) | ||
| 1932 | return list; | ||
| 1933 | return Qnil; | ||
| 1934 | } | ||
| 1935 | |||
| 1927 | DEFUN ("memql", Fmemql, Smemql, 2, 2, 0, | 1936 | DEFUN ("memql", Fmemql, Smemql, 2, 2, 0, |
| 1928 | doc: /* Return non-nil if ELT is an element of LIST. Comparison done with `eql'. | 1937 | doc: /* Return non-nil if ELT is an element of LIST. Comparison done with `eql'. |
| 1929 | The value is actually the tail of LIST whose car is ELT. */) | 1938 | The value is actually the tail of LIST whose car is ELT. */) |