Aaron Zeng <[email protected]> writes:

> After using various VC diffing commands in a repo containing org-mode
> files, org-switchb's completions become polluted with temp buffers
> whose names begin with a space:
>
> " 
> *diff-syntax:/Users/aaron/todo/main/todo.org.~757282798a587edb8559306294fac7af4588f936~*"
>
> The attached patches change org-switchb to exclude temp buffers, and
> also change org-buffer-list to check for temp buffers by looking for a
> leading space in the buffer name, as is conventional.  (After a
> cursory search, the only place I saw in org-mode itself that
> constructs a buffer whose name includes the string "tmp" also includes
> a leading space anyway, so no behavior regression is expected.)
>
> Furthermore, org-buffer-list now excludes non-file-visiting buffers
> when PREDICATE is `files', to match the docstring more accurately.

Thanks!
Applied, onto main, adjusting one commit message to sound less specific
- it is really not about /just/ fixing diff-syntax, but temp buffers in
general.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=7045a02b8
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=1a8de87b6

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to