# HG changeset patch # User Richard M. Stallman # Date 766120537 0 # Node ID 51ff777c8fd6d76882901a1d4d892ddf5f83957f # Parent 46ea2fa4a4c515825f7b29aa313809b3bd7c7603 (dired-move-to-filename-regexp): Match the year or time. (dired-move-to-filename): Simplify the code for that. diff -r 46ea2fa4a4c5 -r 51ff777c8fd6 lisp/dired.el --- a/lisp/dired.el Tue Apr 12 01:55:59 1994 +0000 +++ b/lisp/dired.el Tue Apr 12 03:15:37 1994 +0000 @@ -1145,7 +1145,7 @@ ;;; Functions for finding the file name in a dired buffer line. (defvar dired-move-to-filename-regexp - "\\(Jan\\|Feb\\|Mar\\|Apr\\|May\\|Jun\\|Jul\\|Aug\\|Sep\\|Oct\\|Nov\\|Dec\\)[ ]+[0-9]+" + "\\(Jan\\|Feb\\|Mar\\|Apr\\|May\\|Jun\\|Jul\\|Aug\\|Sep\\|Oct\\|Nov\\|Dec\\)[ ]+[0-9]+ [ 0-9][0-9][:0-9][0-9][ 0-9] " "Regular expression to match a month abbreviation followed by a number.") ;; Move to first char of filename on this line. @@ -1154,13 +1154,10 @@ ;; This is the UNIX version. (or eol (setq eol (progn (end-of-line) (point)))) (beginning-of-line) - (or (if (re-search-forward dired-move-to-filename-regexp eol t) - (progn - (goto-char (match-end 0)) - (if (= 7 (skip-chars-forward " 0-9:" (+ (point) 7))) - (point)))) - (if raise-error - (error "No file on this line")))) + (if (re-search-forward dired-move-to-filename-regexp eol t) + (goto-char (match-end 0)) + (if raise-error + (error "No file on this line")))) (defun dired-move-to-end-of-filename (&optional no-error) ;; Assumes point is at beginning of filename,