From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: Re: How to disable auto save on Emacs 26.1 Date: Sat, 06 Oct 2018 08:24:51 +0200 Message-ID: <87y3bb1tjg.fsf@mbork.pl> References: <87zhvvqipx.fsf@wallenfang.de> <87murv5d4q.fsf@wallenfang.de> <20181004110446.GA31656@tuxteam.de> <87woqx39vx.fsf@mbork.pl> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1538807109 22196 195.159.176.226 (6 Oct 2018 06:25:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 6 Oct 2018 06:25:09 +0000 (UTC) User-Agent: mu4e 1.1.0; emacs 27.0.50 Cc: Help GNU Emacs , tom@wallenfang.de To: Skip Montanaro Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 06 08:25:05 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g8g1Q-0005eo-Fv for geh-help-gnu-emacs@m.gmane.org; Sat, 06 Oct 2018 08:25:04 +0200 Original-Received: from localhost ([::1]:38154 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g8g3W-000407-IL for geh-help-gnu-emacs@m.gmane.org; Sat, 06 Oct 2018 02:27:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60657) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g8g31-0003zv-6I for help-gnu-emacs@gnu.org; Sat, 06 Oct 2018 02:26:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g8g2Z-0001oU-I0 for help-gnu-emacs@gnu.org; Sat, 06 Oct 2018 02:26:19 -0400 Original-Received: from mail.mojserwer.eu ([195.110.48.8]:57544) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g8g2Z-0001mq-AQ for help-gnu-emacs@gnu.org; Sat, 06 Oct 2018 02:26:15 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id A29F6E6AEE; Sat, 6 Oct 2018 08:26:07 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id l9RRUNh42iWL; Sat, 6 Oct 2018 08:26:04 +0200 (CEST) Original-Received: from localhost (static-dwadziewiec-jedenpiec7.echostar.pl [109.232.29.157]) by mail.mojserwer.eu (Postfix) with ESMTPSA id D602DE6715; Sat, 6 Oct 2018 08:26:03 +0200 (CEST) In-reply-to: <87woqx39vx.fsf@mbork.pl> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.110.48.8 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:118145 Archived-At: On 2018-10-04, at 19:21, Marcin Borkowski wrote: > On 2018-10-04, at 14:55, Skip Montanaro wrote: > >>> If your concern is file system clutter, better leave auto-save alone. >>> It's not going to clutter your file system (unless something else is >>> going horribly wrong). As for backup, you can disable it or even teach >>> it to use one directory for all backups (I have typically something >>> beneath my ~/.emacs.d). >> >> Coming a bit late to the game... Adding to Tom=C3=A1s's point, if you wa= nt >> to eliminate backup files, don't just disable it. Replace it with a >> proper version control system of some sort. Think of backup files (I >> generally use numeric backups to actually retain more than one old >> copy - more clutter!) as a defense against shooting yourself in the >> foot. A version control system does that, only better. [...] > > That is a very sound advice. I'd like to point out, however, that the > backup files (even the numbered ones) actually do have their place even > in the presence of VCSs. (Coincidentally, I have a blog post ready for > publishing about exactly this issue, and I plan to post it online on > Saturday.) My use-case is a .env file, containing sensitive data (like > passwords) the application I'm working on needs. It must not be > committed to a Git repo, but being able to look at one (or more) > previous versions (as in, "what was the last version that wan't somehow > broken") is sometimes quite valuable. Just in case someone was interested, here's my blog post about Emacs and backup copies of files it saves: http://mbork.pl/2018-10-06_The_version-control_variable Best, --=20 Marcin Borkowski http://mbork.pl