From: Lars Ingebrigtsen <larsi@gnus.org>
To: John Valente <johnv02139@yahoo.com>
Cc: 19055@debbugs.gnu.org
Subject: bug#19055: comint-previous-matching-input-from-input broken by fix for #13404
Date: Sat, 03 Aug 2019 16:22:02 +0200 [thread overview]
Message-ID: <87v9vegwhh.fsf@mouse.gnus.org> (raw)
In-Reply-To: <1415985136.73487.YahooMailNeo@web162102.mail.bf1.yahoo.com> (John Valente's message of "Fri, 14 Nov 2014 09:12:16 -0800")
John Valente <johnv02139@yahoo.com> writes:
> Bug #13404 complained that comint-previous-matching-input-from-input
> moved the point to the end of the line, and that this was a bug because it
> was incompatible with bash and zsh.
>
> I really have no idea where this comes from. Actually, bash and zsh do
> move the cursor to the end of the input. But even if they didn't, the "old"
> behavior is something that Emacs users have used and appreciated for
> many years.
>
> If someone wants behavior where the point doesn't move as you cycle
> through the history, that could be a reasonable request, but that should be
> controlled by a variable or a symbol property or something. To simply
> change the behavior, without providing a straightforward option to get back
> the old behavior, is absurd.
>
> Obviously there is a workaround: in my personal emacs files, I now define
> my own version of comint-previous-matching-input-from-input. But this is
> silly. I don't want to have to define my own version of basic functions.
(I'm going through old bug reports that unfortunately have not received
any responses yet.)
If I understand correctly, this bug was fixed by the patch below, and
I'm closing this bug report. If this bug is still present, please
reopen.
commit afe2997119a5e6b108851f2e236037da1d4acef2
Author: Philipp Stephani <phst@google.com>
Date: Thu Oct 27 00:28:34 2016 +0200
Comint: new user option for C-c M-r and C-c M-s
This option allows the user to specify where to place point after these
commands.
* comint.el (comint-move-point-for-matching-input): New user option.
(comint-previous-matching-input-from-input): Use user option.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
prev parent reply other threads:[~2019-08-03 14:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-14 17:12 bug#19055: comint-previous-matching-input-from-input broken by fix for #13404 John Valente
2019-08-03 14:22 ` Lars Ingebrigtsen [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87v9vegwhh.fsf@mouse.gnus.org \
--to=larsi@gnus.org \
--cc=19055@debbugs.gnu.org \
--cc=johnv02139@yahoo.com \
/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 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).