From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#75306: 31.0.50; Make `small-temporary-file-directory` variable obsolete Date: Fri, 03 Jan 2025 13:46:52 +0200 Message-ID: <86pll4glw3.fsf@gnu.org> References: <87cyh4bfv0.fsf@gmx.de> <86y0zsgukt.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13308"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 75306@debbugs.gnu.org, michael.albinus@gmx.de To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 03 12:48:30 2025 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tTgAI-0003Jp-L0 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 03 Jan 2025 12:48:30 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTg9t-0005gk-8g; Fri, 03 Jan 2025 06:48:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tTg9r-0005fz-AR for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2025 06:48:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tTg9r-0000kA-2P for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2025 06:48:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=ETRZnGx14m3vE4WOTddCTCSo/5ELNq6WAFP7ApU2C8w=; b=nSeujv74S9T+iv0qymWTJkUWIIcYyYr/o4zFg3ACwocmflvZiFvQsqOgdqMoZLlsTNkB4OyKHVe01g8TCt8HfHNg7aHw5Z59XA+Cm4SdsldmwTU6JSNArgYnaXqAYZxWS6Rc6uqH77Fl4nN8Et9ZN0qGtuKQIkYqJPMZ3J0Ki1CC8vXu76bwZoF5EHsjTfAjdEV+a/HsCizykfbQlbYrQrqtjwu2vFKfiQDB5ird1Q6XeNxH03rzc53+yT8aHOGk0Si6ZvbxFkw6w6uFK5WjEuG4+YFIGj/f/ccv5afESRYe8/vWgESmSL+J28LLzVLVAgBgbfDbyzx4dY1vYUstuQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tTg9p-0002bb-Nc for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2025 06:48:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Jan 2025 11:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75306 X-GNU-PR-Package: emacs Original-Received: via spool by 75306-submit@debbugs.gnu.org id=B75306.17359048269936 (code B ref 75306); Fri, 03 Jan 2025 11:48:01 +0000 Original-Received: (at 75306) by debbugs.gnu.org; 3 Jan 2025 11:47:06 +0000 Original-Received: from localhost ([127.0.0.1]:49822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tTg8v-0002aB-4Z for submit@debbugs.gnu.org; Fri, 03 Jan 2025 06:47:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43012) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tTg8r-0002Zf-1t for 75306@debbugs.gnu.org; Fri, 03 Jan 2025 06:47:02 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tTg8l-0000fl-BO; Fri, 03 Jan 2025 06:46:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=ETRZnGx14m3vE4WOTddCTCSo/5ELNq6WAFP7ApU2C8w=; b=seHnKGfmN2Wa GD0JAcWC8TIcMqFSfv3Zbh8nGA7s6/qyjZBLPJGUiNMfxnP4cunh+jn8aF/CNiE1sWleFGzadNJ2T V3BXK35G/dK6TTcx4nUFJ8TlN8GY8jgr78W7UocJfd82xgzV4luUipFH2adYafvW64pjXCN+a9lwp FDzwE5t2T78/dN4mMgG7thoaO9m4zIyUb58rt1Qu1ntno2aymLxeQHXpVUSxQzkZJIMhT7mnmMqvy CDSOPUS9ZcS6EfyHYbSSz/gK9fZ989r4kWLqIbdOc72c/rrlPdg/qS0IjSyo2v+BRAAhw1oe8xS6K MYLstX8enztEECo6Ejs/kA==; In-Reply-To: (message from Stefan Kangas on Fri, 3 Jan 2025 03:15:49 -0600) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:298271 Archived-At: > From: Stefan Kangas > Date: Fri, 3 Jan 2025 03:15:49 -0600 > Cc: 75306@debbugs.gnu.org > > Eli Zaretskii 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.