[ESS] rewire C-RET to M-RET

Vitalie Spinu spinuvit at gmail.com
Thu Nov 7 00:46:42 CET 2013


Oh, that is embarrassing. It is one of our legacy code that was snicking
M-RET into ess-mode hook. It was overwriting your customization. I
corrected that.

More generally. I don't like M-RET binding. It is a nice key for users
to set for whatever they want. We have "C-c C-e /" for
ess-set-working-directory which does the same thing in a bit more
user-friendly way. 

Shall we remove M-RET?


   Vitalie

 >>> Andreas Leha on Thu, 7 Nov 2013 00:02:34 +0100 wrote:

 > Hi Vitalie,

 > thanks for looking into this!

 > Vitalie Spinu <spinuvit at gmail.com> writes:

 >> >>> Andreas Leha on Wed, 6 Nov 2013 23:17:23 +0100 wrote:
 VS> [...]
 >> 
 >> >> Note that in 'emacs -nw', if I run
 >> >> M-x local-set-key M-RET ess-eval-region-or-line-and-step
 >> >> it works.  
 >> 
 VS> If you do 
 >> 
 VS> M-: (define-key ess-mode-map [(meta return)] 'ess-eval-region-or-line-and-step)
 >> 
 VS> does it work?
 >> 
 >> I checked it myself ... it doesn't. 
 >> 
 >> Use
 >> 
 >> (define-key ess-mode-map (kbd "M-RET") 'ess-eval-region-or-line-and-step) 
 >> 

 > I did put that into my .emacs:


 > (eval-after-load "ess-mode"
 >   '(progn
 >      (define-key ess-mode-map (kbd "C-RET") 'ess-use-this-dir)
 >      (define-key ess-mode-map (kbd "M-RET") 'ess-eval-region-or-line-and-step)
 > ))



 > But now M-RET executes ess-use-this-dir both in 'emacs' and in
 > 'emacs -nw'.

 > Regards,
 > Andreas

 > ______________________________________________
 > ESS-help at r-project.org mailing list
 > https://stat.ethz.ch/mailman/listinfo/ess-help



More information about the ESS-help mailing list