unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#28668: comint-previous-input could put the cursor where it was
@ 2017-10-02 10:33 積丹尼 Dan Jacobson
  2019-07-15  9:22 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: 積丹尼 Dan Jacobson @ 2017-10-02 10:33 UTC (permalink / raw)
  To: 28668

In bash, ^P puts the cursor at the same spot where it was (when we hit
RET) last command. In emacs shell mode, M-p (comint-previous-input)
always puts the cursor at the end of the line, no matter what. Perhaps
it could be made to be like bash... at least for the latest previous
command.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#28668: comint-previous-input could put the cursor where it was
  2017-10-02 10:33 bug#28668: comint-previous-input could put the cursor where it was 積丹尼 Dan Jacobson
@ 2019-07-15  9:22 ` Lars Ingebrigtsen
  2019-07-15 11:07   ` 積丹尼 Dan Jacobson
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Ingebrigtsen @ 2019-07-15  9:22 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 28668

積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:

> In bash, ^P puts the cursor at the same spot where it was (when we hit
> RET) last command.

I tried this on Debian Stale now, and C-p didn't do that.  Perhaps you
have a special setting?

> In emacs shell mode, M-p (comint-previous-input)
> always puts the cursor at the end of the line, no matter what. Perhaps
> it could be made to be like bash... at least for the latest previous
> command.

I think that sounds like a slightly confusing feature, so I'm closing
this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#28668: comint-previous-input could put the cursor where it was
  2019-07-15  9:22 ` Lars Ingebrigtsen
@ 2019-07-15 11:07   ` 積丹尼 Dan Jacobson
  0 siblings, 0 replies; 3+ messages in thread
From: 積丹尼 Dan Jacobson @ 2019-07-15 11:07 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 28668

Yes, in .inputrc
set history-preserve-point on

Once you try it you'll never go back!





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-07-15 11:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-02 10:33 bug#28668: comint-previous-input could put the cursor where it was 積丹尼 Dan Jacobson
2019-07-15  9:22 ` Lars Ingebrigtsen
2019-07-15 11:07   ` 積丹尼 Dan Jacobson

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).