aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoam Postavsky2019-05-12 12:42:35 -0400
committerNoam Postavsky2019-05-19 10:35:51 -0400
commitd7c8196c96fd4bb732d1336305943feb3badf27c (patch)
treef6e667b5135b2b452f0582dd7c3af09909650405
parentd0e9113de9783094b4da7f6aeee131194653c325 (diff)
downloademacs-d7c8196c96fd4bb732d1336305943feb3badf27c.tar.gz
emacs-d7c8196c96fd4bb732d1336305943feb3badf27c.zip
Fix dired-omit-files regexp (Bug#35668)
* lisp/dired-x.el (dired-omit-files): Match beginning and end of string, rather than beginning and end of line.
-rw-r--r--lisp/dired-x.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/dired-x.el b/lisp/dired-x.el
index defc541ddc9..3b78ec47d93 100644
--- a/lisp/dired-x.el
+++ b/lisp/dired-x.el
@@ -159,7 +159,7 @@ See Info node `(dired-x) Omitting Variables' for more information."
159 159
160(put 'dired-omit-mode 'safe-local-variable 'booleanp) 160(put 'dired-omit-mode 'safe-local-variable 'booleanp)
161 161
162(defcustom dired-omit-files "^\\.?#\\|^\\.$\\|^\\.\\.$" 162(defcustom dired-omit-files "\\`[.]?#\\|\\`[.][.]?\\'"
163 "Filenames matching this regexp will not be displayed. 163 "Filenames matching this regexp will not be displayed.
164This only has effect when `dired-omit-mode' is t. See interactive function 164This only has effect when `dired-omit-mode' is t. See interactive function
165`dired-omit-mode' (\\[dired-omit-mode]) and variable 165`dired-omit-mode' (\\[dired-omit-mode]) and variable