GNU bug report logs -
#41868
[PATCH] Add project-clean-up command
Previous Next
Reported by: "Philip K." <philip <at> warpmail.net>
Date: Mon, 15 Jun 2020 10:02:02 UTC
Severity: normal
Tags: fixed, patch
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #38 received at 41868 <at> debbugs.gnu.org (full text, mbox):
"Philip K." <philip <at> warpmail.net> writes:
> (naively) Hoping everything it ok this time.
Just one tiny detail from me. ;)
> +(defcustom project-spare-buffers-conditions
> + '("\\*Help\\*")
> + "List of conditions to be ignored by `project-kill-buffers'.
> +If a condition is a string, it will be interpreted as a regular
> +expression. If the buffer name matches the regular expresion, the
> +buffer will not be killed. If a contition is a function, it will
> +be called with the buffer object. If it returns a non-nil value,
> +the buffer will not be killed."
Some of the full stops aren't followed by two spaces here
(see sentence-end-double-space in Emacs' dir-locals-file).
Perhaps some of the common wording can be factored out as well
(feel free to adapt as you see fit):
"List of conditions to be ignored by `project-kill-buffers'.
Buffers under the current project that match any of these
conditions will not be killed by `project-kill-buffers'. Each
condition is either a regular expression matching a buffer name,
or a predicate function that takes a buffer object as argument
and returns non-nil if it matches."
> + (let* ((pr (project-current t)) bufs)
Nit: No need for let*.
Thanks,
--
Basil
This bug report was last modified 4 years and 282 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.