summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-12-29 08:14:57 +0000
committerRichard M. Stallman <rms@gnu.org>1996-12-29 08:14:57 +0000
commit8216d63476c5fca999ff3198f336a59f96deab8a (patch)
treecf4f37c2315a72f1f9bfae257d4e032ee810261c
parentfe163db7d06141165652dfe9be81bbfc47262d51 (diff)
downloademacs-8216d63476c5fca999ff3198f336a59f96deab8a.tar.gz
(dired-insert-directory): Don't override the user's locale.
(dired-standard-move-to-filename-regexp): Var deleted.
-rw-r--r--lisp/dired.el18
1 files changed, 3 insertions, 15 deletions
diff --git a/lisp/dired.el b/lisp/dired.el
index 4ba832a7ffe..428994a9f50 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -598,17 +598,9 @@ If DIRNAME is already in a dired buffer, that buffer is used without refresh."
(let ((opoint (point))
(process-environment (copy-sequence process-environment))
end)
- ;; This makes sure that month names come out in English
- ;; so we can find the start of the file name.
- ;; But if the user has customized the way of finding the file name,
- ;; this is not necessary.
- (if (and (equal dired-move-to-filename-regexp
- dired-standard-move-to-filename-regexp)
- ;; It also isn't necessary if we'd use the C locale anyway.
- (not (equal (or (getenv "LC_ALL") (getenv "LC_TIME")
- (getenv "LANGUAGE") (getenv "LANG") "C")
- "C")))
- (setq process-environment (cons "LC_ALL=C" process-environment)))
+ ;; We used to specify the C locale here, to force English month names;
+ ;; but this should not be necessary any more,
+ ;; with the new value of dired-move-to-filename-regexp.
(if (consp dir-or-list)
;; In this case, use the file names in the cdr
;; exactly as originally given to dired-noselect.
@@ -1309,10 +1301,6 @@ Optional arg GLOBAL means to replace all matches."
[ 0-9][0-9][:0-9][0-9][ 0-9] "
"Regular expression to match a month abbreviation followed date/time.")
-(defconst dired-standard-move-to-filename-regexp
- "\\(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.
;; Returns position (point) or nil if no filename on this line."
(defun dired-move-to-filename (&optional raise-error eol)