From: Noam Postavsky Date: Sun, 12 May 2019 16:42:35 +0000 (-0400) Subject: Fix dired-omit-files regexp (Bug#35668) X-Git-Tag: emacs-27.0.90~2821 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d7c8196c96fd4bb732d1336305943feb3badf27c;p=emacs.git 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. --- 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." (put 'dired-omit-mode 'safe-local-variable 'booleanp) -(defcustom dired-omit-files "^\\.?#\\|^\\.$\\|^\\.\\.$" +(defcustom dired-omit-files "\\`[.]?#\\|\\`[.][.]?\\'" "Filenames matching this regexp will not be displayed. This only has effect when `dired-omit-mode' is t. See interactive function `dired-omit-mode' (\\[dired-omit-mode]) and variable