]> git.eshelyaron.com Git - emacs.git/commitdiff
Revision: miles@gnu.org--gnu-2003/emacs--cvs-trunk--0--patch-135
authorMiles Bader <miles@gnu.org>
Wed, 24 Dec 2003 23:18:55 +0000 (23:18 +0000)
committerMiles Bader <miles@gnu.org>
Wed, 24 Dec 2003 23:18:55 +0000 (23:18 +0000)
Make dired more robust for non-english locales.

lisp/dired.el (dired-between-files): Always use dired-move-to-filename,
which is more robust in non-english locales.

lisp/dired.el

index b7fe389827b098e2f689ff120c15f55c5c061c98..c15134e3bc98d8226c8990dd79d1085c83c271c3 100644 (file)
@@ -2380,12 +2380,10 @@ FILES is the list of marked files."
     (dired-move-to-filename)))
 
 (defun dired-between-files ()
-  ;; Point must be at beginning of line
-  ;; Should be equivalent to (save-excursion (not (dired-move-to-filename)))
-  ;; but is about 1.5..2.0 times as fast. (Actually that's not worth it)
-  (or (looking-at "^$\\|^. *$\\|^. total\\|^. wildcard\\|^. used\\|^. find")
-      (and (looking-at dired-subdir-regexp)
-          (save-excursion (not (dired-move-to-filename))))))
+  ;; This used to be a regexp match of the `total ...' line output by
+  ;; ls, which is slightly faster, but that is not very robust; notably,
+  ;; it fails for non-english locales.
+  (save-excursion (not (dired-move-to-filename))))
 
 (defun dired-next-marked-file (arg &optional wrap opoint)
   "Move to the next marked file, wrapping around the end of the buffer."