emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master d7c8196: Fix dired-omit-files regexp (Bug#35668)


From: Noam Postavsky
Subject: [Emacs-diffs] master d7c8196: Fix dired-omit-files regexp (Bug#35668)
Date: Sun, 19 May 2019 10:37:33 -0400 (EDT)

branch: master
commit d7c8196c96fd4bb732d1336305943feb3badf27c
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>

    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.
---
 lisp/dired-x.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/dired-x.el b/lisp/dired-x.el
index defc541..3b78ec4 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]