Scrolling of the *R* buffer at point

View: New views
6 Messages — Rating Filter:   Alert me  

Scrolling of the *R* buffer at point

by Patrick Connolly-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


It seems to me there was a change with Emacs 22 that has the effect
whenever I press <enter> in the *R* buffer, whatever is returned will
end up placing the curser on the bottom of the *R* frame (unless only
a few lines have been used since beginning the R session).

Until that change, I used to be able to keep point up from the bottom
of the frame and nothing would scroll until the bottom was reached.
For reasons I can go into if anyone is interested, I prefer that to
the new way.

Is there a nifty line or two I can put in the ~/.emacs file to restore
the good old days?  My Emacs version is
GNU Emacs 23.1.1 (i386-redhat-linux-gnu, GTK+ Version 2.16.5)

TIA

--
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.  
   ___    Patrick Connolly  
 {~._.~}                   Great minds discuss ideas    
 _( Y )_           Average minds discuss events
(:_~*~_:)                  Small minds discuss people  
 (_)-(_)                        ..... Eleanor Roosevelt
         
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.

______________________________________________
ESS-help@... mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help

Re: Scrolling of the *R* buffer at point

by Richard M. Heiberger :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Experiment with the three emacs variables

comint-scroll-show-maximum-output
comint-scroll-to-bottom-on-input
comint-scroll-to-bottom-on-output

Rich

______________________________________________
ESS-help@... mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help

Re: Scrolling of the *R* buffer at point

by Patrick Connolly-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, 04-Oct-2009 at 03:05PM -0400, Richard M. Heiberger wrote:

> Experiment with the three emacs variables
>
> comint-scroll-show-maximum-output
> comint-scroll-to-bottom-on-input
> comint-scroll-to-bottom-on-output

Thanks for the hints.  I've set them all to nil and now I can use R
properly.  At some stage, I might find a reason to switch one of them
to t again, but now I know where to look.

BTW: Where do I find a list of all those amazing variables?

>
> Rich

--
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.  
   ___    Patrick Connolly  
 {~._.~}                   Great minds discuss ideas    
 _( Y )_           Average minds discuss events
(:_~*~_:)                  Small minds discuss people  
 (_)-(_)                        ..... Eleanor Roosevelt
         
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.

______________________________________________
ESS-help@... mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help

Re: Scrolling of the *R* buffer at point

by Richard M. Heiberger :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> BTW: Where do I find a list of all those amazing variables?

C-h v will list all variables.

C-h a is apropos, type a keyword and it will give you
a list of functions that use it.

C-h i gives info on lots of stuff, including emacs and ESS.

Rich

______________________________________________
ESS-help@... mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help

Re: Scrolling of the *R* buffer at point - clarification for Aquamacs newbie

by jgar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Can anyone help me adapt and/or implement this fix for Aquamacs for Mac?  I'm new to emacs and to the Mac OS and can't figure out what to tweak for the same desired results.  Just a steer in the right direction will suffice (I hope).

Thank you!

J


QUOTED:   seems to me there was a change with Emacs 22 that has the effect
whenever I press <enter> in the *R* buffer, whatever is returned will
end up placing the curser on the bottom of the *R* frame (unless only
a few lines have been used since beginning the R session).

Until that change, I used to be able to keep point up from the bottom
of the frame and nothing would scroll until the bottom was reached.
For reasons I can go into if anyone is interested, I prefer that to
the new way.

Is there a nifty line or two I can put in the ~/.emacs file to restore
the good old days?  My Emacs version is
GNU Emacs 23.1.1 (i386-redhat-linux-gnu, GTK+ Version 2.16.5)



Experiment with the three emacs variables

comint-scroll-show-maximum-output
comint-scroll-to-bottom-on-input
comint-scroll-to-bottom-on-output

Rich

Re: Scrolling of the *R* buffer at point - clarification for Aquamacs newbie

by Marc Schwartz-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I don't use Aquamacs, but am using Emacs 23 (compiled locally from  
CVS) on OSX.

Aquamacs can use either the ~/.emacs file or more typically and I  
believe preferentially:

   ~/Library/Preferences/Aquamacs Emacs/Preferences.el

The three options in the post below will scroll the buffer windows to  
the bottom of the frame after input and/or output.

There is an additional option, which moves the cursor or 'point' to  
the bottom as well. This is:

   comint-move-point-for-output

If this is true (or non-nil), then the cursor moves as well.  
Otherwise, the buffer may scroll, but the cursor may not follow.

These options are described in the Emacs manual here:

   http://www.gnu.org/software/emacs/manual/html_node/emacs/Shell-Options.html

In either of the aforementioned configuration files, you can paste:

(setq comint-scroll-to-bottom-on-input nil)
(setq comint-scroll-to-bottom-on-output nil)
(setq comint-move-point-for-output nil)
(setq comint-scroll-show-maximum-output nil)

Those four lines should disable the autoscrolling and cursor movement.  
If that works to some extent, then try enabling each in turn to see  
how it affects the behavior, until you get something that works for  
you. Replace 'nil' with 't' to enable each.

HTH,

Marc Schwartz

On Nov 17, 2009, at 10:44 AM, jgar wrote:

>
> Hi,
>
> Can anyone help me adapt and/or implement this fix for Aquamacs for  
> Mac?
> I'm new to emacs and to the Mac OS and can't figure out what to  
> tweak for
> the same desired results.  Just a steer in the right direction will  
> suffice
> (I hope).
>
> Thank you!
>
> J
>
>
> QUOTED:   seems to me there was a change with Emacs 22 that has the  
> effect
> whenever I press <enter> in the *R* buffer, whatever is returned will
> end up placing the curser on the bottom of the *R* frame (unless only
> a few lines have been used since beginning the R session).
>
> Until that change, I used to be able to keep point up from the bottom
> of the frame and nothing would scroll until the bottom was reached.
> For reasons I can go into if anyone is interested, I prefer that to
> the new way.
>
> Is there a nifty line or two I can put in the ~/.emacs file to restore
> the good old days?  My Emacs version is
> GNU Emacs 23.1.1 (i386-redhat-linux-gnu, GTK+ Version 2.16.5)
>
>
>
> Experiment with the three emacs variables
>
> comint-scroll-show-maximum-output
> comint-scroll-to-bottom-on-input
> comint-scroll-to-bottom-on-output
>
> Rich
> --
> View this message in context: http://old.nabble.com/Scrolling-of-the-*R*-buffer-at-point-tp25735617p26393234.html
> Sent from the ESS - Help mailing list archive at Nabble.com.
>
> ______________________________________________
> ESS-help@... mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help

______________________________________________
ESS-help@... mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help