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 #62 received at 78719 <at> debbugs.gnu.org (full text, mbox):

From: Phil Sainty <psainty <at> orcon.net.nz>
To: Daniel Mendler <mail <at> daniel-mendler.de>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 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, 06 Jul 2025 01:04:47 +1200
On 2025-07-06 00:35, Daniel Mendler wrote:
> Only changing the return type to string is not worth the addition
> of a new function.

I can only disagree.  Wrapper functions which *eliminate all of the
awkwardness* from an API are completely worthwhile.  They make the
code using them easier to write and read and understand.

My argument from the outset has been that try-completion is not a
good API for use outside of the context of completion because of
its return values, and therefore it warrants a wrapper which makes
it nice to use (as well as easy to discover) for those situations.






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.