GNU bug report logs - #952
23.0.60; cons DIRNAME arg to `dired' makes it ignore SWITCHES arg

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: "Drew Adams" <drew.adams@HIDDEN>; merged with #20739; dated Wed, 10 Sep 2008 02:30:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 952 <at> debbugs.gnu.org:


Received: (at 952) by debbugs.gnu.org; 16 Sep 2016 15:33:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 16 11:33:31 2016
Received: from localhost ([127.0.0.1]:33502 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bkv8t-0007O7-CV
	for submit <at> debbugs.gnu.org; Fri, 16 Sep 2016 11:33:31 -0400
Received: from blu004-omc3s29.hotmail.com ([65.55.116.104]:62162)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <bransoj@HIDDEN>) id 1bksoh-0003gL-OI
 for 952 <at> debbugs.gnu.org; Fri, 16 Sep 2016 09:04:37 -0400
Received: from NAM04-BN3-obe.outbound.protection.outlook.com ([65.55.116.72])
 by BLU004-OMC3S29.hotmail.com over TLS secured channel with Microsoft
 SMTPSVC(7.5.7601.23008); Fri, 16 Sep 2016 06:04:26 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com;
 s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version;
 bh=3G3+vh/PNTk7TghDN0mcy/X7fRMn1pngoqNfpvTykbY=;
 b=Li4x4usTPJ+UssnQeI7b8DRefri6qX4AeCsRFCTcfXNPPrEncZivZptUl4UdoJ/KU/nDlY2fp9K8AdAJ5q5Rsf+MaF4gff459hzhCg6bdHBg7LELszEFs3b0wP7WMu53eyRKjtou5jgOyYya52XdbwZjGYCikeAArmVtlJB/R6Vaj6WQM8uIqSAbVrsTNqzktOuPG0ozK402UsIU960IRwJHqscYNJqkcIYbgT7b0a2D2PVgEOLhmrEqfXi8IWDdFJ0WIsWWcSVecWga6ze2Es7nIzPV2vTBKYBXR4NqVuJjS/Ynj+VKe0BYR+xT0NUuw66iv6Vqz43eFwFmc94aHA==
Received: from BN3NAM04FT046.eop-NAM04.prod.protection.outlook.com
 (10.152.92.55) by BN3NAM04HT102.eop-NAM04.prod.protection.outlook.com
 (10.152.93.31) with Microsoft SMTP Server (version=TLS1_0,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.619.6; Fri, 16 Sep
 2016 13:04:25 +0000
Received: from BLUPR10MB0594.namprd10.prod.outlook.com (10.152.92.52) by
 BN3NAM04FT046.mail.protection.outlook.com (10.152.93.140) with Microsoft SMTP
 Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id
 15.1.619.6 via Frontend Transport; Fri, 16 Sep 2016 13:04:25 +0000
Received: from BLUPR10MB0594.namprd10.prod.outlook.com ([10.163.124.145]) by
 BLUPR10MB0594.namprd10.prod.outlook.com ([10.163.124.145]) with mapi id
 15.01.0609.018; Fri, 16 Sep 2016 13:04:25 +0000
From: Joshua Branson <bransoj@HIDDEN>
To: "952 <at> debbugs.gnu.org" <952 <at> debbugs.gnu.org>
Subject: Re: bug#952
Thread-Topic: bug#952
Thread-Index: AQHSEBiQ5ORUmVZM4Um1ziOqImS1SQ==
Date: Fri, 16 Sep 2016 13:04:25 +0000
Message-ID: <BLUPR10MB0594EF80AD3A7B3285086BFCA6F30@HIDDEN>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: spf=softfail (sender IP is 10.152.92.52)
 smtp.mailfrom=hotmail.com; debbugs.gnu.org; dkim=none (message not signed)
 header.d=none;debbugs.gnu.org; dmarc=fail action=none
 header.from=hotmail.com;
received-spf: SoftFail (protection.outlook.com: domain of transitioning
 hotmail.com discourages use of 10.152.92.52 as permitted sender)
x-ms-exchange-messagesentrepresentingtype: 1
x-tmn: [qf+g6QWJ/afcYeU3cFBt+SMcJ/S07rYy]
x-eopattributedmessage: 0
x-microsoft-exchange-diagnostics: 1; BN3NAM04HT102;
 6:YSjkSnv3g9M+9gA0PlY086UKOUZrq7QSBHujVtT0abFwV9Q2gZcEtcG0ksUnvJYHK4CeqQVIGwVPTOgrI+A6iJ3TUN5xlvboUBRQJFeWZ1pVRnFM04FoPb7YQvVsHQkBSLz3B363unPNtH42a/Yp6c0OqMxYg3QtPxgvA1TxGcMuhQadlbxNqu/IaJj7upkYS38njWjTjYY3ohACkUkUN7cknsobO9FUEJ3S5GIqstvgNVt5jiCiAlXYOORmVklk3xmLk+uV6ue0A3LS0OUcF0psPvqxEvSvRqJv6HxZWYU=;
 5:SF8y0Rv+kdFwTixYAr2lei+EqB7rhU/YSZiSIe/1Odj7A/sueszzclhgmcov25X2Wa4nIW7l8lJpiP1HpAhBkBcy3wo2Jcfce6lIXBtIPwAzIgF+TODWPV2fMKki2JSo2J17Zq2RAp6f+yiLzv1Szg==;
 24:eF6i231MjpvyPK2/elYmhbZIRL5Syoxpr1xym5fUk/1VefdyL6VJMGT7w7pUI69Mg/zXclPv8DA76wnr58pP22OrTVDaweO/58s22VTs0jk=;
 7:ROgE+1qSh6atMJP8qdlJIQpRU98v4OgjYMJ0zMWEsipz3bko9gspKdGjz3oLKKW2rFFal1VPyQrpyAvxwxyp4r62GsDHkRDaCEbS97L0A0HaIuq2l8D/PycrEd5b0YsPlk53S0kV3K7IchLtcvGG8eMNiVfcM5LFhqXamVK5X4EmcnkdfaLxzzq0zX2P32XDEPZrVcvD0yWzHPXEfP+8cBzN0YOEqkiNHbso7CyCiprlAph5ozR/Zir+YCMJb6N7UQDurPfmtzI9fC3VLo4ckL9OEtBIKLdFY5RgTt/DV4MsmIeOOqO0hyrDFhML+yaW
x-forefront-antispam-report: EFV:NLI; SFV:NSPM; SFS:(10019020)(98900003);
 DIR:OUT; SFP:1102; SCL:1; SRVR:BN3NAM04HT102;
 H:BLUPR10MB0594.namprd10.prod.outlook.com; FPR:; SPF:None; LANG:en; 
x-ms-office365-filtering-correlation-id: b476212f-911a-4360-16bb-08d3de31fc08
x-microsoft-antispam: UriScan:; BCL:0; PCL:0;
 RULEID:(1601124038)(1603103081)(1601125047); SRVR:BN3NAM04HT102; 
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(432015012)(82015046);
 SRVR:BN3NAM04HT102; BCL:0; PCL:0; RULEID:; SRVR:BN3NAM04HT102; 
x-forefront-prvs: 0067A8BA2A
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative;
 boundary="_000_BLUPR10MB0594EF80AD3A7B3285086BFCA6F30BLUPR10MB0594namp_"
MIME-Version: 1.0
X-OriginatorOrg: hotmail.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Sep 2016 13:04:25.0742 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Internet
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3NAM04HT102
X-OriginalArrivalTime: 16 Sep 2016 13:04:26.0398 (UTC)
 FILETIME=[DA3FE3E0:01D2101A]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 952
X-Mailman-Approved-At: Fri, 16 Sep 2016 11:33:29 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

--_000_BLUPR10MB0594EF80AD3A7B3285086BFCA6F30BLUPR10MB0594namp_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I'm using Parabola GNU/Linux.  My emacs is version 24.5-4.


Have you tried updating to a newer version of Emacs?  The latest stable ver=
sion of Emacs is 24 (Emacs 25 will soon be released soon).  I'm not a devel=
oper of Emacs, but if you are using an outdated version, the developers of =
Emacs will probably prioritize fixing bugs on newer versions of Emacs.


And don't -lC naturally conflict?  Try running both ls -lC and ls -Cl in a =
terminal.  In my terminal, it does what the last flag says.  So l -lC displ=
ays the output in columns and l -Cl looks just like l -l.


I've done


(dired '("~/" ".bashrc"  ".bash_profile" "-l")  ;; shows the long format


(dired '("~/"  ".bashrc"  ".bash_profile" "-lg")  ;;shows the long format w=
/o displaying the file owner.


And it worked as expected.


Can you give me a few more examples where dired is ignoring flags?

--_000_BLUPR10MB0594EF80AD3A7B3285086BFCA6F30BLUPR10MB0594namp_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<style type=3D"text/css" style=3D"display:none;"><!-- P {margin-top:0;margi=
n-bottom:0;} --></style>
</head>
<body dir=3D"ltr">
<div id=3D"divtagdefaultwrapper" style=3D"font-size:12pt;color:#000000;back=
ground-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>I'm using Parabola GNU/Linux.&nbsp; My emacs is version 24.5-4.<br>
</p>
<p><br>
</p>
<p>Have you tried updating to a newer version of Emacs?&nbsp; The latest st=
able version of Emacs is 24 (Emacs 25 will soon be released soon).&nbsp; I'=
m not a developer of Emacs, but if you are using an outdated version, the d=
evelopers of Emacs will probably prioritize
 fixing bugs on newer versions of Emacs.</p>
<p><br>
</p>
<p>And don't -lC naturally conflict?&nbsp; Try running both ls -lC and ls -=
Cl in a terminal.&nbsp; In my terminal, it does what the last flag says.&nb=
sp; So l -lC displays the output in columns and l -Cl looks just like l -l.=
</p>
<p><br>
</p>
<p>I've done</p>
<p><br>
</p>
<p>(dired '(&quot;~/&quot; &quot;.bashrc&quot;&nbsp; &quot;.bash_profile&qu=
ot; &quot;-l&quot;)&nbsp; ;; shows the long format</p>
<p><br>
</p>
<p>(dired '(&quot;~/&quot;&nbsp; &quot;.bashrc&quot;&nbsp; &quot;.bash_prof=
ile&quot; &quot;-lg&quot;)&nbsp; ;;shows the long format w/o displaying the=
 file owner.</p>
<p><br>
</p>
<p>And it worked as expected.</p>
<p><br>
</p>
<p>Can you give me a few more examples where dired is ignoring flags? &nbsp=
;<br>
</p>
</div>
</body>
</html>

--_000_BLUPR10MB0594EF80AD3A7B3285086BFCA6F30BLUPR10MB0594namp_--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#952; Package emacs. Full text available.
Merged 952 20739. Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
bug reassigned from package 'emacs,ls-lisp,w32' to 'emacs,w32'. Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
bug reassigned from package `emacs,w32' to `emacs,ls-lisp,w32'. Request was from Jason Rumney <jasonr@HIDDEN> to control@HIDDEN. Full text available.
bug reassigned from package `emacs' to `emacs,w32'. Request was from Glenn Morris <rgm@HIDDEN> to control@HIDDEN. Full text available.

Message received at (unknown):


Received: (at unknown) by unknown; unknown
X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02
	(2007-08-08) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Status: No, score=-6.6 required=4.0 tests=AWL,BAYES_00,
	RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham
	version=3.2.3-bugs.debian.org_2005_01_02
Received: (at submit) by emacsbugs.donarmstrong.com; 10 Sep 2008 02:24:58 +0000
Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10])
	by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8A2Os3R005054
	for <submit@HIDDEN>; Tue, 9 Sep 2008 19:24:55 -0700
Received: from mail.gnu.org ([199.232.76.166]:36020 helo=mx10.gnu.org)
	by fencepost.gnu.org with esmtp (Exim 4.67)
	(envelope-from <drew.adams@HIDDEN>)
	id 1KdFMJ-0004YQ-Hw
	for emacs-pretest-bug@HIDDEN; Tue, 09 Sep 2008 22:23:07 -0400
Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60)
	(envelope-from <drew.adams@HIDDEN>)
	id 1KdFNy-0001w7-Qw
	for emacs-pretest-bug@HIDDEN; Tue, 09 Sep 2008 22:24:53 -0400
Received: from agminet01.oracle.com ([141.146.126.228]:10762)
	by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.60)
	(envelope-from <drew.adams@HIDDEN>)
	id 1KdFNy-0001vp-Dl
	for emacs-pretest-bug@HIDDEN; Tue, 09 Sep 2008 22:24:50 -0400
Received: from agmgw1.us.oracle.com (agmgw1.us.oracle.com [152.68.180.212])
	by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id m8A2OkqA019015
	for <emacs-pretest-bug@HIDDEN>; Tue, 9 Sep 2008 21:24:47 -0500
Received: from acsmt700.oracle.com (acsmt700.oracle.com [141.146.40.70])
	by agmgw1.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id m8A2OjAK021349
	for <emacs-pretest-bug@HIDDEN>; Tue, 9 Sep 2008 20:24:46 -0600
Received: from dradamslap1 (/141.144.53.208)
	by default (Oracle Beehive Gateway v4.0)
	with ESMTP ; Tue, 09 Sep 2008 19:24:44 -0700
From: "Drew Adams" <drew.adams@HIDDEN>
To: <emacs-pretest-bug@HIDDEN>
Subject: 23.0.60; cons DIRNAME arg to `dired' makes it ignore SWITCHES arg
Date: Tue, 9 Sep 2008 19:24:46 -0700
Message-ID: <004601c912ec$65610a10$0200a8c0@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
Thread-Index: AckS7GTGZLyeMBgUSIWZuCylay8ELw==
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350
X-Brightmail-Tracker: AAAAAQAAAAI=
X-Brightmail-Tracker: AAAAAQAAAAI=
X-Whitelist: TRUE
X-Whitelist: TRUE
X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6

emacs -Q
 
M-: (dired '("c:/some/dir" "file1.el" "file2.el") "-lC")
 
where c:/some/dir is a directory containing files file1.el and file2.el.
 
The SWITCHES arg is ignored.
 
I've searched the doc and code but found no mention of this. The only
doc I've found for the `dired' args is the doc string, and according
to that the SWITCHES arg should always be respected.
 
I'm using MS Windows, so ls-lisp.el is involved here. I don't know
whether the same thing happens on GNU/Linux. However, switches such as
-lC and others that are ignored in this context work fine for (dired
"c:/some/dir" "-lC") and (dired "c:/some/dir/file*.el" "-lC"). 
 
I see no logical reason why the switches, or at least most of them,
shouldn't work also for an explicit list of files.
 
This same bug exists in Emacs 22, 21, and 20.
 

In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
 of 2008-08-29 on LENNART-69DE564
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/g/include
-fno-crossjumping'
 





Acknowledgement sent to "Drew Adams" <drew.adams@HIDDEN>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs@HIDDEN>. Full text available.
Report forwarded to bug-submit-list@HIDDEN, Emacs Bugs <bug-gnu-emacs@HIDDEN>:
bug#952; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

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