From: Tino Calancha Date: Wed, 29 Jun 2016 02:47:16 +0000 (+0900) Subject: Dired recognize dirs when file size in human units X-Git-Tag: emacs-26.0.90~1840^2~145 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1a5d0c15185986e645e8fb8080a2338d8f17d562;p=emacs.git Dired recognize dirs when file size in human units * lisp/dired.el (dired-re-inode-size): Update 'dired-re-inode-size' to match when Dired displays the allocated file size column in human readable units (Bug#22255). --- diff --git a/lisp/dired.el b/lisp/dired.el index 38979b5244d..d078478aaaf 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -303,7 +303,7 @@ The directory name must be absolute, but need not be fully expanded.") (put 'dired-actual-switches 'safe-local-variable 'dired-safe-switches-p) -(defvar dired-re-inode-size "[0-9 \t]*" +(defvar dired-re-inode-size "[0-9 \t]*[.,0-9]*[BkKMGTPEZY]?[ \t]*" "Regexp for optional initial inode and file size as made by `ls -i -s'.") ;; These regexps must be tested at beginning-of-line, but are also