aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman1996-12-29 08:14:57 +0000
committerRichard M. Stallman1996-12-29 08:14:57 +0000
commit6492483f51899bdeb02f69f39e05383492ba71d9 (patch)
tree7776c3832cc716d43042cd88f2b13c75061cf4b0 /lisp
parentdbf71ee969f6cc30363971b3c977cf9c6d541e0b (diff)
downloademacs-6492483f51899bdeb02f69f39e05383492ba71d9.tar.gz
emacs-6492483f51899bdeb02f69f39e05383492ba71d9.zip
(dired-insert-directory): Don't override the user's locale.
(dired-standard-move-to-filename-regexp): Var deleted.
Diffstat (limited to 'lisp')
-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."
598 (let ((opoint (point)) 598 (let ((opoint (point))
599 (process-environment (copy-sequence process-environment)) 599 (process-environment (copy-sequence process-environment))
600 end) 600 end)
601 ;; This makes sure that month names come out in English 601 ;; We used to specify the C locale here, to force English month names;
602 ;; so we can find the start of the file name. 602 ;; but this should not be necessary any more,
603 ;; But if the user has customized the way of finding the file name, 603 ;; with the new value of dired-move-to-filename-regexp.
604 ;; this is not necessary.
605 (if (and (equal dired-move-to-filename-regexp
606 dired-standard-move-to-filename-regexp)
607 ;; It also isn't necessary if we'd use the C locale anyway.
608 (not (equal (or (getenv "LC_ALL") (getenv "LC_TIME")
609 (getenv "LANGUAGE") (getenv "LANG") "C")
610 "C")))
611 (setq process-environment (cons "LC_ALL=C" process-environment)))
612 (if (consp dir-or-list) 604 (if (consp dir-or-list)
613 ;; In this case, use the file names in the cdr 605 ;; In this case, use the file names in the cdr
614 ;; exactly as originally given to dired-noselect. 606 ;; exactly as originally given to dired-noselect.
@@ -1309,10 +1301,6 @@ Optional arg GLOBAL means to replace all matches."
1309 [ 0-9][0-9][:0-9][0-9][ 0-9] " 1301 [ 0-9][0-9][:0-9][0-9][ 0-9] "
1310 "Regular expression to match a month abbreviation followed date/time.") 1302 "Regular expression to match a month abbreviation followed date/time.")
1311 1303
1312(defconst dired-standard-move-to-filename-regexp
1313 "\\(Jan\\|Feb\\|Mar\\|Apr\\|May\\|Jun\\|Jul\\|Aug\\|Sep\\|Oct\\|Nov\\|Dec\\)[ ]+[0-9]+ [ 0-9][0-9][:0-9][0-9][ 0-9] "
1314 "Regular expression to match a month abbreviation followed by a number.")
1315
1316;; Move to first char of filename on this line. 1304;; Move to first char of filename on this line.
1317;; Returns position (point) or nil if no filename on this line." 1305;; Returns position (point) or nil if no filename on this line."
1318(defun dired-move-to-filename (&optional raise-error eol) 1306(defun dired-move-to-filename (&optional raise-error eol)