]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/dired (dired-trivial-filenames): Use \` and \' to match string bounds
authorTino Calancha <tino.calancha@gmail.com>
Mon, 31 Jul 2017 05:55:47 +0000 (14:55 +0900)
committerTino Calancha <tino.calancha@gmail.com>
Mon, 31 Jul 2017 05:55:47 +0000 (14:55 +0900)
lisp/dired.el

index a056ad679fa2df853b90b51a05eaa2c9fde64be9..ca005785d671cbb811e9fe4b0e737656ca2d64d6 100644 (file)
@@ -133,7 +133,7 @@ always set this variable to t."
   :type 'boolean
   :group 'dired-mark)
 
-(defcustom dired-trivial-filenames (purecopy "^\\.\\.?$\\|^#")
+(defcustom dired-trivial-filenames (purecopy "\\`\\.\\.?\\'\\|\\`#")
   "Regexp of files to skip when finding first file of a directory.
 A value of nil means move to the subdir line.
 A value of t means move to first file."