GNU bug report logs - #23373
25.0.93; dired-mark-sexp misinterprets file sizes if dired-listing-switches contains --block-size='1

Previous Next

Package: emacs;

Reported by: Jorge Morais <jorge13515 <at> gmail.com>

Date: Mon, 25 Apr 2016 13:54:02 UTC

Severity: minor

Tags: moreinfo

Found in version 25.0.93

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #13 received at 23373 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: Jorge Morais <jorge13515 <at> gmail.com>, 23373 <at> debbugs.gnu.org
Subject: Re: bug#23373: 25.0.93; dired-mark-sexp misinterprets file sizes if
 dired-listing-switches contains --block-size='1
Date: Thu, 13 Aug 2020 02:35:43 +0300
>> --block-size='1 is very convenient for human interpretation of large
>> file sizes, so it would be nice if Dired supported it.  If you cannot
>> support it, perhaps you should document this incompatibility in the
>> docstring of dired-listing-switches, and perhaps also in
>> [[info:emacs#Dired%20Enter][info:emacs#Dired Enter]].
>
> I use:
>
>    (setq dired-listing-switches "-alh")
>
> Would that solve your use-case?

dired-mark-sexp should use dired-files-attributes (based on file-attributes)
instead of trying to parse all possible ls output formats.




This bug report was last modified 3 years and 248 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.