Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
02882bbc
Commit
02882bbc
authored
Feb 17, 1999
by
Richard M. Stallman
Browse files
(dired-move-to-filename-regexp): Prepend .* so that we find the
last match if there are multiple matches.
parent
337ae039
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
lisp/dired.el
lisp/dired.el
+5
-2
No files found.
lisp/dired.el
View file @
02882bbc
...
...
@@ -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
"\\)"
)))
;;
R
equire the previous column to end in a digit.
;;
The "[0-9]" below r
equire
s
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."
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment