[ESS-bugs] ESS mode for Emacs

Sebastian P. Luque spluque at gmail.com
Mon Jun 6 23:57:59 CEST 2011


On Mon, 6 Jun 2011 22:12:08 +0100,
Stephen Eglen <S.J.Eglen at damtp.cam.ac.uk> wrote:

>> Re: the *ESS* buffer, how much of a pain is it?  I recall also
>> finding it a bit offputting seeing this many years ago, and in all my
>> years of developing ESS, I for one have yet to find reason of
>> inspecting it!  I imagine other developers may differ -- but one
>> thing I could suggest to other core members is having a variable to
>> inhibit this buffer?

> This could be as simple as having a variable ess-dribble-buffer which
> if nil, means that the buffer is not created, otherwise, the variable
> contains (as a string) the name of the buffer to use, which defaults
> to "*ESS*".  It could even be " *ESS*" so that it doesn't appear in
> buffer lists, but is there and will be included into reports generated
> by ess-submit-bug-report.

In fact, I had completely forgotten about the existence of this "*ESS*"
buffer.  I've been using the bs library for a long time.  It lets one
have several "configurations" (or buffer lists), and has a built-in
mechanism for putting *X* buffers into an "internal" list (although one
can exclude some of these).  The user designs a default configuration,
but can choose or cycle among the different configurations.  It would be
too long to describe here, but here's the doc for the main variable, to
stimulate further reading (the value is my local setting):

,-----[ C-h v bs-configurations RET ]
| bs-configurations is a variable defined in `bs.el'.
| Its value is shown below.
| 
| Documentation:
| List of all configurations you can use in the Buffer Selection Menu.
| A configuration describes which buffers appear in Buffer Selection Menu
| and also the order of buffers.  A configuration is a list with
| six elements.  The first element is a string and describes the configuration.
| The following five elements represent the values for Buffer Selection Menu
| configuration variables `bs-must-show-regexp', `bs-must-show-function',
| `bs-dont-show-regexp', `bs-dont-show-function' and `bs-buffer-sort-function'.
| By setting these variables you define a configuration.
| 
| You can customize this variable.
| 
| Value:
| (("workfiles-and-scratch" "^\\*scratch\\*$" nil "^\\.bbdb$\\|^\\.newsrc-dribble$\\|.+\\.pdfsync$" bs-visits-non-file bs-sort-buffer-interns-are-last)
|  ("dired" nil nil nil
|   (lambda
|     (buf)
|     (with-current-buffer buf
|       (not
|        (eq major-mode 'dired-mode))))
|   nil)
|  ("all" nil nil nil nil nil)
|  ("files" nil nil nil bs-visits-non-file bs-sort-buffer-interns-are-last)
|  ("files-and-scratch" "^\\*scratch\\*$" nil nil bs-visits-non-file bs-sort-buffer-interns-are-last)
|  ("all-intern-last" nil nil nil nil bs-sort-buffer-interns-are-last))
| 
| [back]
`-----


-- 
Seb



More information about the ESS-bugs mailing list