bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#17307: find-dired


From: Lars Ingebrigtsen
Subject: bug#17307: find-dired
Date: Wed, 24 Feb 2016 13:44:42 +1100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

Jean-Pierre De Schacht <address@hidden> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]