]> git.eshelyaron.com Git - emacs.git/commitdiff
; * lisp/files.el (insert-directory-wildcard-in-dir-p): Doc fix.
authorEli Zaretskii <eliz@gnu.org>
Sun, 15 Jan 2023 09:18:44 +0000 (11:18 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sun, 15 Jan 2023 09:18:44 +0000 (11:18 +0200)
lisp/files.el

index 18a046e9bb49be7aaa91d33342db603d28401041..a9a5baf1ba3f36da41c36ce3415a4d1c17b1cd15 100644 (file)
@@ -7674,9 +7674,12 @@ regardless of the language.")
 (defvar insert-directory-ls-version 'unknown)
 
 (defun insert-directory-wildcard-in-dir-p (dir)
-  "Return non-nil if DIR contents a shell wildcard in the directory part.
-The return value is a cons (DIR . WILDCARDS); DIR is the
-`default-directory' in the Dired buffer, and WILDCARDS are the wildcards.
+  "Return non-nil if DIR contains shell wildcards in its parent directory part.
+The return value is a cons (DIRECTORY . WILDCARD), where DIRECTORY is the
+part of DIR up to and excluding the first component that includes
+wildcard characters, and WILDCARD is the rest of DIR's components.  The
+DIRECTORY part of the value includes the trailing slash, to indicate that
+it is a directory.
 
 Valid wildcards are `*', `?', `[abc]' and `[a-z]'."
   (let ((wildcards "[?*"))