changeset 20271:cda75058a3c0

(dired-move-to-filename-regexp): Allow month names of length 2 and up, with varying white space afterwards; e.g. Solaris 2.6 "es" locale uses "ab" for April and "fbro" for February.
author Paul Eggert <eggert@twinsun.com>
date Mon, 17 Nov 1997 18:55:46 +0000
parents 3f3e7319341a
children cb48dd203293
files lisp/dired.el
diffstat 1 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/dired.el	Mon Nov 17 02:15:35 1997 +0000
+++ b/lisp/dired.el	Mon Nov 17 18:55:46 1997 +0000
@@ -1351,17 +1351,17 @@
 ;;; Functions for finding the file name in a dired buffer line.
 
 (defvar dired-move-to-filename-regexp
-   (let* ((l "[A-Za-z\xa0-\xff]")
- 	 (k "[^\x00-\xff]")
- 	 (s " ")
- 	 (yyyy "[0-9][0-9][0-9][0-9]")
- 	 (mm "[ 0-1][0-9]")
- 	 (dd "[ 0-3][0-9]")
- 	 (HH:MM "[ 0-2][0-9]:[0-5][0-9]")
- 	 (western (concat "\\(" l l l s dd "\\|" dd s l l l "\\)"
+  (let* ((l "[A-Za-z\xa0-\xff]")
+	 (k "[^\x00-\xff]")
+	 (s " ")
+	 (yyyy "[0-9][0-9][0-9][0-9]")
+	 (mm "[ 0-1][0-9]")
+	 (dd "[ 0-3][0-9]")
+	 (HH:MM "[ 0-2][0-9]:[0-5][0-9]")
+	 (western (concat "\\(" l l "+ +" dd "\\|" dd s l l "+ *" "\\)"
 			  s "\\(" HH:MM "\\|" s yyyy "\\)"))
- 	 (japanese (concat mm k " " dd k s "\\(" s HH:MM "\\|" yyyy k "\\)")))
-     (concat s "\\(" western "\\|" japanese "\\)" s))
+	 (japanese (concat mm k " " dd k s "\\(" s HH:MM "\\|" yyyy k "\\)")))
+    (concat s "\\(" western "\\|" japanese "\\)" s))
   "Regular expression to match a date and time in a directory listing.
 The default value is designed to recognize dates and times
 regardless of the language.")