GNU bug report logs - #78719
30.1; [PATCH] Add functions `string-common-prefix' and `string-try-completion'

Previous Next

Package: emacs;

Reported by: Phil Sainty <psainty <at> orcon.net.nz>

Date: Sun, 8 Jun 2025 12:05:01 UTC

Severity: normal

Tags: patch

Found in version 30.1

Full log


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

From: Daniel Mendler <mail <at> daniel-mendler.de>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Phil Sainty <psainty <at> orcon.net.nz>, juri <at> linkov.net,
 monnier <at> iro.umontreal.ca, drew.adams <at> oracle.com, 78719 <at> debbugs.gnu.org
Subject: Re: bug#78719: 30.1; [PATCH] Add functions `string-common-prefix'
 and `string-try-completion'
Date: Sun, 29 Jun 2025 09:48:59 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

> So maybe we should make this API simpler, so it could do its main job
> without requiring such a large and complicated doc string, and leave
> the rest to try-completion?

+1 Yes, I had argued this before. The only additional argument should be
IGNORE-CASE.

(string-common-prefix COLLECTION &optional IGNORE-CASE)

All more complicated use cases could be left to `try-completion'.

> Thanks.




This bug report was last modified 57 days ago.

Previous Next


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