Mercurial > emacs
comparison lisp/dired.el @ 20383:3a76b48c399d
1997-11-27 Richard Stallman <rms@sucrose.ai.mit.edu>
* dired.el (dired-move-to-filename-regexp): Make regexp fussier
about amount of whitespace after month name.
author | Joel N. Weber II <devnull@gnu.org> |
---|---|
date | Sat, 29 Nov 1997 05:21:18 +0000 |
parents | cda75058a3c0 |
children | d56e496c7790 |
comparison
equal
deleted
inserted
replaced
20382:dbad9367d232 | 20383:3a76b48c399d |
---|---|
1350 | 1350 |
1351 ;;; Functions for finding the file name in a dired buffer line. | 1351 ;;; Functions for finding the file name in a dired buffer line. |
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)) |
1365 "Regular expression to match a date and time in a directory listing. | 1370 "Regular expression to match a date and time in a directory listing. |
1366 The default value is designed to recognize dates and times | 1371 The default value is designed to recognize dates and times |