[ESS] Assignment operator "<-" not bound to "_" anymore (or any other default it seems).

Alex Branham @|ex@br@nh@m @end|ng |rom gm@||@com
Tue Mar 26 17:45:12 CET 2019


On Tue 26 Mar 2019 at 11:39, Marius Hofert via ESS-help <ess-help using r-project.org> wrote:

> In 18.10.3snapshot (GNU Emacs 26.1, macOS 10.14.4) "_" is not the
> assignment operator "<-" anymore (it still was in 18.10.2). This step,
> especially the fact that there is no new default to obtain "<-" (or is
> there?) might scare away users...

That's correct. It was removed because so many new users found it
surprising and confusing.

> Is there a new recommended way to get "<-"? I now use...
>
> (define-key ess-r-mode-map (kbd "M--") #'ess-insert-assign)
> (define-key inferior-ess-r-mode-map (kbd "M--") #'ess-insert-assign)

That should work well.

> Not having a default for "<-" seems weird to me and not everyone likes
> to make adjustments to .emacs just to get basic functionality (... and
> thus probably switches to RStudio...).

The default is C-c C-=. Pressing it multiple times will cycle through
the various assignment operators (e.g. <- = -> etc).

Hope that helps,
Alex



More information about the ESS-help mailing list