aboutsummaryrefslogtreecommitdiffstats
path: root/src/fns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fns.c')
-rw-r--r--src/fns.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/fns.c b/src/fns.c
index ef6922c137b..0ad27dbc256 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -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
1927Lisp_Object
1928memq_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
1927DEFUN ("memql", Fmemql, Smemql, 2, 2, 0, 1936DEFUN ("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'.
1929The value is actually the tail of LIST whose car is ELT. */) 1938The value is actually the tail of LIST whose car is ELT. */)