aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/dired.el
diff options
context:
space:
mode:
authorEli Zaretskii <[email protected]>2001-09-18 07:13:36 +0000
committerEli Zaretskii <[email protected]>2001-09-18 07:13:36 +0000
commit740ef824c9860309cf2c92b396dbe42799fab1e2 (patch)
tree2aa4ac8e99f987d8a53203fa44687823b9b3fb51 /lisp/dired.el
parent50529f513ad00bef7891a873fe9dc699e2f2bbb7 (diff)
(dired-move-to-filename-regexp): Allow one digit in the
numeric month value, and allow the Kanji character after the it to be missing (happens with ls-lisp's output on Japanese versions of MS-Windows).
Diffstat (limited to 'lisp/dired.el')
-rw-r--r--lisp/dired.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/dired.el b/lisp/dired.el
index fa9ce16f74..7465eebb4c 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -1515,7 +1515,7 @@ DIR must be a directory name, not a file name."
;; (k "[^\x00-\x7f\x80-\xff]")
(s " ")
(yyyy "[0-9][0-9][0-9][0-9]")
- (mm "[ 0-1][0-9]")
+ (mm "[ 0-1]?[0-9]")
;;old (dd "[ 0-3][0-9]")
(dd "[ 0-3][0-9][.]?")
(HH:MM "[ 0-2][0-9]:[0-5][0-9]")
@@ -1533,7 +1533,8 @@ DIR must be a directory name, not a file name."
"\\|" s "?" yyyy
"\\)"))
(japanese
- (concat mm k s dd k "?" s "+" "\\(" HH:MM "\\|" yyyy k "?" "\\)")))
+ (concat mm k "?" s dd k "?" s "+"
+ "\\(" HH:MM "\\|" yyyy k "?" "\\)")))
;; The "[0-9]" below requires the previous column to end in a digit.
;; This avoids recognizing `1 may 1997' as a date in the line:
;; -r--r--r-- 1 may 1997 1168 Oct 19 16:49 README