aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1999-02-17 02:23:44 +0000
committerRichard M. Stallman1999-02-17 02:23:44 +0000
commit02882bbce618f0f33689f57cb3eb33902d5d03ae (patch)
tree98ab20cbd06c8c8049ef0e89028610ecf1dfd8d4
parent337ae039f22e023f3f6f87bca1f73da7eac6e427 (diff)
downloademacs-02882bbce618f0f33689f57cb3eb33902d5d03ae.tar.gz
emacs-02882bbce618f0f33689f57cb3eb33902d5d03ae.zip
(dired-move-to-filename-regexp): Prepend .* so that we find the
last match if there are multiple matches.
-rw-r--r--lisp/dired.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/dired.el b/lisp/dired.el
index 41b08b4f2ec..886a4945da6 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -1369,10 +1369,13 @@ DIR must be a directory name, not a file name."
1369 (western (concat "\\(" month s dd "\\|" dd s month "\\)" 1369 (western (concat "\\(" month s dd "\\|" dd s month "\\)"
1370 s "\\(" HH:MM "\\|" s yyyy "\\|" yyyy s "\\)")) 1370 s "\\(" HH:MM "\\|" s yyyy "\\|" yyyy s "\\)"))
1371 (japanese (concat mm k s dd k s "\\(" s HH:MM "\\|" yyyy k "\\)"))) 1371 (japanese (concat mm k s dd k s "\\(" s HH:MM "\\|" yyyy k "\\)")))
1372 ;; Require the previous column to end in a digit. 1372 ;; The "[0-9]" below requires the previous column to end in a digit.
1373 ;; This avoids recognizing `1 may 1997' as a date in the line: 1373 ;; This avoids recognizing `1 may 1997' as a date in the line:
1374 ;; -r--r--r-- 1 may 1997 1168 Oct 19 16:49 README 1374 ;; -r--r--r-- 1 may 1997 1168 Oct 19 16:49 README
1375 (concat "[0-9]" s "\\(" western "\\|" japanese "\\)" s)) 1375 ;; The ".*" below finds the last match if there are multiple matches.
1376 ;; This avoids recognizing `jservice 10 1024' as a date in the line:
1377 ;; drwxr-xr-x 3 jservice 10 1024 Jul 2 1997 esg-host
1378 (concat ".*[0-9]" s "\\(" western "\\|" japanese "\\)" s))
1376 "Regular expression to match up to the file name in a directory listing. 1379 "Regular expression to match up to the file name in a directory listing.
1377The default value is designed to recognize dates and times 1380The default value is designed to recognize dates and times
1378regardless of the language.") 1381regardless of the language.")