diff options
| author | Gerd Möllmann | 2024-12-20 06:11:18 +0100 |
|---|---|---|
| committer | Gerd Möllmann | 2024-12-20 06:13:13 +0100 |
| commit | 42ab0f162cb37eeddae53675fba310b8a22ff934 (patch) | |
| tree | 805a0b2509eacc52f059b132d2d86186e417b2c4 /src/fns.c | |
| parent | 3cb86eb0385b8d5edba3dea495bc086c009614b7 (diff) | |
| download | emacs-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.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. */) |