summaryrefslogtreecommitdiff
path: root/lisp/dired.el
diff options
context:
space:
mode:
authorTino Calancha <tino.calancha@gmail.com>2019-07-13 04:03:50 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2019-07-13 04:03:50 +0200
commit4b73c0cde662f894292bebadcd530dc7b232829d (patch)
tree614450f3dc3634c98863769cdef71734bd60a359 /lisp/dired.el
parent936d074d7c58bd4504b89a0b739b370312ae141a (diff)
downloademacs-4b73c0cde662f894292bebadcd530dc7b232829d.tar.gz
emacs-4b73c0cde662f894292bebadcd530dc7b232829d.tar.bz2
emacs-4b73c0cde662f894292bebadcd530dc7b232829d.zip
End predicate `dired-in-this-tree' with '-p'
* lisp/dired.el(dired-in-this-tree-p): Rename from `dired-in-this-tree'. Add docstring. (dired-in-this-tree): Define an alias to `dired-in-this-tree-p'. (dired-buffers-for-dir) * lisp/dired-aux.el (dired-tree-down, dired-kill-tree) (dired-insert-subdir, dired-rename-subdir): Update all callers (bug#32892).
Diffstat (limited to 'lisp/dired.el')
-rw-r--r--lisp/dired.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/dired.el b/lisp/dired.el
index 38ba3734a61..c455a5cde46 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -2697,7 +2697,7 @@ You can then feed the file name(s) to other commands with \\[yank]."
((null (buffer-name buf))
;; Buffer is killed - clean up:
(setq dired-buffers (delq elt dired-buffers)))
- ((dired-in-this-tree dir (car elt))
+ ((dired-in-this-tree-p dir (car elt))
(with-current-buffer buf
(and (assoc dir dired-subdir-alist)
(or (null file)
@@ -2770,10 +2770,12 @@ You can then feed the file name(s) to other commands with \\[yank]."
;;; utility functions
-(defun dired-in-this-tree (file dir)
+(defun dired-in-this-tree-p (file dir)
;;"Is FILE part of the directory tree starting at DIR?"
(let (case-fold-search)
(string-match-p (concat "^" (regexp-quote dir)) file)))
+(define-obsolete-function-alias 'dired-in-this-tree
+ 'dired-in-this-tree-p "27.1")
(defun dired-normalize-subdir (dir)
;; Prepend default-directory to DIR if relative file name.