GNU bug report logs - #28412
26.0.50; Let save-some-buffers accept write-contents-functions

Previous Next

Package: emacs;

Reported by: Eric Abrahamsen <eric <at> ericabrahamsen.net>

Date: Sun, 10 Sep 2017 21:52:02 UTC

Severity: wishlist

Found in version 26.0.50

Done: Eric Abrahamsen <eric <at> ericabrahamsen.net>

Bug is archived. No further changes may be made.

Full log


Message #50 received at 28412 <at> debbugs.gnu.org (full text, mbox):

From: Kaushal Modi <kaushal.modi <at> gmail.com>
To: Eric Abrahamsen <eric <at> ericabrahamsen.net>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 28412 <at> debbugs.gnu.org
Subject: Re: bug#28412: 26.0.50;
 Let save-some-buffers accept write-contents-functions
Date: Mon, 18 Sep 2017 21:48:15 +0000
[Message part 1 (text/plain, inline)]
On Mon, Sep 18, 2017 at 4:53 PM Eric Abrahamsen <eric <at> ericabrahamsen.net>
wrote:

>
> It might be nice to have something like:
>
> (defsubst buffer-internal-p (buf)
>   (eq (aref (buffer-name buf) 0) ?\s))
>

Yup. I also see this in the "(emacs) Undo" Info node:

   Some specialized buffers do not make undo records.  Buffers whose
names start with spaces never do; these buffers are used internally by
Emacs to hold text that users don’t normally look at or edit.

But I cannot find the code that implements that.

It would be nice to have these places to use the same defsubst.

Btw I confirm the fix. Thanks!
-- 

Kaushal Modi
[Message part 2 (text/html, inline)]

This bug report was last modified 7 years and 294 days ago.

Previous Next


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