From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#18693: 25.0.50; backup user options Date: Fri, 22 Oct 2021 19:43:07 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="876"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 18693@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 23 01:44:20 2021 Return-path: Envelope-to: geb-bug-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 1me4Cx-000AbI-G8 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Oct 2021 01:44:19 +0200 Original-Received: from localhost ([::1]:49744 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1me4Cv-0003Z3-U6 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Oct 2021 19:44:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53628) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1me4Cg-0003YI-42 for bug-gnu-emacs@gnu.org; Fri, 22 Oct 2021 19:44:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50656) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1me4Cf-0008Ql-S3 for bug-gnu-emacs@gnu.org; Fri, 22 Oct 2021 19:44:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1me4Cf-0007BL-Kz for bug-gnu-emacs@gnu.org; Fri, 22 Oct 2021 19:44:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Oct 2021 23:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18693 X-GNU-PR-Package: emacs Original-Received: via spool by 18693-submit@debbugs.gnu.org id=B18693.163494619927538 (code B ref 18693); Fri, 22 Oct 2021 23:44:01 +0000 Original-Received: (at 18693) by debbugs.gnu.org; 22 Oct 2021 23:43:19 +0000 Original-Received: from localhost ([127.0.0.1]:33966 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1me4Bz-0007A5-12 for submit@debbugs.gnu.org; Fri, 22 Oct 2021 19:43:19 -0400 Original-Received: from mail-pg1-f181.google.com ([209.85.215.181]:41913) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1me4Bt-00079Q-CA for 18693@debbugs.gnu.org; Fri, 22 Oct 2021 19:43:14 -0400 Original-Received: by mail-pg1-f181.google.com with SMTP id t184so4662050pgd.8 for <18693@debbugs.gnu.org>; Fri, 22 Oct 2021 16:43:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=HGtkX6fgFWxDl+Lf4gbJ0MH5AD0gcF1Nt9DgAwTRaJ8=; b=XUtKeQmN5Su2n7HW6c9WtTv5DOh514UjuhNJAUvC7oE233XMuNG/2pRWY/vOKEylAe ZTbahJHxHObOzjoRlEtxCRxtvS2U3XEIP6LUw8KHjAM3jpQZFKf7Jlsf0Huiu5pzyKIT B8FafsO62KeD82zTsye2hpqc2DtegNbNqwcNE3ZOgYfkupZuAB58RVi+KEX0IDKhgvVC asu/tmO9JbzpZovEHk0XdiU9/HCOwtLllkr8EhCd7o0J0WEMC6d3x4qV6JjQiQm41PFZ AWoEUfssH93H2So9vTggFRAZtZ7rjsyQnooFgdAu+Ts/k6JjHTQ/XmIyumTbRGlVGD8Y FRSQ== X-Gm-Message-State: AOAM532Rv/Qb3R+z+cx4vrHs5uVxiovrAJSE7/Bl7IouVapC4O2jccUB MyUZ82AJurP95u3Gw7N/plV6YyZF1FSz/hpgMyn2bVjS X-Google-Smtp-Source: ABdhPJyCxkGlUJSSo9m4jwFIhK3IYNoNzYHuS2zZFnRSOJGp474vBOkQLp6CVmMpPyoHDSDelnrB2d/DHEHLEMwg5Jc= X-Received: by 2002:a05:6a00:244d:b0:44d:c279:5155 with SMTP id d13-20020a056a00244d00b0044dc2795155mr3131043pfj.0.1634946187657; Fri, 22 Oct 2021 16:43:07 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Fri, 22 Oct 2021 19:43:07 -0400 In-Reply-To: (Drew Adams's message of "Sat, 11 Oct 2014 18:28:27 -0700 (PDT)") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:217921 Archived-At: tags 18693 + wontfix close 18693 thanks Drew Adams writes: > There are several user options for customizing file backups > (`backup-by-*'). Wading through the doc strings or Customize buffers > for them, it seems that they could all be consolidated under option > `make-backup-files', by letting different non-nil values provide the > different backup behaviors. > > To be clear: I really don't care about this. Consider it feedback that > it seems that Emacs is making things unnecessarily complicated for > users, here, and it should be possible to do things better. If no one > wants to do that, fine. Thanks for this feature request. As far as I can tell we have the following options: backup-by-copying User option: Non-nil means always use copying to create backup files. backup-by-copying-when-linked User option: Non-nil means use copying to create backups for files with multiple names. backup-by-copying-when-mismatch User option: Non-nil means create backups by copying if this preserves owner or group. backup-by-copying-when-privileged-mismatch User option: Non-nil means create backups by copying to preserve a privileged owner. backup-directory-alist User option: Alist of file name patterns and backup directory names. backup-enable-predicate Variable: Predicate that looks at a file name and decides whether to make backups. backup-inhibited Variable: If non-nil, backups will be inhibited. All in all, I don't think it is too bad. The options clearly express what they do, and they seem orthogonal to each other. > Also, things have been like this since at least Emacs 20, and users > already have various `backup-by-*' options in their custom or init > files. So if this were simplified then some remapping/aliasing would > need to happen. More importantly, and as you correctly observe, creating a consolidated variable, even if it is a good idea (maybe it is), would lead to a lot of user configurations breaking or needing updating. So on balance, I don't think this is worth spending time on or doing, and I'm therefore closing this bug report.