Scrolling *R* (or *S*) buffer

Angel angel_lul at hotmail.com
Mon Jan 19 11:36:12 CET 2004


Thanks Martin, your advice on scrolling works great for me.
I have also found `C-c C-o' (`comint-kill-output'), which I didn't know of,
very helpful.
BUT, asking for even more, is it possible to do C-c C-o without first moving
the cursor to the R evaluation buffer (i.e from the buffer where I have the
R file i am editing).
Thanks again,
Angel

> Message: 1
> Date: Fri, 16 Jan 2004 09:46:12 +0100
> From: Martin Maechler <maechler at stat.math.ethz.ch>
> Subject: Re: Scrolling *R* (or *S*) buffer
> To: ESS-help at stat.math.ethz.ch
> Cc: Bruno Tona <tona at stat.math.ethz.ch>
> Message-ID: <16391.42196.168411.723362 at gargle.gargle.HOWL>
> Content-Type: text/plain; charset=us-ascii
>
>
> >>>>> "MM" == Martin Maechler <maechler at stat.math.ethz.ch>
> >>>>>     on Fri, 19 Dec 2003 18:36:46 +0100 writes:
>
>
> << On the topic of activating ``automatic scrolling of *R*
>    buffer'' ....... >>
>
> and mentioned the ESS info manual (something I'm told is missing from
> Jan deLeeuw MacOS jumbo package with R/X11/Emacs/ESS/..)
> which recommends setting
>       (setq comint-scroll-to-bottom-on-output t)
>
> Note: Emacs' "Comint" (Command Interpreter) is the base toolbox
>       below *R* (or M-x shell's *shell*) handling
>
> However, I found that we have been doing something a bit more
> sophisticated for years now :
>
> It's also important to set the comint-scroll-.. variables
> *after*  "comint"  has been loaded, hence the (eval-after-load ....)
> wrapper :
>
>   ;; comint 'fixes'
>   (eval-after-load
>    "comint"
>    '(progn
>       (setq comint-scroll-to-bottom-on-output 'others) ; not current
>       ;;=default: (setq comint-scroll-to-bottom-on-input nil)
>       (setq comint-scroll-show-maximum-output t) ;;; this is the key
>
>       (define-key comint-mode-map [up]
>         'comint-previous-matching-input-from-input)
>       (define-key comint-mode-map [down]
>         'comint-next-matching-input-from-input)
>       (define-key comint-mode-map "" 'comint-bol)
>       )
>    )
>
>
> Note that the last three statements are key settings that we
> like (and the last is default in the current ESS beta), but are
> not related to comint scrolling behavior.
>
> Hopefully this helps even further
>
> Martin Maechler <maechler at stat.math.ethz.ch>
http://stat.ethz.ch/~maechler/
> Seminar fuer Statistik, ETH-Zentrum  LEO C16 Leonhardstr. 27
> ETH (Federal Inst. Technology) 8092 Zurich SWITZERLAND
> phone: x-41-1-632-3408 fax: ...-1228 <><
>
>
>
> ------------------------------
>
> _______________________________________________
> ESS-help mailing list  DIGESTED
> ESS-help at stat.math.ethz.ch
> https://www.stat.math.ethz.ch/mailman/listinfo/ess-help
>
>
> End of ESS-help Digest, Vol 11, Issue 2
> ***************************************
>




More information about the ESS-help mailing list