[ESS-bugs] ess-mode 5.3.2; a prompt appears in last line of special buffers

Martin Maechler maechler at stat.math.ethz.ch
Fri Sep 22 19:05:40 CEST 2006


>>>>> "SebL" == Sebastian P Luque <spluque at gmail.com>
>>>>>     on Fri, 22 Sep 2006 11:45:23 -0500 writes:

    SebL> On Fri, 22 Sep 2006 18:07:32 +0200,
    SebL> Martin Maechler <maechler at stat.math.ethz.ch> wrote:

    SebL> [...]

    --> I've introduced a variable ess-display-buffer-reuse-frames
    >> with default "true" which changes the default behavior of
    >> (ess-display-temp-buffer ..) , namely to "reuse existing frames".

    SebL> IIUC, if ess-display-buffer-reuse-frames is nil then
    SebL> *ess-output* will go to a new frame?

no. You need to have put *ess-output* into a separate frame
yourself before it takes effect:
It simply sets the standard  emacs variable 
display-buffer-reuse-frames before using (display-buffer .)
i.e., the new code is

-------------------------------------------------------------------------
(defun ess-display-temp-buffer (buff)
  "Display the buffer BUFF using `temp-buffer-show-function' and respecting
`ess-display-buffer-reuse-frames'."
  (let ((display-buffer-reuse-frames ess-display-buffer-reuse-frames))
    (funcall (or temp-buffer-show-function 'display-buffer) buff)))
-------------------------------------------------------------------------

where ess-execute ends in
      (ess-display-temp-buffer buff))

and --by the way, Rich --

(defun ess-execute-in-tb ()
  "Like `ess-execute', but always evaluates in temp buffer."
  (interactive)
  (let ((ess-execute-in-process-buffer nil))
    (call-interactively 'ess-execute)))


    SebL> As an avid C-c C-t user, this sounds super!

I think what you wish (an option to have *ess-output* use its
own frame) does not seem too hard to implement,

but for the moment I'd really like to release 5.3.3 pretty quickly.

    SebL> As an avid C-c C-t user, this sounds super!  

good to hear that..

    SebL> Could something like a 'ess-temp-frame-alist' be
    SebL> included too, so that 'ess-display-temp-buffer' uses
    SebL> that if 'ess-display-buffer-reuse-frames' is nil?  But
    SebL> I'm not sure whether 'special-display-frame-alist' is
    SebL> enough.  Just an idea to have nicer control of how
    SebL> those temp frames are displayed.

IIRC, these special-*-alist thingies were all done by Stephen
Eglen, so, it may be a piece-of-cake for him ....

Martin


    SebL> Big thanks to Martin!




More information about the ESS-bugs mailing list