GNU bug report logs -
#28412
26.0.50; Let save-some-buffers accept write-contents-functions
Previous Next
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 #47 received at 28412 <at> debbugs.gnu.org (full text, mbox):
Kaushal Modi <kaushal.modi <at> gmail.com> writes:
> On Mon, Sep 18, 2017 at 3:12 PM Eric Abrahamsen <eric <at> ericabrahamsen.net> wrote:
>
> Also, there don't appear to be any built-in functions or regexps for
> dealing with "hidden" buffers, I'm assuming:
>
> (not (string-prefix-p " " (buffer-name buffer)))
>
> is okay?
>
> That crossed my mind too. So I had started looking for its existing implementation, and found this in buff-menu.el inside list-buffers--refresh function:
>
> (string= (substring name 0 1) " ")
>
> I was wondering if that should be wrapped into a function like buffer-internal-p (based on the many docstrings like below in buff-menu.el: "By default, the Buffer Menu lists all buffers except those whose names start with a space
> (which are for internal use)."). Having a function like this would be better than having that logic implemented in different ways in the emacs core.
>
> I just don't know the best place to put this function definition. Eli?
It might be nice to have something like:
(defsubst buffer-internal-p (buf)
(eq (aref (buffer-name buf) 0) ?\s))
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.