Let's say I enter the following keystrokes:

1 + 1 RET M-p C-a

This adds 1+1, gets the result, then runs comint-previous-input and reenters the previous command. C-a moves to the start of the line ... but puts the point before the prompt, where the | is below.

# ———
1+1
[1] 2
|> 1 + 1
# ———

Is there a way to go to the start of the command, not the line? I'm often in a situation where I get something working and then want to assign it to a variable, and it would be nice to run M-p C-a and be able to type "foo <-" with everything in place. (Thereby saving me all the trouble of hitting the right arrow twice, which I know is trivial, but this is Emacs so I bet someeone has got this working, unless I missed it in the docs.)


Thanks,

Bill

--
William Denton
https://www.miskatonic.org/
Librarian, artist and licensed private investigator.
Toronto, Canada
______________________________________________
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help

Reply via email to