[Top][All Lists]

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

Re: View-quit in *Help* restores wrong window when display-buffer-reuse-

From: martin rudalics
Subject: Re: View-quit in *Help* restores wrong window when display-buffer-reuse-frames is t
Date: Sat, 20 Oct 2007 11:45:37 +0200
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

> As I said, I do *not* switch to another buffer in the same window as *Help*
> (which is dedicated). I don't think that's even possible, but I could be
> mistaken.

It's possible.

> What is definitely not useful is to put some other buffer in the window,
> which was never shown in that window before. When a view-mode window pops up
> (new frame), quitting the mode should not stick some unrelated buffer in
> that window. In this use case, think of a window such as *Help* as a
> (non-modal) dialog box. When you quit that dialog box, you don't want its
> window to remain, filled with some extraneous buffer that you happened to
> access half an hour ago or 3 days ago. That just doesn't make sense.

I fully agree with you.  But `quit-window' does exactly that when the
window is not dedicated:

          (switch-to-buffer (other-buffer))))

This is the painful default behavior of `Info-exit' when you do not use
a separate frame (try with Emacs -Q, split the *scratch* window, invoke
Info, and quit - you won't get the "previously selected buffer" as
promised by the doc-string of `Info-mode').

reply via email to

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