unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* C-x 4 b RET does not restores wrong other window
@ 2002-04-14 16:50 Ture Pålsson
  2002-04-16 20:16 ` Richard Stallman
  0 siblings, 1 reply; 3+ messages in thread
From: Ture Pålsson @ 2002-04-14 16:50 UTC (permalink / raw)


In GNU Emacs 21.2.1 (i686-pc-linux-gnu, X toolkit)
 of 2002-03-20 on paddington
configured using `configure  --prefix=/sw/emacs/21.2'
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: sv_SE
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: C
  locale-coding-system: iso-latin-1
  default-enable-multibyte-characters: t

Symptoms and how to reproduce:

1. Start emacs with emacs -q --no-site-file

2. Type C-x 2 C-x 2. This should give you three windows, all showing
   the *scratch* buffer, with the cursor in the topmost one.

3. Type C-h f c o n s RET. This gives you the help text for 'cons' in
   the middle window, and the text "Type C-x 4 b RET to restore other
   window.  C-M-v to scroll the help." in the echo area. The cursor is
   still in the topmost window.

4. Type C-x 4 b RET. I expected this to switch the middle window from
   the *Help* buffer back to *scratch*, but instead it switched the
   bottom window from *scratch* to *Messages*.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: C-x 4 b RET does not restores wrong other window
  2002-04-14 16:50 C-x 4 b RET does not restores wrong other window Ture Pålsson
@ 2002-04-16 20:16 ` Richard Stallman
  2002-04-18 21:18   ` Kevin Rodgers
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Stallman @ 2002-04-16 20:16 UTC (permalink / raw)
  Cc: bug-gnu-emacs

When there are three windows, in general--there is no single command
that will restore the proper window to its previous state.  I am not
sure what change to make to improve this situation.  Do you want
to work on it?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: C-x 4 b RET does not restores wrong other window
  2002-04-16 20:16 ` Richard Stallman
@ 2002-04-18 21:18   ` Kevin Rodgers
  0 siblings, 0 replies; 3+ messages in thread
From: Kevin Rodgers @ 2002-04-18 21:18 UTC (permalink / raw)


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1501 bytes --]

rms@gnu.org (Richard Stallman) writes:
>ture@lysator.liu.se (Ture Pålsson) writes:
>> 1. Start emacs with emacs -q --no-site-file
>> 
>> 2. Type C-x 2 C-x 2. This should give you three windows, all showing
>>    the *scratch* buffer, with the cursor in the topmost one.
>> 
>> 3. Type C-h f c o n s RET. This gives you the help text for 'cons' in
>>    the middle window, and the text "Type C-x 4 b RET to restore other
>>    window.  C-M-v to scroll the help." in the echo area. The cursor is
>>    still in the topmost window.
>> 
>> 4. Type C-x 4 b RET. I expected this to switch the middle window from
>>    the *Help* buffer back to *scratch*, but instead it switched the
>>    bottom window from *scratch* to *Messages*.
>>
> When there are three windows, in general--there is no single command
> that will restore the proper window to its previous state.  I am not
> sure what change to make to improve this situation.  Do you want
> to work on it?

I thought that that winner-mode would handle this as requested, but
doing `M-x winner-mode' first and doing `C-x <left>' instead of `C-x 4
b' doesn't work either: it only changes the window-buffer
correspondence so that there are still 3 windows.  Maybe winner-mode
should advise the describe-* functions, or with-output-to-temp-buffer,
to DTRT.  (If so, print-help-return-message should have a clause to
detect winner-mode, and display the winner-undo key binding instead of
switch-to-buffer-other-window.)

-- 
Kevin Rodgers <kevinr@ihs.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-04-18 21:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-14 16:50 C-x 4 b RET does not restores wrong other window Ture Pålsson
2002-04-16 20:16 ` Richard Stallman
2002-04-18 21:18   ` Kevin Rodgers

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).