From: Richard M. Stallman Date: Wed, 17 Feb 1999 02:23:44 +0000 (+0000) Subject: (dired-move-to-filename-regexp): Prepend .* so that we find the X-Git-Tag: emacs-20.4~616 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=02882bbce618f0f33689f57cb3eb33902d5d03ae;p=emacs.git (dired-move-to-filename-regexp): Prepend .* so that we find the last match if there are multiple matches. --- 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." (western (concat "\\(" month s dd "\\|" dd s month "\\)" s "\\(" HH:MM "\\|" s yyyy "\\|" yyyy s "\\)")) (japanese (concat mm k s dd k s "\\(" s HH:MM "\\|" yyyy k "\\)"))) - ;; Require the previous column to end in a digit. + ;; The "[0-9]" below requires the previous column to end in a digit. ;; This avoids recognizing `1 may 1997' as a date in the line: ;; -r--r--r-- 1 may 1997 1168 Oct 19 16:49 README - (concat "[0-9]" s "\\(" western "\\|" japanese "\\)" s)) + ;; The ".*" below finds the last match if there are multiple matches. + ;; This avoids recognizing `jservice 10 1024' as a date in the line: + ;; drwxr-xr-x 3 jservice 10 1024 Jul 2 1997 esg-host + (concat ".*[0-9]" s "\\(" western "\\|" japanese "\\)" s)) "Regular expression to match up to the file name in a directory listing. The default value is designed to recognize dates and times regardless of the language.")