From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: leo Newsgroups: gmane.emacs.bugs Subject: bug#28807: 25.2; dired-actual-switches` and .dir-locals.el Date: Sat, 14 Oct 2017 19:49:53 +1100 Message-ID: <2AC7B238-DCA3-41AE-9E6B-2B75E24D3457@halloleo.hailmail.net> References: <2681E59F-31EA-45BF-A6CF-A9486B4FE12D@halloleo.hailmail.net> <83wp3zjtxm.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1507974858 17970 195.159.176.226 (14 Oct 2017 09:54:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 14 Oct 2017 09:54:18 +0000 (UTC) To: Eli Zaretskii , 28807@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 14 11:54:11 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e3J8y-0003Nw-Sn for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Oct 2017 11:54:09 +0200 Original-Received: from localhost ([::1]:53406 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e3J94-0005zu-Cs for geb-bug-gnu-emacs@m.gmane.org; Sat, 14 Oct 2017 05:54:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55194) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e3J8x-0005zW-ES for bug-gnu-emacs@gnu.org; Sat, 14 Oct 2017 05:54:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e3J8s-00074s-Ie for bug-gnu-emacs@gnu.org; Sat, 14 Oct 2017 05:54:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58402) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e3J8s-00074o-AK for bug-gnu-emacs@gnu.org; Sat, 14 Oct 2017 05:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e3J8s-0006e6-3G for bug-gnu-emacs@gnu.org; Sat, 14 Oct 2017 05:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: leo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Oct 2017 09:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 28807-submit@debbugs.gnu.org id=B28807.150797481325502 (code B ref 28807); Sat, 14 Oct 2017 09:54:02 +0000 Original-Received: (at 28807) by debbugs.gnu.org; 14 Oct 2017 09:53:33 +0000 Original-Received: from localhost ([127.0.0.1]:38850 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e3J8P-0006dG-BG for submit@debbugs.gnu.org; Sat, 14 Oct 2017 05:53:33 -0400 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:47547) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e3I8s-0003AP-Q4 for 28807@debbugs.gnu.org; Sat, 14 Oct 2017 04:50:00 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 4B1C9208AE; Sat, 14 Oct 2017 04:49:58 -0400 (EDT) Original-Received: from frontend2 ([10.202.2.161]) by compute2.internal (MEProxy); Sat, 14 Oct 2017 04:49:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hailmail.net; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=g76GggBU/ACyOUhw3FYZL/iHXtG/W oh4zs+YHPyIC4E=; b=qO8dblpDWm7ZS+6qeRzcJam5pw9tnvdyEMJpa61MUASMS rL6BshCpAY7BgocMTA3SnlulTrGM7jyaE3EVvjq+sU9C6dTHghoLFaE8PwCEb4MX U5oubbAf929xqgqc+Ji8F5hXJ0MCetEDp5NsETu40UD8ZHrCz7BQSh3Lbwj3MKiJ Oj3GsVzt1ykTToETP609JqXZ8iD50U27YjQajpjH2hmsyDhaHfO5Tsm00cg9ch0S FxZInhNlWroEZt77wQNeWZpWpz2J0oPeyFokMKVQmHOYiB+TiBMMGP9El0foeWPX W8ls3oErxcRs4jmFIkdBr2cI9+26K71vN+1M5JFJg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=g76Ggg BU/ACyOUhw3FYZL/iHXtG/Woh4zs+YHPyIC4E=; b=UQNt5V3SUFz9jzGhypSJoX DKvwwK5rYxQ2tJom8FHGZ91sXxtQo/wjgkTRZxep7iTvP//QA/lwIrbC6qsDRQjS KxQOYf6KzK9Nax+xpZta2xKAV+QuPIn4LJOCGmUAmt3yiFjo9QyI8gAccID5urdO +YjgUeVXTGHGj1MO7xx0+WPRKf4xlbO3CapG8NxrTMOlRAD+SQXmr6FM86CC4rNW pAd3vOJkm8IrT3dHQuGx0KeApKPF+WjZPpes9ju2CKiKkBBdrllK7G3vYRV86GvZ OJz1CcdIJXSM0vbXDV8yMhXAVUbFTKoftM2Q66KSQXSbdOEUpxCrNL5NOI1igS4A == X-ME-Sender: Original-Received: from [192.168.0.3] (ppp121-45-203-105.bras1.cbr1.internode.on.net [121.45.203.105]) by mail.messagingengine.com (Postfix) with ESMTPA id 50CB22473E; Sat, 14 Oct 2017 04:49:57 -0400 (EDT) In-Reply-To: <83wp3zjtxm.fsf@gnu.org> X-Mailer: Apple Mail (2.3124) X-Mailman-Approved-At: Sat, 14 Oct 2017 05:53:32 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:138397 Archived-At: > On 13 Oct 2017, at 20:09, Eli Zaretskii wrote: >=20 >> From: leo >> Date: Fri, 13 Oct 2017 19:16:08 +1100 >>=20 >> ;;; Directory Local Variables >> ;;; For more information see (info "(emacs) Directory Variables") >>=20 >> ((dired-mode . >> ((dired-actual-switches . "-laht") >> (subdirs . nil)))) >>=20 >> * Create a subirectory `subdir` inside `mydir` >> * Create some files with different timestamp and different names in = there. >>=20 >> Bug 1: .dir-locals.el not applied the first time >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>=20 >> * Launch `emacs -Q` >> * Open `mydir` via `M-x find-file` as a dired buffer >> * Observe that `mydir` is **not** in date order sorted >> * Kill `mydir` buffer. >> * Open again `mydir` via `M-x find-file` as a dired buffer >> * Observe that `mydir` **is** in date order sorted (as it should be) >>=20 >> Bug 2: (subdirs . nil) rule not obeyed >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>=20 >> * Stay in that `emacs -Q` session >> * Kill `mydir` buffer. >> * Open `mydir/subdir` via `M-x find-file` as a dired buffer >> * Observe that `mydir` **is** in date order sorted (as it **not** = should be) >=20 > I think this is because both settings take their effect before the > Dired mode is turned on in the buffer. IOW, these customizations > simply cannot have the desired effect, as they are conditioned on > the wrong condition. Mmmh, the dired-actual-switches variable *did* work with the dired-x = package (when using its own .dired files) - but the newest dired-x = manual states that the .dired mechanism is depreciated over the = .dir-locals.el system. However as tested the .dir-locals.el mechanism = does not work.=