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: Thu, 04 Oct 2018 19:21:54 +0200 Message-ID: <87woqx39vx.fsf@mbork.pl> References: <87zhvvqipx.fsf@wallenfang.de> <87murv5d4q.fsf@wallenfang.de> <20181004110446.GA31656@tuxteam.de> 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 1538673727 9437 195.159.176.226 (4 Oct 2018 17:22:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 4 Oct 2018 17:22:07 +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 Thu Oct 04 19:22:03 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 1g87K6-0002Hi-7F for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Oct 2018 19:22:02 +0200 Original-Received: from localhost ([::1]:57907 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g87MC-0005ry-OD for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Oct 2018 13:24:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51918) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g87Lk-0005rm-Dl for help-gnu-emacs@gnu.org; Thu, 04 Oct 2018 13:23:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g87Le-0006sE-44 for help-gnu-emacs@gnu.org; Thu, 04 Oct 2018 13:23:44 -0400 Original-Received: from mail.mojserwer.eu ([195.110.48.8]:39144) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g87Ld-0006aQ-Q2 for help-gnu-emacs@gnu.org; Thu, 04 Oct 2018 13:23:37 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id BB084E6715; Thu, 4 Oct 2018 19:23:31 +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 CEi553dJNYxI; Thu, 4 Oct 2018 19:23:28 +0200 (CEST) Original-Received: from localhost (apn-95-40-137-164.dynamic.gprs.plus.pl [95.40.137.164]) by mail.mojserwer.eu (Postfix) with ESMTPSA id CAEECE64B5; Thu, 4 Oct 2018 19:23:27 +0200 (CEST) In-reply-to: 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:118118 Archived-At: 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 want > 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 my 2 cents, -- Marcin Borkowski http://mbork.pl