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.devel Subject: Re: Reconsider make-backup-files default value Date: Thu, 19 Sep 2024 09:36:42 +0300 Message-ID: <861q1g9mkl.fsf@gnu.org> References: <87a5g84hn4.fsf@baxters.nz> <86msk7dcuk.fsf@gnu.org> <87frpwprdh.fsf@librehacker.com> <86bk0k9pz9.fsf@gnu.org> <86jzf889sa.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11351"; mail-complaints-to="usenet@ciao.gmane.io" Cc: christopher@librehacker.com, petterih@iki.fi, jeremy@baxters.nz, james.ipswich@proton.me, emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Sep 19 08:37:41 2024 Return-path: Envelope-to: ged-emacs-devel@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 1srAnM-0002ng-Vs for ged-emacs-devel@m.gmane-mx.org; Thu, 19 Sep 2024 08:37:41 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1srAmX-0008Mb-LE; Thu, 19 Sep 2024 02:36:49 -0400 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 1srAmW-0008MB-4J for emacs-devel@gnu.org; Thu, 19 Sep 2024 02:36:48 -0400 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 1srAmT-0003Zv-BG; Thu, 19 Sep 2024 02:36:45 -0400 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=KqyYFx/iTf4ukzPhitl0LI7dD8galnxZLALzVy6qSrw=; b=L4eQ8DOlKdpw odANeZ73CdjRX/3puF2RdW+EDN8pGQE1qNU2fU674o/er58zrTHb/t8b1CWu1z5LBcivirZAYals+ wJGbzD2ep998SUpYA8N1ZqfWw/lB4yNvHrZAJwiWK52K/jvYfeL81mqOJ879qHCHXRMaKefryGBe+ 9za/705GLSACYW/hi7cUc9KmxFxZC3/a/KocTVF6ygEdoOIKUTZGtNJgBwfXnjMa4lA0dAIedVEvH rU0jnPZlMgAPlHeVaKQJn6uAHw6cQrKONI5JdjCuhtAp88gl+vUgCex4XtCQCtvuJJWtZPjiWcDES oucCSCaY0Z7jd8ghaokq1Q==; In-Reply-To: <86jzf889sa.fsf@mail.linkov.net> (message from Juri Linkov on Thu, 19 Sep 2024 09:10:13 +0300) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:323753 Archived-At: > From: Juri Linkov > Cc: Christopher Howard , petterih@iki.fi, > jeremy@baxters.nz, james.ipswich@proton.me, emacs-devel@gnu.org > Date: Thu, 19 Sep 2024 09:10:13 +0300 > > >> Something I have wondered about for a while is why the kept-old-versions > >> default is 2 instead of 1. It makes sense of course that you would want > >> to keep, e.g., the original (template) version of a config file, but what > >> is special about the first revision you made to it? > > > > If you start from an empty file, the first version is frequently not > > useful. > > Is it possible not to create a backup for a new empty file? I don't think we have such a feature, no. > Because empty backups are useless. Not always useless, but in most cases, yes. The first backup is also not useful in other cases: when you start from a copy of another file, or from something very short. So I think there's some sense in the current default value of kept-old-versions.