GNU bug report logs - #12507
24.2.50; `bookmark-write-file': use `write-file', not `write-region', to get backups

Previous Next

Package: emacs;

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


View this message in rfc822 format

From: Thierry Volpiatto <thierry.volpiatto <at> gmail.com>
To: "Drew Adams" <drew.adams <at> oracle.com>
Cc: 12507 <at> debbugs.gnu.org
Subject: bug#12507: [debbugs-tracker] Processed: severity 12507 wishlist
Date: Sat, 29 Sep 2012 18:57:42 +0200
"Drew Adams" <drew.adams <at> oracle.com> writes:

>> What I want to say is, why writing to buffer "*Bookmarks*", renaming
>> this buffer to the filename buffer, and then saving it?
>> Just use find-file-noselect, write data and save.
>
> I see.  You're talking only about the first arg of `with-current-buffer'.  I
> thought you were talking about `write-file' vs `save-buffer' and claiming that
> there were two writes with the former.
>
> Yes, of course.  There is no need to use a different buffer, *Bookmarks*,
> instead of the return value of `find-file-noselect'.  I thought we had already
> covered that.
>
> There still might be a reason to use `write-file' instead of `save-buffer'.  But
> as I say, what's important is to decide about whether to allow backing up (and
> visiting the file).
Agree.


-- 
  Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997 




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.