aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel N. Weber II1997-11-29 05:21:18 +0000
committerJoel N. Weber II1997-11-29 05:21:18 +0000
commit33165c240f2f2aa1dcaca840cdc2f383bd688726 (patch)
tree6dcaf48470be047d52af30545a4c774928e93c36
parent6b53bb85631d8a4d6ef86b6f1b038321bd713f43 (diff)
downloademacs-33165c240f2f2aa1dcaca840cdc2f383bd688726.tar.gz
emacs-33165c240f2f2aa1dcaca840cdc2f383bd688726.zip
1997-11-27 Richard M. Stallman <rms@sucrose.ai.mit.edu>
* dired.el (dired-move-to-filename-regexp): Make regexp fussier about amount of whitespace after month name.
-rw-r--r--lisp/dired.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/dired.el b/lisp/dired.el
index a1c2eba046b..c8d97f1dd01 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -1352,13 +1352,18 @@ DIR must be a directory name, not a file name."
1352 1352
1353(defvar dired-move-to-filename-regexp 1353(defvar dired-move-to-filename-regexp
1354 (let* ((l "[A-Za-z\xa0-\xff]") 1354 (let* ((l "[A-Za-z\xa0-\xff]")
1355 ;; Letter or space.
1356 (ls "[ A-Za-z\xa0-\xff]")
1357 (month (concat l l "\\(" ls "\\|" l l "\\)"))
1358 ;; Recognize any non-ASCII character.
1359 ;; The purpose is to match a Kanji character.
1355 (k "[^\x00-\xff]") 1360 (k "[^\x00-\xff]")
1356 (s " ") 1361 (s " ")
1357 (yyyy "[0-9][0-9][0-9][0-9]") 1362 (yyyy "[0-9][0-9][0-9][0-9]")
1358 (mm "[ 0-1][0-9]") 1363 (mm "[ 0-1][0-9]")
1359 (dd "[ 0-3][0-9]") 1364 (dd "[ 0-3][0-9]")
1360 (HH:MM "[ 0-2][0-9]:[0-5][0-9]") 1365 (HH:MM "[ 0-2][0-9]:[0-5][0-9]")
1361 (western (concat "\\(" l l "+ +" dd "\\|" dd s l l "+ *" "\\)" 1366 (western (concat "\\(" month s dd "\\|" dd s month "\\)"
1362 s "\\(" HH:MM "\\|" s yyyy "\\)")) 1367 s "\\(" HH:MM "\\|" s yyyy "\\)"))
1363 (japanese (concat mm k " " dd k s "\\(" s HH:MM "\\|" yyyy k "\\)"))) 1368 (japanese (concat mm k " " dd k s "\\(" s HH:MM "\\|" yyyy k "\\)")))
1364 (concat s "\\(" western "\\|" japanese "\\)" s)) 1369 (concat s "\\(" western "\\|" japanese "\\)" s))