From: Nick Roberts <nickrob@snap.net.nz>
Cc: emacs-devel@gnu.org
Subject: Re: comint-accumulate-marker
Date: Tue, 18 Apr 2006 21:47:29 +1200 [thread overview]
Message-ID: <17476.46513.178110.694161@farnswood.snap.net.nz> (raw)
In-Reply-To: <pan.2006.04.17.18.06.31.376086@as.arizona.edu>
> > In a terminal
> > shell, using up arrow to recall history doesn't clobber the partially
> > complete command you are composin. If you go back down, it is still
> > there (even if it's blank). Not so in comint modes. Going down with
> > M-p only wraps you around the input ring.
> >
> > This would clearly be an improvement. Can you implement it?
>
> Here is a patch which implements this behavior. I've added a custom
> variable controlling whether it is on or off, and have left it off by
> default for now. If people like it and think it would be
> generically useful, I can enable it by default.
>
> JD
This patch works for me.
...
> + (defcustom comint-save-partial-input nil
> + "*If non-nil, save partial input at the prompt when cycling through history.
> + The saved input is recovered when moving off of the end of input
> + history in either direction. If no input, restores blank line."
> + :type 'boolean
> + :group 'comint)
...
How about (current input is a term already used in comint.el):
(defcustom comint-keep-current-input t
"If non-nil, don't clobber the current input when cycling through history."
(Since it's an improvement why not make it the default? Most people won't
even know/need to know it's an option).
--
Nick http://www.inet.net.nz/~nickrob
next prev parent reply other threads:[~2006-04-18 9:47 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-13 19:45 comint-accumulate-marker JD Smith
2006-04-16 0:19 ` comint-accumulate-marker Bob Portmann
2006-04-16 2:09 ` comint-accumulate-marker Richard Stallman
2006-04-17 18:06 ` comint-accumulate-marker JD Smith
2006-04-18 9:47 ` Nick Roberts [this message]
2006-04-18 11:25 ` comint-accumulate-marker Stefan Monnier
2006-04-18 20:50 ` comint-accumulate-marker Richard Stallman
2006-04-18 12:57 ` comint-accumulate-marker Richard Stallman
2006-04-18 19:10 ` comint-accumulate-marker JD Smith
2006-04-18 20:54 ` comint-accumulate-marker David Kastrup
2006-04-18 21:06 ` comint-accumulate-marker JD Smith
2006-04-18 23:25 ` comint-accumulate-marker Stuart D. Herring
2006-04-18 21:22 ` comint-accumulate-marker Nick Roberts
2006-04-18 21:38 ` comint-accumulate-marker JD Smith
2006-04-18 23:24 ` comint-accumulate-marker Nick Roberts
[not found] ` <1145403002.27500.42.camel@turtle.as.arizona.edu>
2006-04-19 0:01 ` comint-accumulate-marker Nick Roberts
2006-04-19 0:01 ` Bug in diff-mode? (was: Re: comint-accumulate-marker) Nick Roberts
2006-04-19 15:40 ` Richard Stallman
2006-04-19 15:40 ` comint-accumulate-marker Richard Stallman
2006-04-20 7:25 ` comint-accumulate-marker David Kastrup
2006-04-20 7:45 ` comint-accumulate-marker Nick Roberts
2006-04-20 17:29 ` comint-accumulate-marker JD Smith
2006-04-18 22:21 ` comint-accumulate-marker Stuart D. Herring
2006-04-18 22:48 ` comint-accumulate-marker JD Smith
2006-04-18 23:39 ` comint-accumulate-marker Miles Bader
2006-04-19 0:02 ` comint-accumulate-marker JD Smith
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=17476.46513.178110.694161@farnswood.snap.net.nz \
--to=nickrob@snap.net.nz \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.