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

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

Re: switch-to-buffer-other-frame fails to pop-up window


From: martin rudalics
Subject: Re: switch-to-buffer-other-frame fails to pop-up window
Date: Tue, 04 Dec 2007 08:37:46 +0100
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

> 1) start emacs with "-Q"
> 2) type "c-x b foo", then "c-x 2", and then "c-x b".
>    now "*scratch* and "foo" are displayed in two windows
>    on the original single frame.

At this moment the window displaying "foo" is _not_ selected.

> 3) now type "c-x 5 b foo" and see that a new frame is not
>    popped up.

But the window displaying "foo" should be selected now.  This is the
expected behavior of `display-buffer' which is mentioned in the
doc-string of `switch-to-buffer-other-frame'.

Maybe `switch-to-buffer-other-frame' should _always_ display the buffer
in another frame - that is call `display-buffer-other-frame' and select
that frame (C-x 5 C-o doesn't _select_ the other frame).

> contrast this with "emacs -Q" and "c-x 4 b foo" followed by
> "c-x 5 b foo".

Because at the time you invoke C-x 5 b foo here a window showing "foo"
is selected.  Again this is the documented behavior of `display-buffer'.

Just some explanations - feel free to demand a more intuitive behavior
and/or description.  To me it's not entirely clear how to reconcile all
possible use cases.





reply via email to

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