bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#59862: quit-restore per window buffer


From: martin rudalics
Subject: bug#59862: quit-restore per window buffer
Date: Fri, 12 Jul 2024 10:20:32 +0200
User-agent: Mozilla Thunderbird

> Ok, I will try to move it.

We could replace the

           (or (eq (nth 1 quit-restore) 'frame)
               (and (eq (nth 1 quit-restore) 'window)
                    ;; If the window has been created on an existing
                    ;; frame and ended up as the sole window on that
                    ;; frame, do not delete it (Bug#12764).
                    (not (eq window (frame-root-window window)))))

clause with

           (or (eq (nth 1 quit-restore) 'frame)
               ;; If the window has been created on an existing
               ;; frame and ended up as the sole window on that
               ;; frame, do not delete it (Bug#12764).
               (not (eq window (frame-root-window window))))

with the motivation that if a window does not have a previous buffer,
there is no reason to switch to it.  This will keep the frame around so
Bu#12764 is not affected and the normal behavior of C-h i followed by
C-h e is not affected either unless a user deleted *scratch* in between.

Try it and if it works for you I'll add it to the new patch.

martin





reply via email to

[Prev in Thread] Current Thread [Next in Thread]