Creating '_' in S/R modes

Warnes, Gregory R gregory_r_warnes at groton.pfizer.com
Fri Oct 5 17:18:32 CEST 2001


Yes, in looking through the source code I saw the C-q _ solution.  I would
still prefer for "_" "_" to get translated to "_" so that I don't have to
hit another control sequence.  For one thing, it would be a lot easier to
explain (and remember) for newbies.

BTW, this is in light of the current discussion on R-help about 'disabling'
'_' as an assignment character to ease compatibility with (most) languages
that consider '_' a valid character in identifiers.

-Greg

 >  -----Original Message-----
 >  From: Stephen Eglen [mailto:stephen at cogsci.ed.ac.uk]
 >  Sent: Friday, October 05, 2001 11:07 AM
 >  To: rossini at u.washington.edu
 >  Cc: Warnes, Gregory R; 'ess-help at stat.math.ethz.ch'
 >  Subject: Re: Creating '_' in S/R modes
 >  
 >  
 >  
 >   > >>>>> "GRW" == Gregory R Warnes <Warnes> writes:
 >   > 
 >   >     GRW> I like the feature of converting a typed '_' to '<-'.
 >   >     GRW> However, for various reasons I sometimes *want* 
 >  to create the
 >   >     GRW> underscore character.  Would be possible to preserve the
 >   >     GRW> current behavior translating a single typed 
 >  underscore ('_')
 >   >     GRW> into '<-' while translating two consecutive underscores
 >   >     GRW> ('__') to '_'?
 >   > 
 >   > Yes.  Rob Gentleman had recently requested this feature, 
 >  and its quite
 >   > sensible.  Look for it in a few weeks.
 >  
 >  If you want a "_" in an R buffer, why not try the Emacs 
 >  convention of
 >  using the C-q prefix (quoted-insert).  e.g. C-q _ gives me an
 >  underscore in an R buffer, whereas _ on its own gives me the left
 >  arrow.
 >  
 >  Just an idea, and may be of a more general use for people in many
 >  other modes.
 >  
 >  Stephen
 >  


LEGAL NOTICE
Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this E-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents of this E-mail or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately.
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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