]> git.eshelyaron.com Git - emacs.git/commit
Ask if dir and subdir dired buffers be killed when deleting dir
authorTassilo Horn <tsdh@gnu.org>
Fri, 4 Jun 2021 19:58:11 +0000 (21:58 +0200)
committerTassilo Horn <tsdh@gnu.org>
Fri, 4 Jun 2021 19:58:11 +0000 (21:58 +0200)
commit7b50ed553faa6de6d51bf07d12d106ca61ab3ac4
treeba6c9f52f8ccc8f9db8bedacde5e00858b4a73b7
parent4c362b4ef7db64e896b8a9fa5f2b93ff793dee17
Ask if dir and subdir dired buffers be killed when deleting dir

Previously, when you've had dired buffers

  ~/foo/
  ~/foo/bar/
  ~/foo/bar/baz/

and then deleted ~/foo/, dired (with dired-clean-up-buffers-too set to
non-nil) would only ask to delete the dired buffer of ~/foo/.  Now it
will offer to delete all three buffers.

* lisp/dired.el (dired-buffers-for-dir): Add optional argument SUBDIRS
which makes the function return also dired buffers showing a subdir of
DIR.
(dired-in-this-tree-p): Make obsolete in favor of file-in-directory-p
which actually does what the name suggest whereas dired-in-this-tree-p
is just string-matching on filenames which will fail with symlinks
filenames including ./ or ../.
lisp/dired.el