GNU bug report logs -
#12507
24.2.50; `bookmark-write-file': use `write-file', not `write-region', to get backups
Previous Next
Reported by: "Drew Adams" <drew.adams <at> oracle.com>
Date: Mon, 24 Sep 2012 18:44:01 UTC
Severity: wishlist
Tags: notabug
Found in version 24.2.50
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #135 received at 12507 <at> debbugs.gnu.org (full text, mbox):
> > No, `write-region' should not, itself, make a backup file.
>
> No, but there should perhaps be a global mechanism for modes to decide
> whether the data it writes should have backup files, and these modes
> should then call a wrapper around `write-region' that does this stuff.
>
> And it should be user-customisable, if it exists.
Huh? This is about a particular context (mode, if
you like). In _this particular context_ the proper
behavior is to use `write-file'. There's zero reason
to use `write-region' in this context. And to fix
this context in this regard there's zero reason to
propose some far-reaching, general change to
`write-region'.
`write-region' is simply the wrong function to use
in this context. Trying to generalize this for all
contexts is a different solution (in search of a
problem).
The subject of this bug report is:
"`bookmark-write-file': use `write-file', not
`write-region' , to get backups"
To be clear, if this isn't clear already: This
doesn't affect me or my code, personally, because
I fixed this long ago in Bookmark+. I'm just
trying to help vanilla Emacs DTRT.
There's a real bug here, which I can attest to
because Bookmark+ users have lamented not having
backed up their bookmark files (before I fixed the
code to use `write-file').
There's no reason to expect or require users to
manually back up their bookmark files, especially
when it's trivial for Emacs itself to DTRT and
provide backup by default. By _default_.
This bug report was last modified 4 years and 176 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.