[ESS] Help buffer window behavior

Leo Alekseyev leo.alekseyev at gmail.com
Wed Mar 10 10:08:59 CET 2010

Hi all,
I was wondering if there's a way to customize the focusing / exiting
behavior of the R help buffers.  First, I would like the help buffer
to take focus when it first appears -- just like emacs help buffers

Secondly, I would like the buffer to return me back to the previous
state of windows when exiting help (e.g. by pressing 'q') instead of
simply switching focus to the ESS buffer, in the same way as pressing
'q' in emacs help (after doing e.g. C-h <key>) hides that buffer and
restores previous windows (by running view-quit).  I tried binding 'q'
to winner-undo in ess-help-mode-map, but that doesn't work for the
following reason: I use (setq view-read-only t) in my .emacs, so I
have view mode activated as well.  When run together with ess-help
mode, (view-quit) merely turns off the view mode, without affecting
any windows.

Basically, I wish ESS's help windows behaved more like the rest of
emacs help windows.  I'd appreciate any hints on how to do this!


More information about the ESS-help mailing list