[R] Replacing underscore character in Windows GUI

Martin Maechler maechler at stat.math.ethz.ch
Wed Aug 13 15:51:44 CEST 2003


>>>>> "PD" == Peter Dalgaard BSA <p.dalgaard at biostat.ku.dk>
>>>>>     on 13 Aug 2003 10:48:39 +0200 writes:

    PD> Martin Maechler <maechler at stat.math.ethz.ch> writes:
    tony> I'd be happier removing "=" for assignment, as well.  It's a
    tony> monstrosity, though supposedly wiser heads think otherwise.  I know
    tony> the arguments, but I still think it should be removed.
    >> 
    tony> Maybe we'll make "=" electric -- one press becomes "<-", two presses
    tony> become "==".  Emacs is wonderful, sometimes.
    >> 
    >> This is an interesting proposal.

    PD> But if you don't check whether you're in an argument list, it becomes
    PD> a little too "interesting"....

Definitely.  And we have been here before.
This might be quickly feasible if using simple heuristics.
But potentially daunting otherwise...  Any volunteers for an 
(defun ess-inside-arglist (region) ....) emacs-lisp function ?

User keyboard interface :
I'm currently musing around

`='     |->  electric:  "=" or " <- " depending on (ess-inside-arglist)
`=='    |->  "=="
`C-u =' |->  "=" always)

`_'     |->  " <- "  or   "_"   depending on variable ess-US (really longer name)
`C-u _' |->  "_"     or  " <- " depending on ess-US (the other value)

Note that  "C-c =" is also free, but needs a little more typing.
What other ideas are around?

Regards,
Martin




More information about the ESS-help mailing list