emacs-devel
[Top][All Lists]
Advanced

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

print-help-return-message


From: Sven Joachim
Subject: print-help-return-message
Date: Sat, 18 Mar 2006 15:27:33 +0100
User-agent: Mozilla Thunderbird 1.0.7 (X11/20051017)

When there are two or more windows open and the user invokes a command
which displays a *Help* buffer, the tip

Type C-x 4 b RET to restore the other window.

is displayed in the echo area.  I have generally followed this advice,
only to type C-x o immediately afterwards in 99% of the cases --
because I did not really want to leave the window in which I were
editing.  Only now I did discover that there is a better way.  Typing
C-x 4 C-o instead of C-x 4 b restores the other window but does not
select it, that is what I want.

I suggest the following patch for print-help-return-message:

*** help.el~    2006-03-16 11:30:55.000000000 +0100
--- help.el     2006-03-18 08:53:51.000000000 +0100
***************
*** 143,149 ****
                    ((not (one-window-p t))
                     (setq help-return-method
                           (cons (selected-window) 'quit-window))
!                    "Type \\[switch-to-buffer-other-window] RET to restore the 
other window.")
                    (pop-up-windows
                     (setq help-return-method (cons (selected-window) t))
                     "Type \\[delete-other-windows] to remove help window.")
--- 143,149 ----
                    ((not (one-window-p t))
                     (setq help-return-method
                           (cons (selected-window) 'quit-window))
!                    "Type \\[display-buffer] RET to restore the other window.")
                    (pop-up-windows
                     (setq help-return-method (cons (selected-window) t))
                     "Type \\[delete-other-windows] to remove help window.")


I may be an idea to additionally bind `display-buffer' to the easier
typed C-x 4 o instead of C-x 4 C-o, but that would be dangerously
close to C-x 4 0, which has a potentially undesired consequence.





reply via email to

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