# HG changeset patch # User Eli Zaretskii # Date 1122026085 0 # Node ID d098d958b288845c91347d9a272530c48d6d50ca # Parent 722ca9969d9307db7d437d6c47ad862389227ce7 (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. diff -r 722ca9969d93 -r d098d958b288 lisp/dired.el --- a/lisp/dired.el Fri Jul 22 08:22:41 2005 +0000 +++ b/lisp/dired.el Fri Jul 22 09:54:45 2005 +0000 @@ -1865,11 +1865,11 @@ ;; The "[0-9]" below requires 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 - ;; The "[kKMGTPEZY]?" below supports "ls -alh" output. + ;; The "[BkKMGTPEZY]?" below supports "ls -alh" output. ;; 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][kKMGTPEZY]?" s + (concat ".*[0-9][BkKMGTPEZY]?" s "\\(" western "\\|" western-comma "\\|" japanese "\\|" iso "\\)" s "+")) "Regular expression to match up to the file name in a directory listing.