GNU bug report logs -
#17307
24.3.90; find-dired
Previous Next
Reported by: xaos52 <at> gmail.com
Date: Mon, 21 Apr 2014 14:30:04 UTC
Severity: normal
Found in version 24.3.90
Full log
View this message in rfc822 format
Jean-Pierre De Schacht <xaos52 <at> gmail.com> writes:
> - (replace-match (format "%4s" (match-string 1))
> - nil nil nil 1)
> + (replace-match (format "%7s" (match-string 1))
> + nil nil nil 1)
Just increasing the widths doesn't really help that much, because all
the columns may be arbitrarily wide. A better fix would be to first
compute the max width of all elements, and then use that when
reformatting.
Example:
/home/larsi/:
find . \( -maxdepth 1 \) -ls
find: warning: you have specified the -maxdepth option after a non-option argument (, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it). Please specify options before other arguments.
7077890 4 drwxr-xr-x 53 larsi larsi 4096 feb. 24 13:40 .
7078163 44 -rw------- 1 larsi larsi 43501 feb. 20 16:37 .bash_history
7131212 231220 -rw-rw-r-- 1 larsi larsi 236769280 des. 3 09:08 stream.dump
7104288 4 -rw-r--r-- 1 larsi larsi 840 aug. 2 2015 stats
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 9 years and 112 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.