I've searched for 45 minutes, apparently in all the wrong places for a solution to a configuration issue I'm having. When I use Xemacs with ESS running in R-mode, and I type a "-" character, it autocompletes it to "<- ". How do I disable this annoying "feature"? Thanks much. [[alternative HTML version deleted]]
On Thu, 2007-03-29 at 13:57 -0500, c n wrote:> I've searched for 45 minutes, apparently in all the wrong places for a > solution to a configuration issue I'm having. > > When I use Xemacs with ESS running in R-mode, and I type a "-" character, it > autocompletes it to "<- ". How do I disable this annoying "feature"? > > Thanks much.I think you mean an underscore "_" rather than a hyphen "-"? If you type "__" (a double underscore) you will get an underscore. If you want to disable that feature, put the following: (ess-toggle-underscore nil) in your init.el file after the point where ESS is loaded. BTW, there is a dedicated ESS list: https://stat.ethz.ch/mailman/listinfo/ess-help HTH, Marc Schwartz
On Thu, 2007-03-29 at 13:57 -0500, c n wrote:> I've searched for 45 minutes, apparently in all the wrong places for a > solution to a configuration issue I'm having. > > When I use Xemacs with ESS running in R-mode, and I type a "-" character, it > autocompletes it to "<- ". How do I disable this annoying "feature"? > > Thanks much.Don't know about disabling it, but to get a "_", just press it twice. "_" doesn't auto-complete in text strings (quoted). "_" isn't allowed for assignment anymore, so the only place I can think of at the mo is that you want to type a "_" in a variable name? Also, this is best addressed on the ESS mailing list: ess-helpATstatDOTmathDOTethzDOTch (just remove the AT and DOTs) G -- %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% Gavin Simpson [t] +44 (0)20 7679 0522 ECRC, UCL Geography, [f] +44 (0)20 7679 0565 Pearson Building, [e] gavin.simpsonATNOSPAMucl.ac.uk Gower Street, London [w] http://www.ucl.ac.uk/~ucfagls/ UK. WC1E 6BT. [w] http://www.freshwaters.org.uk %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
"c n" <rhelpme at gmail.com> writes:> When I use Xemacs with ESS running in R-mode, and I type a "-" character, it > autocompletes it to "<- ". How do I disable this annoying "feature"?>From the ESS manual:,---- | * ESS[S]: Pressing underscore ("_") once inserts " <- " (as before); | pressing underscore twice inserts a literal underscore. To stop | this smart behaviour, add "(ess-toggle-underscore nil)" to your | .emacs after ess-site has been loaded; `---- HTH Patrick -- Patrick Drechsler tel: +44 1223 334441 Department of Zoology fax: +44 1223 336687 University of Cambridge Downing Street Cambridge CB2 3EJ, UK