aboutsummaryrefslogtreecommitdiffstats
path: root/src/fns.c
diff options
context:
space:
mode:
authorGerd Möllmann2024-12-20 06:11:18 +0100
committerGerd Möllmann2024-12-20 06:13:13 +0100
commit42ab0f162cb37eeddae53675fba310b8a22ff934 (patch)
tree805a0b2509eacc52f059b132d2d86186e417b2c4 /src/fns.c
parent3cb86eb0385b8d5edba3dea495bc086c009614b7 (diff)
downloademacs-42ab0f162cb37eeddae53675fba310b8a22ff934.tar.gz
emacs-42ab0f162cb37eeddae53675fba310b8a22ff934.zip
Fix tty root frame collection in redisplay_internal
* src/fns.c (memq_no_quit): New function. * src/lisp.h: Declare it. * src/xdisp.c (redisplay_internal): Use memq_no_quit instead of assq_no_quit.
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. */)