beautifying an R package

Martin Maechler maechler at stat.math.ethz.ch
Wed Oct 11 09:20:37 CEST 2000


>>>>> "Rich" == Rich Heiberger <rmh at surfer.sbm.temple.edu> writes:

    Rich> On the "_" key.  It's a good plan to default it to " <- " when
    Rich> writing code.  It is necessary to retain its original value "_"
    Rich> when inside quotation marks.  The "_" is frequently used as a
    Rich> character in file names, for example "_Data" in S-Plus 4.x and
    Rich> air_band.q in the R library of scripts.
how frequently?
`C-q _'   ("q" for "quote") will always give plain "_"

    Rich> unfortunately, the need for the distinction in default
    Rich> behaviors---within and without quotation marks---makes the coding
    Rich> of the switch more difficult.

Yes, one would have to use an ``electric binding'' which might work well
here, since we already have (a more or less correct) function

 >> (defun inside-string/comment-p (pos)
 >> "Return non-nil if POSition [defaults to (point) is inside string or comment
 >>  (according to syntax). NOT OKAY for multi-line comments!!"
 >>   ;;FIXME (defun S-calculate-indent ..) in ./essl-s.el can do that ...

What are 5.1.17 release plans? 
Can/should the above electrification be done before?

	(this may get out of focus for all the addressees above.. -> ESS-core)	
Martin


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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