]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix dired-omit-files regexp (Bug#35668)
authorNoam Postavsky <npostavs@gmail.com>
Sun, 12 May 2019 16:42:35 +0000 (12:42 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Sun, 19 May 2019 14:35:51 +0000 (10:35 -0400)
* lisp/dired-x.el (dired-omit-files): Match beginning and end of
string, rather than beginning and end of line.

lisp/dired-x.el

index defc541ddc9ee7e0c4e8f91025cf8b9fadae612c..3b78ec47d93aed512f3bc944dc8cc9cafab3ce39 100644 (file)
@@ -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