From: Eli Zaretskii <eliz@gnu.org>
To: Michael Albinus <michael.albinus@gmx.de>, sbaugh@janestreet.com
Cc: emacs-devel@gnu.org
Subject: Re: master 69ec333eab0: Allow customizing partial-completion to be more like substring
Date: Sat, 31 Aug 2024 12:30:17 +0300 [thread overview]
Message-ID: <865xrhca52.fsf@gnu.org> (raw)
In-Reply-To: <87frqu6xbe.fsf@gmx.de> (message from Michael Albinus on Sat, 24 Aug 2024 12:15:49 +0200)
Spencer, would you please take care of these gotchas?
> From: Michael Albinus <michael.albinus@gmx.de>
> Cc: Spencer Baugh <sbaugh@janestreet.com>
> Date: Sat, 24 Aug 2024 12:15:49 +0200
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> Hi,
>
> > diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
> > index 3beb3c06a18..6fae62b3904 100644
> > --- a/lisp/minibuffer.el
> > +++ b/lisp/minibuffer.el
> > @@ -1141,7 +1141,15 @@ and DOC describes the way this style of completion works.")
> > ;; and simply add "bar" to the end of the result.
> > emacs22)
> > "List of completion styles to use.
> > -The available styles are listed in `completion-styles-alist'.
> > +An element should be a symbol which is listed in
> > +`completion-styles-alist'.
> > +
> > +An element can also be a list of the form
> > +(STYLE ((VARIABLE VALUE) ...))
> > +STYLE must be a symbol listed in `completion-styles-alist', followed by
> > +a `let'-style list of variable/value pairs. VARIABLE will be bound to
> > +VALUE (without evaluating it) while the style is handling completion.
> > +This allows repeating the same style with different configurations.
>
> The :type of completion-styles should be adapted in order to reflect
> this change. Furthermore, this warrants a change of the :version, I
> believe.
>
> Just being curious: why must it be a form (STYLE ((VARIABLE VALUE) ...)) ?
> Wouldn't it be sufficient to use (STYLE (VARIABLE VALUE) ...) ?
>
> > +(defcustom completion-pcm-leading-wildcard nil
> > + "If non-nil, partial-completion completes as if there's a leading wildcard.
> > +
> > +If nil (the default), partial-completion requires a matching completion
> > +alternative to have the same beginning as the first \"word\" in the
> > +minibuffer text, where \"word\" is determined by
> > +`completion-pcm-word-delimiters'.
> > +
> > +If non-nil, partial-completion allows any string of characters to occur
> > +at the beginning of a completion alternative, as if a wildcard such as
> > +\"*\" was present at the beginning of the minibuffer text. This makes
> > +partial-completion behave more like the substring completion style."
> > + :version "30.1"
> > + :type 'boolean)
>
> This doesn't look right, it should be :version "31.1".
>
> Best regards, Michael.
>
>
next prev parent reply other threads:[~2024-08-31 9:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <172449136475.5211.17507793835510648935@vcs2.savannah.gnu.org>
[not found] ` <20240824092245.2C0C9C41F06@vcs2.savannah.gnu.org>
2024-08-24 10:15 ` master 69ec333eab0: Allow customizing partial-completion to be more like substring Michael Albinus
2024-08-31 9:30 ` Eli Zaretskii [this message]
2024-09-06 17:23 ` Spencer Baugh via Emacs development discussions.
2024-09-14 8:47 ` Eli Zaretskii
2024-09-21 9:57 ` Eli Zaretskii
2024-09-23 19:36 ` Spencer Baugh
2024-09-24 11:22 ` Eli Zaretskii
2024-09-24 11:32 ` Spencer Baugh
2024-09-24 12:53 ` Eli Zaretskii
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=865xrhca52.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=michael.albinus@gmx.de \
--cc=sbaugh@janestreet.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).