[OS X Emacs] Newbie question: Aquamacs autoscroll in second, frame or buffer

Christian Liesen christian.liesen at hfh.ch
Sun Mar 1 16:57:24 EST 2009


Hi Stefan,

works like a charme, many thanks for providing that snippet. I like  
Aquamacs as an editor, and now working with R feels just great.

All the best wishes,
Christian



Am 28.02.2009 um 11:04 schrieb Stefan Strohmeier:

>
> Hi Christian,
>
> On 27 Feb 2009, at 12:04, Christian Liesen wrote:
> > I began working with Aquamacs only last week and hope that someone  
> can
> > point me to a solution for auto-scrolling other frames or buffers.  
> I'm
> > lost.
> >
> > What I do is this:
> >
> > -- open Aquamacs
> > -- open a file with R syntax in a first frame
> > -- open a "New Buffer in New Frame", start R in that second frame
> >
> > Everything works fine except that the second frame with R does not
> > autoscroll. In order to see the results of the commands I'm sending
> > from the syntax frame, I always have to switch to the R frame,  
> scroll
> > down to see the output, then go back again to the syntax frame. This
> > is getting pretty tiresome over time.
>
> I use the following code to see the results of a data
> object in the *R* buffer when a transcript buffer is
> active:
>
> (setq comint-scroll-to-bottom-on-input t)
> (setq comint-scroll-to-bottom-on-output t)
> (setq comint-move-point-for-output t)
>
> For a better workflow you can try the following code.
> It finds out whether you want to evaluate a marked
> region or a line and binds it to just one shortcut.
>
>    (defun my-ess-eval ()
>      (interactive)
>      ;;(my-ess-start-R)
>      (if (and transient-mark-mode mark-active)
>         (call-interactively 'ess-eval-region)
>        (call-interactively 'ess-eval-line-and-step)))
>
>    (add-hook 'ess-mode-hook
>             '(lambda()
>                (local-set-key [(shift return)] 'my-ess-eval)))
>
>
> Hope that helps,
>
> Stefan Strohmeier
> Universität Bayreuth
>
> _____________________________________________________________
> MacOSX-Emacs mailing list
> MacOSX-Emacs at email.esm.psu.edu
> http://email.esm.psu.edu/mailman/listinfo/macosx-emacs
> List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://email.esm.psu.edu/pipermail/macosx-emacs/attachments/20090301/a0d67b28/attachment.html>


More information about the MacOSX-Emacs mailing list