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.bugs Subject: bug#12507: [debbugs-tracker] Processed: severity 12507 wishlist Date: Wed, 23 Sep 2020 19:23:03 +0300 Message-ID: <83ft78v4wo.fsf@gnu.org> References: <87bogubqjy.fsf@gnu.org> <873925ebpd.fsf@gnu.org> <87363ff7qp.fsf@gnus.org> <11ee80e5-6d98-4a1f-93c8-babb6da003f3@default> <87r1qxrgs1.fsf@gnus.org> <87v9g52dvz.fsf@red-bean.com> <87imc4d3cm.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6803"; mail-complaints-to="usenet@ciao.gmane.io" Cc: kfogel@red-bean.com, cyd@gnu.org, 12507@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 23 18:33:05 2020 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 1kL7hZ-0001ft-Hu for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Sep 2020 18:33:05 +0200 Original-Received: from localhost ([::1]:46290 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kL7hY-0003L8-Jz for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Sep 2020 12:33:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51614) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kL7Yo-00021M-R4 for bug-gnu-emacs@gnu.org; Wed, 23 Sep 2020 12:24:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54311) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kL7Yo-0000Nn-Fg for bug-gnu-emacs@gnu.org; Wed, 23 Sep 2020 12:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kL7Yo-0001Yl-A3 for bug-gnu-emacs@gnu.org; Wed, 23 Sep 2020 12:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Sep 2020 16:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12507 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 12507-submit@debbugs.gnu.org id=B12507.16008781995870 (code B ref 12507); Wed, 23 Sep 2020 16:24:02 +0000 Original-Received: (at 12507) by debbugs.gnu.org; 23 Sep 2020 16:23:19 +0000 Original-Received: from localhost ([127.0.0.1]:37612 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kL7Xv-0001WG-6L for submit@debbugs.gnu.org; Wed, 23 Sep 2020 12:23:19 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44570) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kL7Xt-0001V3-Kv for 12507@debbugs.gnu.org; Wed, 23 Sep 2020 12:23:06 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:47172) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kL7Xn-0000FQ-Ua; Wed, 23 Sep 2020 12:22:59 -0400 Original-Received: from [176.228.60.248] (port=4715 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kL7Xn-0002fi-7c; Wed, 23 Sep 2020 12:22:59 -0400 In-Reply-To: <87imc4d3cm.fsf@gnus.org> (message from Lars Ingebrigtsen on Wed, 23 Sep 2020 15:34:01 +0200) 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:188804 Archived-At: > From: Lars Ingebrigtsen > Date: Wed, 23 Sep 2020 15:34:01 +0200 > Cc: Chong Yidong , 12507@debbugs.gnu.org > > Karl Fogel writes: > > > I've just been deep-diving into this again. I'd like feedback on this general plan for a solution: > > > > 1) In files.el: define a new function `back-up-file' [a] that takes a > > file name as argument and does most of what `backup-buffer' currently > > does -- basically, everything from the second `when' on down to the > > end of the function. > > > > 2) Change `backup-buffer' to use the new function `back-up-file'. > > > > In other words, we abstract out most of the Emacs file backup > > functionality to this new function `back-up-file' so we can call it > > in (3) below, passing a file name argument. > > Sounds perfect. There's a bunch of modes in Emacs that want to do a > backup file, and they go through all these contortions to make this > happen. Maybe this would be a good feature to have, but going back to the original problem of bookmark file, I think that the easiest fix is to go back to using write-file. Karl changed that 15 years ago because he followed suit of saveplace.el, but I think there's a significant difference between the files these two packages maintain: the file with bookmarks is much more close to being "user data" than the file written by saveplace.el. So I don't think they need both to treat their files the same, wrt backing them up.