all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Stefan Kangas <stefankangas@gmail.com>
Cc: 75306@debbugs.gnu.org, michael.albinus@gmx.de
Subject: bug#75306: 31.0.50; Make `small-temporary-file-directory` variable obsolete
Date: Fri, 03 Jan 2025 13:46:52 +0200	[thread overview]
Message-ID: <86pll4glw3.fsf@gnu.org> (raw)
In-Reply-To: <CADwFkmkVQoTvj4i=3F=WuYvDsY6cCHw5WUWaa5V7fYg=MNBPGA@mail.gmail.com> (message from Stefan Kangas on Fri, 3 Jan 2025 03:15:49 -0600)

> From: Stefan Kangas <stefankangas@gmail.com>
> Date: Fri, 3 Jan 2025 03:15:49 -0600
> Cc: 75306@debbugs.gnu.org
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > This says nothing about MS-DOS,
> 
> The docstring is one thing, but the variable _definition_ reads the same
> today as when it was first introduced (in ffc0e1caf1a6):
> 
> (defvar small-temporary-file-directory
>   (if (eq system-type 'ms-dos) (getenv "TMPDIR"))
> 
> This makes it clear that the intention was, at least in part, to support
> MS-DOS specifically, and it has remained that over the years.

no, the _default_value_ caters to MS-DOS specifically.  But that
doesn't yet mean the variable itself is for that system.

> I doubt that this micro-optimization (or whatever we should call it) is
> likely to give much bang for your buck, especially not in an age when
> users are starting to routinely throw 500 MiB or even 1 GiB at their
> tmpfs RAM disks.

Maybe so, but we had this variable for eons, and I can easily imagine
valid use cases for it even today.  For example, some system whose
disks are of different speed (say, SSD and spinning disk).

> > 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?
> 
> Besides the Tramp use case (which is valid and deserves its own
> variable), it is used only in some very old modules: vc-rcs.el and
> cmacexp.el, in shell-command-on-region, and literally nowhere else.

Except by an unknown number of users.  Why break their setup?

> I do agree that there's no compelling reason why we must remove _this
> particular piece of cruft_ specifically, but I also don't see any good
> reason to keep it.

We should only remove or obsolete existing features if we have a good
reason for that.  A valid, and a very good, reason to keep a feature
is that we already have it.





  reply	other threads:[~2025-01-03 11:46 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-03  3:23 bug#75306: 31.0.50; Make `small-temporary-file-directory` variable obsolete Stefan Kangas
2025-01-03  5:56 ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2025-01-03  8:26   ` Stefan Kangas
2025-01-03  8:49     ` Eli Zaretskii
2025-01-03  8:39   ` Eli Zaretskii
2025-01-03  9:15     ` Stefan Kangas
2025-01-03 11:46       ` Eli Zaretskii [this message]
2025-01-04  9:54   ` Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
2025-01-04  9:54   ` Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
     [not found]   ` <87ttaezyyp.fsf@>
2025-01-04 11:26     ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2025-01-04 22:16       ` Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
2025-01-04 22:16       ` Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
     [not found]       ` <6779b38c.050a0220.be2ea.a6e0SMTPIN_ADDED_BROKEN@mx.google.com>
2025-01-05  5:30         ` Stefan Kangas
     [not found]       ` <8734hyw7g4.fsf@>
2025-01-05  8:18         ` Michael Albinus via Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86pll4glw3.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=75306@debbugs.gnu.org \
    --cc=michael.albinus@gmx.de \
    --cc=stefankangas@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.