all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Daniel Mendler <mail@daniel-mendler.de>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re: [PATCH] `completion-all-sorted-completions`: Add support for completion boundaries
Date: Sun, 25 Apr 2021 00:27:01 +0200	[thread overview]
Message-ID: <0113c57b-68dc-3c03-01d0-4964bb37b85b@daniel-mendler.de> (raw)
In-Reply-To: <jwvlf97z6az.fsf-monnier+emacs@gnu.org>

On 4/25/21 12:19 AM, Stefan Monnier wrote:
>> lisp/minibuffer.el (completion-all-sorted-completions): The history is
>> preprocessed by the function `minibuffer--sort-preprocess-history`.
>> The default value is prepended to the history.  The completion base
>> prefix string is removed from the history elements.  This allows
>> sorting by history position for completion tables which use completion
>> boundaries, in particular the file completion table.
>> test/lisp/minibuffer-tests.el (completion-all-sorted-completions): Add
>> tests for various combinations of with/without history/base/default.
> 
> I massaged this to use the active voice and stick a bit closer to
> our conventions.

Thanks, I am sorry that you had to do the commit message massage again. 
I will write a better message next time.

> I massaged this so that `def` is also filtered through `base`
> (and also so that comments are properly punctuated).

Right, it is correct to remove the base from the default.

> And I changed this completion table to a list of strings, since lists of
> symbols happen to work most of the time but aren't officially supported
> (we support alists whose keys are symbols, OTOH).

Okay, good to know. But if symbol-keyed alists are supported, it makes 
sense to officially allow lists of symbols too? I've never seen breakage 
with symbol lists with various completion systems. I think I am using 
them somewhere.

Daniel



      reply	other threads:[~2021-04-24 22:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-24 20:14 [PATCH] `completion-all-sorted-completions`: Add support for completion boundaries Daniel Mendler
2021-04-24 22:19 ` Stefan Monnier
2021-04-24 22:27   ` Daniel Mendler [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=0113c57b-68dc-3c03-01d0-4964bb37b85b@daniel-mendler.de \
    --to=mail@daniel-mendler.de \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.