diff options
| author | Eli Zaretskii | 2001-04-04 11:18:59 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2001-04-04 11:18:59 +0000 |
| commit | 32df8b472ad3d7886f95d74bd499ae0aee24fe2b (patch) | |
| tree | 884208f6e7cd68080b2edeb776de9c9c01b4550b | |
| parent | 5efa6032337a290db7dbd1a770dc31d0411dcb4c (diff) | |
| download | emacs-32df8b472ad3d7886f95d74bd499ae0aee24fe2b.tar.gz emacs-32df8b472ad3d7886f95d74bd499ae0aee24fe2b.zip | |
(dired-move-to-filename-regexp): Support file sizes in
``human-readable'' format produced by GNU `ls'.
(dired-move-to-filename-regexp): Recognize ISO format dates. From
Paul Eggert <eggert@twinsun.com>.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/dired.el | 14 |
2 files changed, 18 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index de934eb769d..8bfbd354d79 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2001-04-04 Eli Zaretskii <eliz@is.elta.co.il> | ||
| 2 | |||
| 3 | * dired.el (dired-move-to-filename-regexp): Support file sizes in | ||
| 4 | ``human-readable'' format produced by GNU `ls'. | ||
| 5 | (dired-move-to-filename-regexp): Recognize ISO format dates. From | ||
| 6 | Paul Eggert <eggert@twinsun.com>. | ||
| 7 | |||
| 1 | 2001-04-04 Gerd Moellmann <gerd@gnu.org> | 8 | 2001-04-04 Gerd Moellmann <gerd@gnu.org> |
| 2 | 9 | ||
| 3 | * emacs-lisp/lisp-mnt.el (lm-keywords-list, lm-keywords-finder-p): | 10 | * emacs-lisp/lisp-mnt.el (lm-keywords-list, lm-keywords-finder-p): |
diff --git a/lisp/dired.el b/lisp/dired.el index 03d1cf405ee..6ef7990084d 100644 --- a/lisp/dired.el +++ b/lisp/dired.el | |||
| @@ -1502,7 +1502,7 @@ DIR must be a directory name, not a file name." | |||
| 1502 | ;; weiand: changed: month ends potentially with . or , or ., | 1502 | ;; weiand: changed: month ends potentially with . or , or ., |
| 1503 | ;;old (month (concat l l "+ *")) | 1503 | ;;old (month (concat l l "+ *")) |
| 1504 | (month (concat l l "+[.]?,? *")) | 1504 | (month (concat l l "+[.]?,? *")) |
| 1505 | ;; Recognize any non-ASCII character. | 1505 | ;; Recognize any non-ASCII character. |
| 1506 | ;; The purpose is to match a Kanji character. | 1506 | ;; The purpose is to match a Kanji character. |
| 1507 | (k "[^\0-\177]") | 1507 | (k "[^\0-\177]") |
| 1508 | ;; (k "[^\x00-\x7f\x80-\xff]") | 1508 | ;; (k "[^\x00-\x7f\x80-\xff]") |
| @@ -1512,10 +1512,16 @@ DIR must be a directory name, not a file name." | |||
| 1512 | ;;old (dd "[ 0-3][0-9]") | 1512 | ;;old (dd "[ 0-3][0-9]") |
| 1513 | (dd "[ 0-3][0-9][.]?") | 1513 | (dd "[ 0-3][0-9][.]?") |
| 1514 | (HH:MM "[ 0-2][0-9]:[0-5][0-9]") | 1514 | (HH:MM "[ 0-2][0-9]:[0-5][0-9]") |
| 1515 | (seconds "[0-6][0-9]\\([.,][0-9]+\\)?") | ||
| 1516 | (zone "[-+][0-2][0-9][0-5][0-9]") | ||
| 1517 | (iso-mm-dd "[01][0-9]-[0-3][0-9]") | ||
| 1518 | (iso-time (concat HH:MM "\\(:" seconds "\\( ?" zone "\\)?\\)?")) | ||
| 1519 | (iso (concat "\\(\\(" yyyy "-\\)?" iso-mm-dd "[ T]" iso-time | ||
| 1520 | "\\|" yyyy "-" iso-mm-dd " ?\\)")) | ||
| 1515 | (western (concat "\\(" month s dd "\\|" dd s month "\\)" | 1521 | (western (concat "\\(" month s dd "\\|" dd s month "\\)" |
| 1516 | ;; weiand: changed: year potentially unaligned | 1522 | ;; weiand: changed: year potentially unaligned |
| 1517 | ;;old s "\\(" HH:MM "\\|" s yyyy "\\|" yyyy s "\\)")) | 1523 | ;;old s "\\(" HH:MM "\\|" s yyyy "\\|" yyyy s "\\)")) |
| 1518 | s "\\(" HH:MM | 1524 | s "\\(" HH:MM |
| 1519 | "\\|" yyyy s s "?" | 1525 | "\\|" yyyy s s "?" |
| 1520 | "\\|" s "?" yyyy | 1526 | "\\|" s "?" yyyy |
| 1521 | "\\)")) | 1527 | "\\)")) |
| @@ -1524,10 +1530,12 @@ DIR must be a directory name, not a file name." | |||
| 1524 | ;; The "[0-9]" below requires the previous column to end in a digit. | 1530 | ;; The "[0-9]" below requires the previous column to end in a digit. |
| 1525 | ;; This avoids recognizing `1 may 1997' as a date in the line: | 1531 | ;; This avoids recognizing `1 may 1997' as a date in the line: |
| 1526 | ;; -r--r--r-- 1 may 1997 1168 Oct 19 16:49 README | 1532 | ;; -r--r--r-- 1 may 1997 1168 Oct 19 16:49 README |
| 1533 | ;; The "[kMGTPEZY]?" below supports "ls -alh" output. | ||
| 1527 | ;; The ".*" below finds the last match if there are multiple matches. | 1534 | ;; The ".*" below finds the last match if there are multiple matches. |
| 1528 | ;; This avoids recognizing `jservice 10 1024' as a date in the line: | 1535 | ;; This avoids recognizing `jservice 10 1024' as a date in the line: |
| 1529 | ;; drwxr-xr-x 3 jservice 10 1024 Jul 2 1997 esg-host | 1536 | ;; drwxr-xr-x 3 jservice 10 1024 Jul 2 1997 esg-host |
| 1530 | (concat ".*[0-9]" s "\\(" western "\\|" japanese "\\)" s)) | 1537 | (concat ".*[0-9][kMGTPEZY]?" |
| 1538 | s "\\(" western "\\|" japanese "\\|" iso "\\)" s)) | ||
| 1531 | "Regular expression to match up to the file name in a directory listing. | 1539 | "Regular expression to match up to the file name in a directory listing. |
| 1532 | The default value is designed to recognize dates and times | 1540 | The default value is designed to recognize dates and times |
| 1533 | regardless of the language.") | 1541 | regardless of the language.") |