GNU bug report logs - #76028
31; completing-read-multiple: Add prompt indicator

Previous Next

Package: emacs;

Reported by: Daniel Mendler <mail <at> daniel-mendler.de>

Date: Mon, 3 Feb 2025 09:28:01 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Daniel Mendler <mail <at> daniel-mendler.de>
To: Stefan Kangas <stefankangas <at> gmail.com>, 76028 <at> debbugs.gnu.org
Cc: Eli Zaretskii <eliz <at> gnu.org>, Juri Linkov <juri <at> linkov.net>
Subject: bug#76028: 31; completing-read-multiple: Add prompt indicator
Date: Mon, 03 Feb 2025 16:51:15 +0100
[Message part 1 (text/plain, inline)]
Daniel Mendler <mail <at> daniel-mendler.de> writes:

> Stefan Kangas <stefankangas <at> gmail.com> writes:
>
>> Daniel Mendler via "Bug reports for GNU Emacs, the Swiss army knife of
>> text editors" <bug-gnu-emacs <at> gnu.org> writes:
>>
>>> I propose to add such an indicator to CRM by default. Above I have
>>> chosen the tag "CRM" for its shortness, but a more user friendly
>>> solution might require a longer more descriptive name. Furthermore the
>>> code above extracts the separator from the regular expression
>>> `crm-separator', which is not robust for all separators.
>>
>> How about " [comma-separated list] "?
>>
>> I'd also propose we should have a defcustom for it, allowing users to
>> set it to something shorter if they want.
>
> Yes, this would look good. Note that `crm-separator' can be set to an
> arbitrary regular expression. How can we turn `crm-separator' into a
> string like "comma-separated list"? Maybe `crm-separator' should be
> generalized? One could set it to a cons ("," . "comma-separated list")
> with the regexp in the car and the description in the cdr. In cases
> where `crm-separator' is a string, we could use a generic string like
> "[multi list]".

I have attached a patch to this mail which implements this proposal.

Daniel

[0001-completing-read-multiple-CRM-indication-and-prompt-c.patch (text/x-diff, attachment)]

This bug report was last modified 85 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.