GNU bug report logs - #9478
23.3; custom-save-all could be faster

Previous Next

Package: emacs;

Reported by: Dave Abrahams <dave <at> boostpro.com>

Date: Sun, 11 Sep 2011 18:41:02 UTC

Severity: minor

Found in version 23.3

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: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Dave Abrahams <dave <at> boostpro.com>
Cc: 9478 <at> debbugs.gnu.org
Subject: bug#9478: 23.3; custom-save-all could be faster
Date: Wed, 25 Aug 2021 15:00:42 +0200
Dave Abrahams <dave <at> boostpro.com> writes:

> In the case where the file isn't already in a buffer, I suggest that
> `custom-save-all' calls `find-file-noselect' with the RAWFILE argument
> set to t and `find-file-hook' set to nil.  I'm not sure if there are
> other places where emacs is going to open and close a file without
> presenting it to the user, but the same approach could probably be
> followed in other places.

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

Like Andreas pointed out, we can't really do the RAWFILE thing, because
that would mess up the file.  I don't think we can bind `find-file-hook'
to nil, either -- the user may well want to do things to the file in
this case, too.

So I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 327 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.