[ESS] (no subject)

Vitalie Spinu @p|nuv|t @end|ng |rom gm@||@com
Sat Jun 20 18:43:14 CEST 2015


 >>> "James W. MacDonald" on Fri, 19 Jun 2015 10:13:34 -0400 wrote:

 > (define-key comint-mode-map [up]
 > 'comint-previous-matching-input-from-input)

 > (define-key comint-mode-map [down]
 >  'comint-next-matching-input-from-input)

 > In previous iterations of Emacs/ESS, this would return the previous
 > command, with point at the end of the line. 

That indeed seems to have changed in emacs recently and it makes a lot of sense.

When you press [up] the matching is done on the text between bol and point. With
the old behavior on the second invocation of the command the input would be the
whole line, which makes it inconsistent. Also you might want to edit the input
line after the first attempt. Then, if you are automatically placed on end of
the line, it would require going back to the editing position or re-typing the
text.

  Vitalie




More information about the ESS-help mailing list