From: Drew Adams <drew.adams@oracle.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 20739@debbugs.gnu.org
Subject: bug#20739: 25.0.50; Dired switches have no effect when explicit list of files provided
Date: Sun, 7 Jun 2015 12:33:16 -0700 (PDT) [thread overview]
Message-ID: <99d84238-3b80-4778-a248-7063a7e6b3df@default> (raw)
In-Reply-To: <<838ubvmj2s.fsf@gnu.org>>
> > > > It is not about the order. `r' works, for example - it
> > > > reverses the order.
> > >
> > > No, it doesn't. The order is always the same as in the list you
> > > pass to 'dired'.
> >
> > That's not what I see.
> > (dired ("foo" "/path/to/bbbbb" "/path/to/foo.el"
> > "/path/to/bar.el")
> > "-alFr")
> > shows the files in Dired in the reverse order: bar.el, foo.el,
> > bbbbb.
(I forgot the quote before the list arg, as I'm sure you realized.)
> Not in my Emacs, built from the latest development sources.
Interesting. I definitely see the list reversed correctly, even
in this very recent build:
In GNU Emacs 25.0.50.1 (i686-pc-mingw32)
of 2015-05-29 on LEG570
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
`configure --prefix=/mingw32 --host=i686-pc-mingw32
--enable-checking=yes,glyphs'
> > > Yes, and those are all the switches that control the order of
> > > presenting the files in the listing.
> >
> > I don't agree. Unless you are interpreting "switches that control
> > the order" as including any switch that affects the display.
>
> I do.
An odd interpretation of sort order. If the doc relies on users
understanding things that way then I'd suggest that it won't
work as intended. ;-)
> > You say that -C, for instance, "controls the order". At least
> > here (I'm using Cygwin), -C lists the entries by columns. It
> > does not change/control the order.
>
> It shows them in column-wise order.
What does that even mean? The order of the files listed is
unchanged from the input order in DIRNAME. What is changed
(removed) is the display of fields besides the file/dir name.
> > > the others are meaningless when you specify the files explicitly.
> >
> > Whether -A, -a, and -B are meaningless is in the eye of the user.
> > The point is that if you specify an explicit . or .., switch -A
> > still lists those directories.
>
> They are also shown without -A or -a. Specifying any files lists
> them regardless.
Which is just another way of saying that -A and -a do not remove
those dot names. We are agreeing about the effect, but not about
what it means. IMO, it means that these switches do not do what
they say. In your opinion (I guess) they do what they say, because
a user must understand what they say to mean that they do not
do what they explicitly in this case, i.e., they do not remove .
and ...
> > Why do you think that what is controlled by the ls-lisp.el code
> > has nothing to do with this bug report?
>
> Because 'dired' the function is not defined in ls-lisp.el, and it
> works even without ls-lisp.
On MS Windows (my report is from a Windows build) it uses ls-lisp
by default, no? The manual says this:
Dired normally uses the external program `ls' to produce the directory
listing displayed in Dired buffers (*note Dired::). However,
MS-Windows and MS-DOS systems don't come with such a program, although
several ports of GNU `ls' are available. Therefore, Emacs on those
systems _emulates_ `ls' in Lisp, by using the `ls-lisp.el' package.
While `ls-lisp.el' provides a reasonably full emulation of `ls', there
are some options and features peculiar to that emulation; they are
described in this section.
And even if it does work in some cases without ls-lisp, my bug
report is about fixing Dired generally, including (explicitly)
when ls-lisp is used. Why look for some cases where it might
work as a way to claim that there is thus no bug if it does
not work in other cases? Especially cases that I specifically
reported on from the beginning in the bug report?
> > The bug is about certain Dired switches having no effect when
> > DIRNAME is a cons, even though they could work (have the usual
> > effect).
>
> Exactly. And they have or don't have effect regardless of ls-lisp.
OK, as long as fixing them includes fixing them for ls-lisp.
And I pointed out the particular case of -B, for which it is not
true (AFAIK) that it has or doesn't have "effect regardless of
ls-lisp." The specific problem I pointed to wrt -B is ls-lisp
only (AFAIK).
next parent reply other threads:[~2015-06-07 19:33 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <<186494c2-6958-42eb-a351-6543237bfb75@default>
[not found] ` <<838ubvmj2s.fsf@gnu.org>
2015-06-07 19:33 ` Drew Adams [this message]
2015-06-07 19:55 ` bug#20739: 25.0.50; Dired switches have no effect when explicit list of files provided Eli Zaretskii
[not found] ` <<99d84238-3b80-4778-a248-7063a7e6b3df@default>
[not found] ` <<834mmjmgyu.fsf@gnu.org>
2015-06-08 1:58 ` Drew Adams
[not found] <<f0b49ecc-7301-4ec9-b339-a3f8a65c553c@default>
[not found] ` <<83oaksmyc8.fsf@gnu.org>
2015-06-06 21:57 ` Drew Adams
2015-06-06 22:21 ` Drew Adams
2015-06-07 14:39 ` Eli Zaretskii
2015-06-09 15:09 ` Drew Adams
[not found] ` <<f33db93f-7f6c-4aee-90e4-566d7e93b228@default>
[not found] ` <<83fv63mvkj.fsf@gnu.org>
2015-06-07 17:34 ` Drew Adams
2015-06-07 19:09 ` Eli Zaretskii
[not found] <<3362479c-11a3-4559-88d6-666f03933440@default>
[not found] ` <<831thqp704.fsf@gnu.org>
2015-06-05 14:56 ` Drew Adams
[not found] ` <<837frhnppc.fsf@gnu.org>
2015-06-06 18:43 ` Drew Adams
2015-06-06 19:27 ` Eli Zaretskii
2015-06-05 8:34 Drew Adams
2015-06-05 14:25 ` Eli Zaretskii
2015-06-06 9:36 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=99d84238-3b80-4778-a248-7063a7e6b3df@default \
--to=drew.adams@oracle.com \
--cc=20739@debbugs.gnu.org \
--cc=eliz@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).