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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 75306 <at> debbugs.gnu.org, stefankangas <at> gmail.com
Subject: Re: bug#75306: 31.0.50;
 Make `small-temporary-file-directory` variable obsolete
Date: Fri, 03 Jan 2025 10:39:14 +0200
> Cc: 75306 <at> debbugs.gnu.org
> Date: Fri, 03 Jan 2025 06:56:03 +0100
> From:  Michael Albinus via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> 
> 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?

Exactly my questions.

The doc string says:

  If non-nil, this directory is used instead of ‘temporary-file-directory’
  by programs that create small temporary files.  This is for systems that
  have fast storage with limited space, such as a RAM disk.

This says nothing about MS-DOS, and makes perfect sense to me.  It
gives our users a capability to direct small enough temporary files to
a fast temporary filesystem.  If the OS sets this up, then users will
not need to customize this variable, whose default is nil.  But if
some user has a good reason to customize this, why take that
flexibility from them?  How do we justify removal of a feature which
could be useful to someone?  From my POV, this feature needs zero
maintenance.




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.