ess-mode; suggestion for ess-eval-line-and-next-line
Martin Maechler
maechler at stat.math.ethz.ch
Thu Mar 30 15:23:46 CEST 2000
What do you think of Stephen's Proposition?
>>>>> "Stephen" == Stephen Eglen <stephen at anc.ed.ac.uk> writes:
Stephen> I've recently started using R, and find the Emacs interface
Stephen> very useful. The ESS package is similar to octave's emacs
Stephen> interface, which I've got rather attached to. One nice thing
Stephen> octave's mode does is to send a line to the process and then
Stephen> move the cursor to the next line of code,
Stephen> SKIPPING OVER BLANK LINES AND COMMENT LINES.
-------------------------------------------
stephen> The closest defun in ESS seems to be
Stephen> ess-eval-line-and-next-line, which just calls (next-line 1).
Stephen> I think this useful behaviour can be attained by copying the
Stephen> defun octave-next-code-line as I've done below. (NB thanks to
Stephen> Kurt Hornik and John Eaton for their code.) I've tested it on
Stephen> the file R-intro.R and it seems to work fine.
< ..... >
I think this is a very useful idea.
Shall I make this the default behavior of ess-eval-line-and-next-line
aka C-c C-n
and allow back-compatibility
(ie. one could set an ess-... variable which would change the behavior back
to the current behavior)
--- or is it okay to even drop that back-compatibility, since the new
behavior would be desirable by everyone ?
----
If I don't here votes requiring back compatibility,
I think I'll commit Stephen's new code.
Martin Maechler <maechler at stat.math.ethz.ch> http://stat.ethz.ch/~maechler/
Seminar fuer Statistik, ETH-Zentrum LEO D10 Leonhardstr. 27
ETH (Federal Inst. Technology) 8092 Zurich SWITZERLAND
phone: x-41-1-632-3408 fax: ...-1228 <><
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
ess-help mailing list -- To (un)subscribe, send
subscribe or unsubscribe
(in the "body", not the subject !) To: ess-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
More information about the ESS-help
mailing list