From 69ee7669095b6e7bda04ab1108277f5c182600c9 Mon Sep 17 00:00:00 2001 From: "Jakob L. Kreuze" Date: Sat, 25 May 2019 14:38:00 -0400 Subject: Document file scoping behavior --- dired-rmjunk.el | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/dired-rmjunk.el b/dired-rmjunk.el index 96f9188..7a5773e 100644 --- a/dired-rmjunk.el +++ b/dired-rmjunk.el @@ -55,7 +55,16 @@ (defun dired-rmjunk () "Mark all junk files in the current dired buffer. 'Junk' is defined to be any file with a name matching one of the -patterns in `dired-rmjunk-patterns'." +patterns in `dired-rmjunk-patterns'. A pattern is said to match +under the following conditions: + + 1. If the pattern lacks a directory component, matching means + that the regexp specified by the pattern matches the file-name. + 2. If the pattern lacks a directory component, matching means + that that the regexp specified by the file-name component of + the pattern matches the file-name, AND the regexp specified by + the directory component of the pattern matches the current + directory." (interactive) (when (eq major-mode 'dired-mode) (save-excursion -- cgit v1.3