<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi Stefan,</div><div><br></div><div>works like a charme, many thanks for providing that snippet. I like Aquamacs as an editor, and now working with R feels just great.</div><div><br></div><div>All the best wishes,</div><div>Christian</div><div><br></div><div><br></div><br><div><div>Am 28.02.2009 um 11:04 schrieb Stefan Strohmeier:</div><br class="Apple-interchange-newline"><blockquote type="cite"> <div> <!-- Converted from text/plain format --> <br><p><font size="2">Hi Christian,<br> <br> On 27 Feb 2009, at 12:04, Christian Liesen wrote:<br> > I began working with Aquamacs only last week and hope that someone can <br> > point me to a solution for auto-scrolling other frames or buffers. I'm <br> > lost.<br> ><br> > What I do is this:<br> ><br> > -- open Aquamacs<br> > -- open a file with R syntax in a first frame<br> > -- open a "New Buffer in New Frame", start R in that second frame<br> ><br> > Everything works fine except that the second frame with R does not <br> > autoscroll. In order to see the results of the commands I'm sending <br> > from the syntax frame, I always have to switch to the R frame, scroll <br> > down to see the output, then go back again to the syntax frame. This <br> > is getting pretty tiresome over time.<br> <br> I use the following code to see the results of a data<br> object in the *R* buffer when a transcript buffer is<br> active:<br> <br> (setq comint-scroll-to-bottom-on-input t)<br> (setq comint-scroll-to-bottom-on-output t)<br> (setq comint-move-point-for-output t)<br> <br> For a better workflow you can try the following code.<br> It finds out whether you want to evaluate a marked<br> region or a line and binds it to just one shortcut.<br> <br>    (defun my-ess-eval ()<br>      (interactive)<br>      ;;(my-ess-start-R)<br>      (if (and transient-mark-mode mark-active)<br>         (call-interactively 'ess-eval-region)<br>        (call-interactively 'ess-eval-line-and-step)))<br> <br>    (add-hook 'ess-mode-hook<br>             '(lambda()<br>                (local-set-key [(shift return)] 'my-ess-eval)))<br> <br> <br> Hope that helps,<br> <br> Stefan Strohmeier<br> Universität Bayreuth<br> <br> _____________________________________________________________<br> MacOSX-Emacs mailing list<br> <a href="mailto:MacOSX-Emacs@email.esm.psu.edu">MacOSX-Emacs@email.esm.psu.edu</a><br> <a href="http://email.esm.psu.edu/mailman/listinfo/macosx-emacs">http://email.esm.psu.edu/mailman/listinfo/macosx-emacs</a><br> List Archives: <a href="http://dir.gmane.org/gmane.emacs.macintosh.osx">http://dir.gmane.org/gmane.emacs.macintosh.osx</a><br> </font> </p> </div> </blockquote></div><br></body></html>