]> code.delx.au - gnu-emacs/commitdiff
Dired recognize dirs when file size in human units
authorTino Calancha <tino.calancha@gmail.com>
Wed, 29 Jun 2016 02:47:16 +0000 (11:47 +0900)
committerTino Calancha <tino.calancha@gmail.com>
Wed, 29 Jun 2016 02:47:16 +0000 (11:47 +0900)
* 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).

lisp/dired.el

index 38979b5244d07afc469b43df07f3644127cac599..d078478aaaff1c616dc5b2228c066059db2532f3 100644 (file)
@@ -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