Using dired-listing-switches with a value like "-lh" on FreeBSD results in an output like the following:
-rw------- 1 emf emf 6.2K Jul 19 22:13 .bash_history -rw-r--r-- 1 emf emf 174B Nov 25 2001 .bash_logout -rw-r--r-- 1 emf emf 551B Jul 5 22:54 .bash_profile as you can see small files (under 1K) display sizes with a 'B' suffix. As a consecuence those files cant be selected by dired and instead an error ("No file on this line") is signaled. The following patch fixes this behaviour. $ diff -uF '^(def*' dired.el~ dired.el --- dired.el~ Tue Jul 19 22:41:41 2005 +++ dired.el Tue Jul 19 22:42:49 2005 @@ -1870,7 +1870,7 @@ (defvar dired-move-to-filename-regexp ;; 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. -- Eduardo Muñoz | (prog () 10 (print "Hello world!") http://213.97.131.125/ | 20 (go 10)) _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel