]> git.eshelyaron.com Git - emacs.git/commit
Fix infinite looping in 'next-frame' and associates (Bug#77985)
authorMartin Rudalics <rudalics@gmx.at>
Fri, 9 May 2025 07:36:00 +0000 (09:36 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sat, 10 May 2025 08:55:42 +0000 (10:55 +0200)
commitb7d2443d141e9f318dc4cae8d8a33e81fe36f859
tree9e9ccae601bc9ad7112288ea44a3279ede77841c
parentd23e4f8a8901b71278c049330dc79b074008794a
Fix infinite looping in 'next-frame' and associates (Bug#77985)

* src/frame.c (next_frame): Rewrite to avoid infinite looping if
FRAME itself does not qualify as candidate frame (Bug#77985).
(Fnext_frame, Fprevious_frame): Adjust do-strings.
* lisp/frame.el (other-frame): Adjust doc-string.
(frame-list-1): New function.
(make-frame-names-alist): Rewrite using 'frame-list-1' instead
of 'next-frame' (Bug#77985).
(delete-other-frames): Rewrite using 'frame-list' instead of
'next-frame'.
* doc/lispref/frames.texi (Finding All Frames): Minor
clarifications for 'frame-list' and 'next-frame'.

(cherry picked from commit 004187350238a05a5c7f818c9feb648c792fe9db)
doc/lispref/frames.texi
lisp/frame.el
src/frame.c