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


Message #38 received at 76028 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Daniel Mendler <mail <at> daniel-mendler.de>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 76028 <at> debbugs.gnu.org,
 Stefan Kangas <stefankangas <at> gmail.com>
Subject: Re: bug#76028: 31; completing-read-multiple: Add prompt indicator
Date: Tue, 04 Feb 2025 20:16:56 +0200
> Another more tricky approach would be to attach text properties to
> crm-separator which carry the additional data. This would be backward-
> and forward-compatible also for third-party code, but maybe not very
> elegant. What do you think?

Although text properties are not customizable, this should not be
a problem for third-party packages.  And crm-separator is a variable,
not a defcustom.

>>> Another possibility might be to use the completion category and the
>>> separator string and convert that to an example, e.g., category face
>>> would yield the prompt "Describe face (face1,face2,...):".
>>
>> Maybe then it's possible to provide the separator and its description
>> in the metadata?
>
> This would be more intrusive. Also the question is if the crm-separator
> is truly bound to the completion table, or if it should be possible to
> reuse the same table with different separators.

Then it's possible to override the separator.  But anyway it seems
text properties are the least intrusive approach.




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.