From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: auto-save directory? Date: Sat, 19 Mar 2022 07:10:35 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WKI2RH/5fBKZo4g/" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6208"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 19 07:11:11 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 1nVSIw-0001Oi-CG for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 19 Mar 2022 07:11:10 +0100 Original-Received: from localhost ([::1]:40046 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nVSIu-0001K3-Um for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 19 Mar 2022 02:11:08 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38728) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nVSIU-0001Jv-3Q for help-gnu-emacs@gnu.org; Sat, 19 Mar 2022 02:10:42 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:36240) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nVSIS-00040f-19 for help-gnu-emacs@gnu.org; Sat, 19 Mar 2022 02:10:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=nswY1qSP+DMOcJ/cUBB6NOPPjxoSBUJBQNOz2LY77II=; b=FuXs53Z7jtqSUpUQ7JBNMdPDw5 FcSQu7UZMyOBKLXUI1NIj06UJjUYPMBziq7OfXPr6uc/7Czk0wD39/OPG7jJjN70aeondjMjS7tRO uOdyqwYJDWON8OdYveyiYv0IFJ6/54a/P9re5R+Isx18e9lmMfJfz6jc+FYrxFhD8N9mmTnifO9q+ BPBJAgDtM3+On0K4ZwH2EW7GwJxOtcq9j+a4EkGcHPJwnMFC0ud0d/NA9DHlu5bWOeU5/en4Kg0gM 6dCdD0mGMYhvu/JphafSI27+t6C4+8WitGMjmPgs/vj9X5xTlQR0t2Nm0ZcG8dx+BuquHL8bDvbrJ IPsaYr8w==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1nVSIN-00036Y-Uf for help-gnu-emacs@gnu.org; Sat, 19 Mar 2022 07:10:36 +0100 Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, 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:136671 Archived-At: --WKI2RH/5fBKZo4g/ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Mar 19, 2022 at 05:06:55AM +0100, hw wrote: >=20 > Hi, >=20 > I'm wondering if there is a way to have emacs put all auto-save files > into a configurable directory. We can set `tramp-auto-save-directory`, > but there doesn't seem an equivalent option for files that are not > remote. I couldn't find one in either the documentation, nor the source. >=20 > I'd find it nicer to have all auto-save files in one place instead of > all over the place. Is there such an option, and if there isn't, would > that be worth making a feature request? You can modify the variable `auto-save-file-name-transforms' to replace the leading part of the path to a value which suits you. Besides, you might want to do something about the further slashes. By default, Emacs comes with one transform defined for remote files (whose auto-saved twins end up locally). Perhaps you can reuse this, if it suits you. Cheers --=20 t --WKI2RH/5fBKZo4g/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCYjVz1QAKCRAFyCz1etHa RpFpAJ9J9ec8KyLhjC0vRma+8reMdqsh1gCeOQZC8O2Z4B9Bww4dDNFD2KAJhCA= =+T3A -----END PGP SIGNATURE----- --WKI2RH/5fBKZo4g/--