[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

next M-x compile, etc.: put cursor where it was when I hit RET

From: Dan Jacobson
Subject: next M-x compile, etc.: put cursor where it was when I hit RET
Date: 26 Nov 2001 09:25:26 +0800
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

Consider rapid prototyping of programs, where one is constantly
(compile "phonecombo 854 |tee /tmp/v|ispell -l|sort|diff - /tmp/v")
while adjusting 854 to various different numbers each run.

Well even with
(global-set-key "\C-xc" 'compile); [also added query to c-x c-c in case typo]

to speed things up, one notices that one must move the cursor back
from the end of the line each time to get back over to the 854 to
tinker with it.

The bash fellow apparently also considered a similar complaint about
C-p valid and put new features in the newest version to remember where
the cursor was in the last line[s?] instead of always placing you in
at the end of the line, [though I haven't tried his new fixes yet.]

Anyway, M-x compile is the compile command of the pros.  With your
help it could be even more pros-y.

Hmm, maybe for M-x ESC ESC [repeat-complex-command] do this too.

Maybe even do that bash fix for the shell-mode's M-p [by the way, isn't it
neat how one's brain splits: M-p in *shell*, C-p in bash and
everywhere else :-)
http://www.geocities.com/jidanni/ Tel+886-4-25854780

reply via email to

[Prev in Thread] Current Thread [Next in Thread]