aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2005-07-22 09:54:45 +0000
committerEli Zaretskii2005-07-22 09:54:45 +0000
commit09b0b7b3889c92ffe19d745e91c4ebb78e3c7fd1 (patch)
tree9bb98996898f71315a9e1e1e8ce279e17f11f631
parent7929f858f8897f0448771a471f8afc5f244e4bca (diff)
downloademacs-09b0b7b3889c92ffe19d745e91c4ebb78e3c7fd1.tar.gz
emacs-09b0b7b3889c92ffe19d745e91c4ebb78e3c7fd1.zip
(dired-move-to-filename-regexp): Recognize the B suffix
of the file size (as in "177B" for 177 bytes). This happens with "ls -lh" on FreeBSD.
-rw-r--r--lisp/dired.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/dired.el b/lisp/dired.el
index 0ba369e4640..880d31d9b41 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -1865,11 +1865,11 @@ DIR must be a directory name, not a file name."
1865 ;; The "[0-9]" below requires the previous column to end in a digit. 1865 ;; The "[0-9]" below requires the previous column to end in a digit.
1866 ;; This avoids recognizing `1 may 1997' as a date in the line: 1866 ;; This avoids recognizing `1 may 1997' as a date in the line:
1867 ;; -r--r--r-- 1 may 1997 1168 Oct 19 16:49 README 1867 ;; -r--r--r-- 1 may 1997 1168 Oct 19 16:49 README
1868 ;; The "[kKMGTPEZY]?" below supports "ls -alh" output. 1868 ;; The "[BkKMGTPEZY]?" below supports "ls -alh" output.
1869 ;; The ".*" below finds the last match if there are multiple matches. 1869 ;; The ".*" below finds the last match if there are multiple matches.
1870 ;; This avoids recognizing `jservice 10 1024' as a date in the line: 1870 ;; This avoids recognizing `jservice 10 1024' as a date in the line:
1871 ;; drwxr-xr-x 3 jservice 10 1024 Jul 2 1997 esg-host 1871 ;; drwxr-xr-x 3 jservice 10 1024 Jul 2 1997 esg-host
1872 (concat ".*[0-9][kKMGTPEZY]?" s 1872 (concat ".*[0-9][BkKMGTPEZY]?" s
1873 "\\(" western "\\|" western-comma "\\|" japanese "\\|" iso "\\)" 1873 "\\(" western "\\|" western-comma "\\|" japanese "\\|" iso "\\)"
1874 s "+")) 1874 s "+"))
1875 "Regular expression to match up to the file name in a directory listing. 1875 "Regular expression to match up to the file name in a directory listing.