aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann1999-09-24 12:57:21 +0000
committerGerd Moellmann1999-09-24 12:57:21 +0000
commitcbcb61603b4561ceeeeef8445690c33b600e7277 (patch)
tree22491f90277358699ec551a02ed989e873e4bd6b
parente6b6d5c10328d66ce1819a8d9a77e30f02e60e6a (diff)
downloademacs-cbcb61603b4561ceeeeef8445690c33b600e7277.tar.gz
emacs-cbcb61603b4561ceeeeef8445690c33b600e7277.zip
(dired-move-to-filename-regexp): Make it work
for LANG=de_DE.iso88591 on HPUX 11.0.
-rw-r--r--lisp/dired.el21
1 files changed, 15 insertions, 6 deletions
diff --git a/lisp/dired.el b/lisp/dired.el
index f89259964ec..af5320f78f7 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -1358,7 +1358,9 @@ DIR must be a directory name, not a file name."
1358 (let* ((l "\\([A-Za-z]\\|[^\0-\177]\\)") 1358 (let* ((l "\\([A-Za-z]\\|[^\0-\177]\\)")
1359 ;; In some locales, month abbreviations are as short as 2 letters, 1359 ;; In some locales, month abbreviations are as short as 2 letters,
1360 ;; and they can be padded on the right with spaces. 1360 ;; and they can be padded on the right with spaces.
1361 (month (concat l l "+ *")) 1361 ;; weiand: changed: month ends potentially with . or , or .,
1362;;old (month (concat l l "+ *"))
1363 (month (concat l l "+[.]?,? *"))
1362 ;; Recognize any non-ASCII character. 1364 ;; Recognize any non-ASCII character.
1363 ;; The purpose is to match a Kanji character. 1365 ;; The purpose is to match a Kanji character.
1364 (k "[^\0-\177]") 1366 (k "[^\0-\177]")
@@ -1366,16 +1368,23 @@ DIR must be a directory name, not a file name."
1366 (s " ") 1368 (s " ")
1367 (yyyy "[0-9][0-9][0-9][0-9]") 1369 (yyyy "[0-9][0-9][0-9][0-9]")
1368 (mm "[ 0-1][0-9]") 1370 (mm "[ 0-1][0-9]")
1369 (dd "[ 0-3][0-9]") 1371;;old (dd "[ 0-3][0-9]")
1372 (dd "[ 0-3][0-9][.]?")
1370 (HH:MM "[ 0-2][0-9]:[0-5][0-9]") 1373 (HH:MM "[ 0-2][0-9]:[0-5][0-9]")
1371 (western (concat "\\(" month s dd "\\|" dd s month "\\)" 1374 (western (concat "\\(" month s dd "\\|" dd s month "\\)"
1372 s "\\(" HH:MM "\\|" s yyyy "\\|" yyyy s "\\)")) 1375 ;; weiand: changed: year potentially unaligned
1376;;old s "\\(" HH:MM "\\|" s yyyy "\\|" yyyy s "\\)"))
1377 s "\\(" HH:MM "\\|" s "?" yyyy "\\|" yyyy s
1378"\\)"))
1373 (japanese (concat mm k s dd k s "\\(" s HH:MM "\\|" yyyy k "\\)"))) 1379 (japanese (concat mm k s dd k s "\\(" s HH:MM "\\|" yyyy k "\\)")))
1374 ;; The "[0-9]" below requires the previous column to end in a digit. 1380 ;; The "[0-9]" below requires the previous column to end in a
1381digit.
1375 ;; This avoids recognizing `1 may 1997' as a date in the line: 1382 ;; This avoids recognizing `1 may 1997' as a date in the line:
1376 ;; -r--r--r-- 1 may 1997 1168 Oct 19 16:49 README 1383 ;; -r--r--r-- 1 may 1997 1168 Oct 19 16:49 README
1377 ;; The ".*" below finds the last match if there are multiple matches. 1384 ;; The ".*" below finds the last match if there are multiple
1378 ;; This avoids recognizing `jservice 10 1024' as a date in the line: 1385matches.
1386 ;; This avoids recognizing `jservice 10 1024' as a date in the
1387line:
1379 ;; drwxr-xr-x 3 jservice 10 1024 Jul 2 1997 esg-host 1388 ;; drwxr-xr-x 3 jservice 10 1024 Jul 2 1997 esg-host
1380 (concat ".*[0-9]" s "\\(" western "\\|" japanese "\\)" s)) 1389 (concat ".*[0-9]" s "\\(" western "\\|" japanese "\\)" s))
1381 "Regular expression to match up to the file name in a directory listing. 1390 "Regular expression to match up to the file name in a directory listing.