GNU bug report logs - #75910
31; Deprecate minibuffer-completing-file-name

Previous Next

Package: emacs;

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

Date: Tue, 28 Jan 2025 14:29:02 UTC

Severity: normal

Full log


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

From: Daniel Mendler <mail <at> daniel-mendler.de>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: "75910 <at> debbugs.gnu.org" <75910 <at> debbugs.gnu.org>,
 Stefan Kangas <stefankangas <at> gmail.com>,
 Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: [External] : Re: bug#75910: 31; Deprecate
 minibuffer-completing-file-name
Date: Wed, 29 Jan 2025 08:53:01 +0100
Drew Adams <drew.adams <at> oracle.com> writes:

>> > The Emacs "code base" can, and does, often not try
>> > hard to remain compatible with older code-base code.
>> > Emacs code in the large is a different story.
>> 
>> So where do you use these variables and why is it not possible to
>> replace them with a completion category in your packages? I use
>> `minibuffer-completing-file-name' in my packages too, but I can replace
>> the variable with the file category without downsides.
>
> I didn't say that I use them.  I spoke generally,
> about Emacs code beyond the Emacs "code base", and
> a willy-nilly desire to remove code that such code
> can depend on.
>
> I do happen to use them, but that's irrelevant to
> the general argument and my objection.  (It just
> means some more maintenance time, to enable code to
> work with both new and old Emacs releases - nothing
> new about that.)

I do not disagree with the general argument about longevity and
retaining compatibility. Deprecation should be a long process.

But then given that there is a more general mechanism in place, even at
your suggestion, I wonder how you think that adoption of this newer
mechanism should happen. Deprecation of the old mechanism can be used as
signal that something new is available. But you would still preserve
every old mechanism indefinitely?

I consider the accretion of replicated code a problem. In this case, we
are talking about only a little amount. Nevertheless it will make the
API harder to use and understand if multiple mechanisms for the same
thing are present. I also care about good integration of subsystems.
When a new subsystem is added to Emacs, which overlaps with an older
subsystem and aims to replace it, it will lead to indirection via an
adapter and accumulated maintenance burden if old code is kept
indefinitely. It is up to the maintainers to decide where to draw the
line.

Daniel




This bug report was last modified 136 days ago.

Previous Next


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