aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2001-09-18 07:13:36 +0000
committerEli Zaretskii2001-09-18 07:13:36 +0000
commit740ef824c9860309cf2c92b396dbe42799fab1e2 (patch)
tree2aa4ac8e99f987d8a53203fa44687823b9b3fb51
parent50529f513ad00bef7891a873fe9dc699e2f2bbb7 (diff)
downloademacs-740ef824c9860309cf2c92b396dbe42799fab1e2.tar.gz
emacs-740ef824c9860309cf2c92b396dbe42799fab1e2.zip
(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).
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/dired.el5
2 files changed, 10 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5f64fd59f13..5cb7a4669d4 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12001-09-18 Eli Zaretskii <eliz@is.elta.co.il>
2
3 * dired.el (dired-move-to-filename-regexp): Allow one digit in the
4 numeric month value, and allow the Kanji character after the it to
5 be missing (happens with ls-lisp's output on Japanese versions of
6 MS-Windows).
7
12001-09-18 Miles Bader <miles@gnu.org> 82001-09-18 Miles Bader <miles@gnu.org>
2 9
3 * diff-mode.el (diff-mode): Don't make the buffer read-only if 10 * diff-mode.el (diff-mode): Don't make the buffer read-only if
diff --git a/lisp/dired.el b/lisp/dired.el
index fa9ce16f74a..7465eebb4c5 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -1515,7 +1515,7 @@ DIR must be a directory name, not a file name."
1515 ;; (k "[^\x00-\x7f\x80-\xff]") 1515 ;; (k "[^\x00-\x7f\x80-\xff]")
1516 (s " ") 1516 (s " ")
1517 (yyyy "[0-9][0-9][0-9][0-9]") 1517 (yyyy "[0-9][0-9][0-9][0-9]")
1518 (mm "[ 0-1][0-9]") 1518 (mm "[ 0-1]?[0-9]")
1519;;old (dd "[ 0-3][0-9]") 1519;;old (dd "[ 0-3][0-9]")
1520 (dd "[ 0-3][0-9][.]?") 1520 (dd "[ 0-3][0-9][.]?")
1521 (HH:MM "[ 0-2][0-9]:[0-5][0-9]") 1521 (HH:MM "[ 0-2][0-9]:[0-5][0-9]")
@@ -1533,7 +1533,8 @@ DIR must be a directory name, not a file name."
1533 "\\|" s "?" yyyy 1533 "\\|" s "?" yyyy
1534 "\\)")) 1534 "\\)"))
1535 (japanese 1535 (japanese
1536 (concat mm k s dd k "?" s "+" "\\(" HH:MM "\\|" yyyy k "?" "\\)"))) 1536 (concat mm k "?" s dd k "?" s "+"
1537 "\\(" HH:MM "\\|" yyyy k "?" "\\)")))
1537 ;; The "[0-9]" below requires the previous column to end in a digit. 1538 ;; The "[0-9]" below requires the previous column to end in a digit.
1538 ;; This avoids recognizing `1 may 1997' as a date in the line: 1539 ;; This avoids recognizing `1 may 1997' as a date in the line:
1539 ;; -r--r--r-- 1 may 1997 1168 Oct 19 16:49 README 1540 ;; -r--r--r-- 1 may 1997 1168 Oct 19 16:49 README