emacs-ess/ESS

ess-toggle-underscore

r2evans opened this issue · 4 comments

It seems that the intent of 3b5d903 is to remove the simplicity of (ess-toggle-underscore nil).

  1. Documentation still suggests its availability,
    smart behaviour, add "(ess-toggle-underscore nil)" to your .emacs after
  2. Is there a new way to do this? I think it's no longer required, I upgraded and a single _ did as expected.

Perhaps this is just an issue to update that texi file.

It seems that the intent of 3b5d903 is to remove the simplicity of (ess-toggle-underscore nil).

From the commit message the intent was to solve some compilation warnings.

Documentation still suggests its availability,

This is not the documentation but the changelog for ESS 5.2.0. I can't find the release date for this version but looks like it's from 2004 or older.

a single _ did as expected.

What do you mean by expected?

Perhaps this is just an issue to update that texi file.

It might need a mention in the current release changelog. Or it might need to be aliased to something else, not sure why the alias was dangling.

I recall (years ago) setting that so that hitting _ alone did not impose the <- assignment. Frankly, that's an old setting I just haven't cleaned my lisp in a while. This isn't a failing bug report, just a notice that required I remove the (apparently unnecessary) reference to it. Thanks @lionel- !

mcol commented

What I should do if I wanted the old behaviour for which _ produced <-?

mcol commented

I've found the instructions I needed in the NEWS file, sorry for the noise. For reference, here they are:

;; for the editor
(define-key
 ess-r-mode-map "_" #'ess-insert-assign)
;; inside an R session
(define-key
 inferior-ess-r-mode-map "_" #'ess-insert-assign)