GNU bug report logs - #75306
31.0.50; Make `small-temporary-file-directory` variable obsolete

Previous Next

Package: emacs;

Reported by: Stefan Kangas <stefankangas <at> gmail.com>

Date: Fri, 3 Jan 2025 03:24:01 UTC

Severity: wishlist

Found in version 31.0.50

Full log


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

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 75306 <at> debbugs.gnu.org
Subject: Re: bug#75306: 31.0.50; Make `small-temporary-file-directory`
 variable obsolete
Date: Fri, 3 Jan 2025 02:26:29 -0600
Michael Albinus <michael.albinus <at> gmx.de> writes:

> Stefan Kangas <stefankangas <at> gmail.com> writes:
>
> Hi Stefan,
>
>> I think the variable doesn't make much sense these days, and should be
>> made obsolete.  Note that it is barely used in Emacs and third-party
>> packages.
>>
>> However, Tramp recently started using the variable as a place to create
>> OpenSSH Unix domain sockets.  May I suggest that Tramp uses some other
>> variable for this purpose, perhaps a Tramp specific one?
>
> Is there a reason that it must be changed? What are the advantages? Does
> it hurt to keep the user option?

It doesn't hurt to keep it.  The advantage is that we get rid of a
redundant variable.

> And in the Tramp case, you break an existing interface. Users have been
> instructed to change the value of small-temporary-file-directory when
> needed. See (info "(tramp) Frequently Asked Questions"), which documents
> a user problem reported on the <tramp-devel <at> gnu.org> ML.

Thanks.  Would something like this work?

(define-obsolete-variable-alias 'small-temporary-file-directory
  'temporary-file-directory "31.1")




This bug report was last modified 162 days ago.

Previous Next


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