all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#22255: 25.1.50; directories not recognized if dired-actual-switches has: -lsh
@ 2015-12-28  9:26 Tino Calancha
  2016-06-28  4:25 ` bug#22255: 25.1.50; Dired: Handle dired-actual-switches: -lsh Tino Calancha
  2016-06-29  2:56 ` bug#22255: (no subject) Tino Calancha
  0 siblings, 2 replies; 4+ messages in thread
From: Tino Calancha @ 2015-12-28  9:26 UTC (permalink / raw)
  To: 22255



dired-re-dir dont expect human readable format in the file system block size.
If we set dired-actual-switches -lsh, with gnu ls, diredp-next-dirline 
fails whenever the block size contains size units.

emacs -Q:

(let ((default "  15204787   4 drwxr-xr-x  2 user group   4096 Dec  28 17:53 .emacs.d")
       (human "  15204787 4.0K drwxr-xr-x  2 user group 4.0K Dec  28 17:53 .emacs.d"))
   (require 'dired)
   (if (string-match dired-re-dir default)
       (insert (format "default match dired-re-dir\n"))
     (insert (format "default DOESN'T match dired-re-dir\n")))
   (if (string-match dired-re-dir human)
     (insert (format "human match dired-re-dir\n"))
     (insert (format "human DOESN'T match dired-re-dir\n"))))
default match dired-re-dir
human DOESN'T match dired-re-dir

We may fix this modifying dired-re-inode-size to recognize human readable sizes.


In GNU Emacs 25.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.28)
  of 2015-11-28
Repository revision: c42ccd615081e12c97a55e778b488b3f4f5b22b7
Windowing system distributor 'The X.Org Foundation', version 11.0.11703000
System Description:	Debian GNU/Linux testing (stretch)





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-06-29  2:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-28  9:26 bug#22255: 25.1.50; directories not recognized if dired-actual-switches has: -lsh Tino Calancha
2016-06-28  4:25 ` bug#22255: 25.1.50; Dired: Handle dired-actual-switches: -lsh Tino Calancha
2016-06-28 16:12   ` Eli Zaretskii
2016-06-29  2:56 ` bug#22255: (no subject) Tino Calancha

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.