From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: volatile /tmp [was: how to force auto-save of buffers not visiting files, right now?] Date: Mon, 21 Mar 2022 09:47:39 +0100 Message-ID: <8735jbd74k.fsf@gmx.de> References: <9f32ac59eb1bc186b015c0b6c5b94822e70d4135.camel@adminart.net> <87y2164u5p.fsf@web.de> <9c3935a33573d50e595f37103434db5e29c21063.camel@adminart.net> <87ilsa61tn.fsf@web.de> <37e890d9c251b30d0caf83aa590bca1ad92ec5d4.camel@adminart.net> <87wngqclgk.fsf@gmx.de> <95f0e96687187c20086bf9f85a031a7271401407.camel@adminart.net> <74c5565e34b36b2cb94bca4abadc870076df0a4d.camel@adminart.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32978"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: hw Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 21 09:51:27 2022 Return-path: Envelope-to: geh-help-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 1nWDl9-0008OR-D4 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 21 Mar 2022 09:51:27 +0100 Original-Received: from localhost ([::1]:41722 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nWDl8-00073E-9e for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 21 Mar 2022 04:51:26 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44646) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWDhc-0005PP-GN for help-gnu-emacs@gnu.org; Mon, 21 Mar 2022 04:47:48 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:55145) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWDha-0007Sr-E7 for help-gnu-emacs@gnu.org; Mon, 21 Mar 2022 04:47:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1647852461; bh=MqA3GDsQjWqZh880XOWr6M3jgUhXABdNbwrWCYVY5RQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=Q+7dO5dNSOVoWB6pn6NxXsRuUoTpiu6GclDDUiXctDa3z1wPQgOHfgCemU4NH4BYa DmDQ31WfyTbO1pF5ZMm112KXiqNVFTRdDwr0+iSRGumuxJvg9QnC3tcwEZBfPBtGT7 BUTUugRCMz8WkyV4yRB34LkM5UteEYY/v1Y2Q2ic= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([79.140.118.124]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MtfNf-1oMwLL2tSx-00v8Fr; Mon, 21 Mar 2022 09:47:40 +0100 In-Reply-To: <74c5565e34b36b2cb94bca4abadc870076df0a4d.camel@adminart.net> (hw@adminart.net's message of "Mon, 21 Mar 2022 04:41:59 +0100") X-Provags-ID: V03:K1:l8FRY/2NjyhpLGjQUuJHXEnfzKW4MucGWQiK45zceXYkirEiZ0q GREH312GHpYrnq/RQWeNC85okaciL3N7M9J8YvkrgrSCErWTJGQZ2OlMI8HLG2qvE0EdmYk 0CRDl2dME8mh482vOZp4GRHP9K3tcVpWYD7ocrLUE28LrHBj6/Sf96xCi+Rgj694t3sjp+2 JMVGjDoY9vOMF+8RMYWHQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:x+gBFbp3kYg=:HW6kfFE4c+roGZa1ADzzph K0hxJj0uvm7H2q5V4JusAIr+/sEI1FvelIOUBSeqbW2UZVH90UUDFxP5o+m5ZJ6EeHAa5VH0V xu7BAm6hMO7pjK7KrBK0IrF4M4mjahQpNatiqdNo/ViatnHGoGZT3RhMKhNwD9eVYAwjg/nf3 ZOnqpT1IZ6r5J/2K05L2Px1U24pS1xOlAC7SQUkXT0tTk/ik5gLbtBRy/6eHXXkmFB1CrkSCM 5ZkIWkhYXK2iwXVtKeb4j1fkxmGNpLPGGIBcmTvjwJbrS3mUlMAwRo/yGc80T8aazf/oCB4U8 CP2LgS7gGFYdU+VexBvd/3ef13wIRFKg4Z9E6NlZ+F5RfCj8WLk4B6Zg5ZGfqVoQkxg8toWxL 1kxxD0mLl/7KSNaFDc2Qg7tAWLebyNKp59Z3wiyRZwweCGZ4VHqbNCN8Qx7NtzgTwg6m6i5HE luGzX+Nwsh1sGvo8Nz0WuV46M+vf8bWHNWOdjLCALmpnPW614pxHP72Fm1jY+WGnuTpM8grWK oxwqLsyW37fizOKPaAbYj12IaqtQkbr2M40Hk3cK6qCLiPy4PeBff8pzUZ5U4X9IvWfPqZpGe KEEy6OOLeQkPg6aZsF+YHl20/N5cbT+XtVjsPSNxiSQK+8KyK3Z/IaizAJzdG3Nv8JnhO5DOT RHyNgHpiwe/34/K0dJusz68wnoVX2mt5qr3goHt+uMC45yjUPovONcklBgofAYiPDytnJ4ymp QCZHn9LvEaopBls7AXIyTC+r9KNTCxyFFFyxt4xOia4MNtLX+HiC0M/gPqr7Boz8TvnY1MNF Received-SPF: pass client-ip=212.227.17.21; envelope-from=michael.albinus@gmx.de; helo=mout.gmx.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:136702 Archived-At: hw writes: Hi, >> So either change it for yourself (and document what you did, to >> help others in your situation) or start convincing people if you >> want that to become a more general default :-) > > Nah, it's simply a bug that files which are being stored in order to > recover your work after something went wrong --- and that "something" > includes having to reboot --- are being stored in such a way that > recovery is impossible. It's a feature that doesn't work right and > thus needs to be fixed. There won't be any change if you continue to argue on help-gnu-emacs@gnu.org. Write a bug report, and be prepared for the discussion. Take into account, that auto-save-file-name-transforms isn't initialized using hard-coded "/tmp/". It's default value is rather --8<---------------cut here---------------start------------->8--- `(("\\`/[^/]*:\\([^/]*/\\)*\\([^/]*\\)\\'" ,(concat temporary-file-directory "\\2") t)) --8<---------------cut here---------------end--------------->8--- On MS-Windows, this expands for me to --8<---------------cut here---------------start------------->8--- '(("\\`/[^/]*:\\([^/]*/\\)*\\([^/]*\\)\\'" "c:/Users/albinus/AppData/Local/Temp/\\2" t)) --8<---------------cut here---------------end--------------->8--- And if you start Emacs with any value for environment variable $TMP, like --8<---------------cut here---------------start------------->8--- env TMP=/var/tmp emacs -Q --8<---------------cut here---------------end--------------->8--- then auto-save-file-name-transforms expands accordingly: --8<---------------cut here---------------start------------->8--- '(("\\`/[^/]*:\\([^/]*/\\)*\\([^/]*\\)\\'" "/var/tmp/\\2" t)) --8<---------------cut here---------------end--------------->8--- And there is tramp-auto-save-directory, which overrules the said setting. Honestly, I don't see a reason to change the current behavior. People who want that auto-saved remote files exist after a reboot can change the behavior easily. But many people, including me, don't want this feature. (I might be biased as Tramp maintainer. Who knows.) Best regards, Michael.