all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: sbaugh@catern.com
To: help-gnu-emacs@gnu.org
Subject: Re: Teach completion to insert a common prefix
Date: Thu, 10 Aug 2023 07:33:13 -0400	[thread overview]
Message-ID: <871qgbjfnq.fsf@catern.com> (raw)
In-Reply-To: CALTqLiaNUKp689-9ES3q-7zV7LASJpiWcdSc=nR3CMNJCJPpPg@mail.gmail.com

Pierre Rouleau <prouleau001@gmail.com> writes:

>> All possible completions for -matching-lines- start with
>> > list-matching-lines-.  So there would be no harm in inserting "list" at
>> > the start of the completion input.  But Emacs does not do this.
>>
>> It does do that if you put the point at the start of line.
>>
>> Note that older versions of Emacs was also doing that even when point was
> at the end of the line, as in Emacs 26.3
>
> Do you know when that changed and why?

I think this is just a bug, maybe introduced in Emacs 26.  I fixed it in
bug#65137: 29.1; completion-substring-try-completion doesn't return the
longest common substring.




      reply	other threads:[~2023-08-10 11:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-07 20:38 Teach completion to insert a common prefix Spencer Baugh
2023-08-08  6:19 ` Yuri Khan
2023-08-09  4:09   ` Pierre Rouleau
2023-08-10 11:33     ` sbaugh [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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871qgbjfnq.fsf@catern.com \
    --to=sbaugh@catern.com \
    --cc=help-gnu-emacs@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.