Re: dired-move-to-filename-regexp

2004-09-21 Thread Paul Eggert
Richard Stallman <[EMAIL PROTECTED]> writes: > I recall we discussed this, but I don't recall if we solved the > problem. Did we decide on any solution? I don't recall anyone designing anything specific, but here are some thoughts. Current "ls -l --dired" outputs something like this: drwx

Re: dired-move-to-filename-regexp

2004-09-23 Thread Paul Eggert
Richard Stallman <[EMAIL PROTECTED]> writes: > I think a better solution is if we can turn off the new "feature" > of adapting the column widths to the data. One way would be to extend --format to allow fairly arbitrary formats that can specify column widths. For example, Emacs could do this:

Re: dired-move-to-filename-regexp

2004-09-23 Thread Richard Stallman
I think a better solution is if we can turn off the new "feature" of adapting the column widths to the data. It is simple and clean. Both this and your suggestion would only work with GNU ls, so in that regard neither one has an advantage. Meyering, what do you think? __

Re: dired-move-to-filename-regexp

2004-09-23 Thread Stefan Monnier
> I think a better solution is if we can turn off the new "feature" > of adapting the column widths to the data. It is simple and clean. > Both this and your suggestion would only work with GNU ls, so in that > regard neither one has an advantage. Another solution is to assume that the current bu

Re: dired-move-to-filename-regexp

2004-09-23 Thread Miles Bader
On Thu, Sep 23, 2004 at 12:45:31PM -0400, Richard Stallman wrote: > I think a better solution is if we can turn off the new "feature" > of adapting the column widths to the data. It is simple and clean. It maybe a bit less work, but it's certainly not "better" -- without the auto-adjustment featu

Re: dired-move-to-filename-regexp

2004-09-23 Thread Jim Meyering
> I think a better solution is if we can turn off the new "feature" > of adapting the column widths to the data. It is simple and clean. > Both this and your suggestion would only work with GNU ls, so in that > regard neither one has an advantage. > > Meyering, what do you think? Ideally ls would

Re: dired-move-to-filename-regexp

2004-09-24 Thread Richard Stallman
Another solution is to assume that the current buffer and the one new line have used the same ls options and contain the same number of space-separated fields. Based on this, you can add spaces so as to align the fields in the new line to the field of the other lines. That would b

Re: dired-move-to-filename-regexp

2004-09-24 Thread Richard Stallman
> I think a better solution is if we can turn off the new "feature" > of adapting the column widths to the data. One way would be to extend --format to allow fairly arbitrary formats that can specify column widths. For example, Emacs could do this: ls --format='%11m %2l %8o

Re: dired-move-to-filename-regexp

2004-09-24 Thread Richard Stallman
It maybe a bit less work, but it's certainly not "better" -- without the auto-adjustment feature, it "simply" would use absurdly large amounts of whitespace _just in case_ a file happens to be hundreds of gigabytes in size and have thousands of links. If ls does what ls used to do,

Re: dired-move-to-filename-regexp

2004-09-24 Thread Stefan
> Another solution is to assume that the current buffer and the one new > line have used the same ls options and contain the same number of > space-separated fields. Based on this, you can add spaces so as to > align the fields in the new line to the field of the other lines. > Th

Re: dired-move-to-filename-regexp

2004-09-25 Thread Richard Stallman
Ideally ls would accept a new --format=FMT option that would work like find's printf format string. Then it'd be easy to add a new option to make ls use a format string with fixed widths to restore the old behavior. Would you like to implement that? If that's the solution you pref

Re: dired-move-to-filename-regexp

2004-09-25 Thread Richard Stallman
> That would be rather unreliable, since it would need to figure out the > number of spaces between fields in both the new output and the old > buffer. The gains that we got from --dired would be lost. > I won't accept this approach. Of course, the filename part would be deter

Re: dired-move-to-filename-regexp

2004-09-25 Thread Stefan
problem, we here add spaces to try and re-align the + ;; fields as needed. Since this is purely aesthetic, it is of utmost + ;; importance that it doesn't mess up anything like + ;; `dired-move-to-filename'. To this end, we limit ourselves to adding + ;; spaces only, and to only add t

Re: dired-move-to-filename-regexp

2004-09-26 Thread Richard Stallman
Ok, you've convinced me. If no one else sees a problem, please install your patch. ___ Bug-coreutils mailing list [EMAIL PROTECTED] http://lists.gnu.org/mailman/listinfo/bug-coreutils

Re: dired-move-to-filename-regexp

2004-09-28 Thread Stefan
> Ok, you've convinced me. If no one else sees a problem, > please install your patch. I've installed it. But as mentioned, this is lightly tested. Please people who use dired, beat on it (whether or not your `ls' does funny realignment: it's important that the new code shouldn't make things wor