From unknown Fri Jun 20 19:45:59 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#28807 <28807@debbugs.gnu.org> To: bug#28807 <28807@debbugs.gnu.org> Subject: Status: 25.2; dired-actual-switches` and .dir-locals.el Reply-To: bug#28807 <28807@debbugs.gnu.org> Date: Sat, 21 Jun 2025 02:45:59 +0000 retitle 28807 25.2; dired-actual-switches` and .dir-locals.el reassign 28807 emacs submitter 28807 leo severity 28807 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 13 04:28:49 2017 Received: (at submit) by debbugs.gnu.org; 13 Oct 2017 08:28:50 +0000 Received: from localhost ([127.0.0.1]:36817 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2vKr-0006S8-JM for submit@debbugs.gnu.org; Fri, 13 Oct 2017 04:28:49 -0400 Received: from eggs.gnu.org ([208.118.235.92]:34245) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2v8v-00065x-1S for submit@debbugs.gnu.org; Fri, 13 Oct 2017 04:16:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2v8o-0004ye-90 for submit@debbugs.gnu.org; Fri, 13 Oct 2017 04:16:23 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:50232) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e2v8o-0004yW-5E for submit@debbugs.gnu.org; Fri, 13 Oct 2017 04:16:22 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53438) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2v8m-0004OV-AF for bug-gnu-emacs@gnu.org; Fri, 13 Oct 2017 04:16:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2v8i-0004wT-79 for bug-gnu-emacs@gnu.org; Fri, 13 Oct 2017 04:16:20 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:35577) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e2v8h-0004vw-Sk for bug-gnu-emacs@gnu.org; Fri, 13 Oct 2017 04:16:16 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 2348A20CD9 for ; Fri, 13 Oct 2017 04:16:14 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute2.internal (MEProxy); Fri, 13 Oct 2017 04:16:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hailmail.net; h= content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=ECOccH5jpN4BEbKLyZoYiCp+0s/URIdEOUkwAUIST6I=; b=XjnAX/hz RJlOYYzlwxlpMk5Un+kvdNQZjfVsVEjBSNMW4/LnZoiWqs/AzZeEXKX6zm1dd2f8 /2Zg5KLdpM1DUGVXtpMk9ITZPNBCWAm8DAV/9zfxUm30iysfTyvq/PvNLi5NoATn DLftv46jmcgiGuSYIa8/uVHCrQO5fXrIYCmmD1By31WrKYy5Z7jMTHr947i7X/Ip S90UKKyYmVl/lcpx7jngliYvAKi7NB83tgLjJERbMDOdNpNVB+HTY5L2g/5V47ze imuZbAPGaYKJftyFjOd8NW+msbRqc7H58rs9ctvbBkL3YFhtvkkEKsORxrLlM1cN nPjf/GfcyQx26w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=ECOccH5jpN4BEbKLyZoYiCp+0s/UR IdEOUkwAUIST6I=; b=E6MPS992JwttcxS6SVQF+rTrM7A9qiFBJxThN6KOEuSFr ZoZ33xHLGVMKfSuugFcrOpsYgdnKUzM10/PkBrPwvGYTWN9W3+9FiLRb1fteCK5R +zCmQfwz+2HQP80/jFTofLnbTQqCzRbx70i7vXk7Z0vtVkQqwnycEaq3mXViiGmM YgfO2mYqp1BaXv0Dziew/TsdNj9wyy7cUjsIaS1PFmoXh/WmexcPZGnrM7aGUXeX oYUolGIL12yhkGAw2zBbQliLTx/lBXeUjibAWJpsZb6QGzO2o/TsLTxBVXUlYtQt Qcsvp65/9ky/oGJ70aQ2hm17IgAeKhHturJsocEYw== X-ME-Sender: 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 203B72484E for ; Fri, 13 Oct 2017 04:16:12 -0400 (EDT) From: leo Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: 25.2; dired-actual-switches` and .dir-locals.el Message-Id: <2681E59F-31EA-45BF-A6CF-A9486B4FE12D@halloleo.hailmail.net> Date: Fri, 13 Oct 2017 19:16:08 +1100 To: bug-gnu-emacs@gnu.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.4 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 13 Oct 2017 04:28:48 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.4 (----) Setup =3D=3D=3D=3D=3D * Create a directory `mydir` somewhere accessible to you. * Create some files with different timestamp and different names in = there. * Craete a `.dir-locals.el` file in teher with the follwoing content: ;;; 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. 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 * 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) 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 * 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) Hope this helps! * * * In GNU Emacs 25.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.23) of 2017-09-01 built on ACCRAD01 Windowing system distributor 'MobaXterm', version 11.0.10605000 System Description: Oracle Linux Server release 6.9 Configured features: XPM JPEG TIFF GIF PNG SOUND GPM DBUS GCONF NOTIFY LIBSELINUX LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK2 X11 Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Dired by date Minor modes in effect: diff-auto-refine-mode: t magit-auto-revert-mode: t global-git-commit-mode: t auto-revert-mode: t async-bytecomp-package-mode: t helm-autoresize-mode: t savehist-mode: t shell-dirtrack-mode: t delete-selection-mode: t google-this-mode: t recentf-mode: t dired-omit-mode: t winner-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Omitted 2 lines. Mark set Reverting buffer =E2=80=98devel=E2=80=99. Omitting... (Nothing to omit) Omitting... Omitted 2 lines. Directory /home/broleo/tmp/emacs-test/ Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug sendmail arc-mode archive-mode doc-view image-mode sql whitespace dabbrev find-file cus-edit cus-start cus-load conf-mode view nroff-mode pcmpl-unix diff vc-git magit-extras magit-bookmark magit-obsolete magit-blame magit-stash magit-bisect magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-branch magit-files magit-refs magit-status subr-x magit magit-repos magit-apply magit-wip magit-log magit-diff smerge-mode diff-mode magit-core magit-autorevert magit-process magit-margin magit-mode magit-git magit-section magit-popup git-commit log-edit message rfc822 mml mml-sec epg mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log with-editor sh-script smie executable tramp-cmds tramp-cache markdown-mode derived rx color noutline outline helm-misc tabify imenu man eieio-opt speedbar sb-image ezimage dframe dirtrack ibuf-ext ibuffer helm-ring magit-utils crm dash jka-compr em-unix em-term term disp-table ehelp em-script em-prompt em-ls em-hist em-pred em-glob em-dirs em-cmpl em-basic em-banner em-alias esh-var esh-io esh-cmd esh-opt esh-ext esh-proc esh-arg esh-groups eshell esh-module esh-mode esh-util helm-command helm-elisp helm-eval edebug helm-mode pulse find-dired semantic/fw mode-local xref project grep image-file dired-aux warnings autorevert filenotify misearch multi-isearch filecache ido helm-x-files helm-for-files helm-bookmark helm-adaptive helm-info bookmark pp helm-external helm-net browse-url xml ffap thingatpt smart-tab flyspell ispell bash-completion shell-command helm-files helm-buffers helm-tags helm-locate helm-grep helm-regexp helm-utils helm-help helm-types helm-config helm-easymenu async-bytecomp helm helm-source eieio-compat helm-multi-match helm-lib async tsdh-light-theme savehist server python tramp-sh tramp tramp-compat tramp-loaddefs trampver ucs-normalize shell pcomplete format-spec json map find-func real-auto-save delsel google-this easy-mmode compile url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse auth-source cl-seq eieio eieio-core gnus-util mm-util help-fns mail-prsvr password-cache url-vars mailcap recentf tree-widget goto-chg locate dired-x dired-sort-menu ange-ftp comint ansi-color dired advice cl-macs ls-lisp edmacro kmacro deft wid-edit cl ediff-merg ediff-wind ediff-diff ediff-mult ediff-help ediff-init ediff-util ediff buffer-move windmove winner ring finder-inf package epg-config seq byte-opt gv bytecomp byte-compile cl-extra help-mode cconv cl-loaddefs pcase cl-lib info easymenu time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 976231 115019) (symbols 48 47193 0) (miscs 40 5736 3045) (strings 32 128077 17592) (string-bytes 1 4133074) (vectors 16 96180) (vector-slots 8 1723509 60572) (floats 8 1495 1377) (intervals 56 72285 1915) (buffers 976 212) (heap 1024 81934 17163)) From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 13 05:09:30 2017 Received: (at 28807) by debbugs.gnu.org; 13 Oct 2017 09:09:30 +0000 Received: from localhost ([127.0.0.1]:36869 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2vyE-0007hX-9U for submit@debbugs.gnu.org; Fri, 13 Oct 2017 05:09:30 -0400 Received: from eggs.gnu.org ([208.118.235.92]:47713) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e2vyC-0007hJ-AD for 28807@debbugs.gnu.org; Fri, 13 Oct 2017 05:09:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2vy3-00025z-Sh for 28807@debbugs.gnu.org; Fri, 13 Oct 2017 05:09:23 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34698) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2vy3-00025e-Pv; Fri, 13 Oct 2017 05:09:19 -0400 Received: from [176.228.60.248] (port=1289 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1e2vy2-0008LX-1Q; Fri, 13 Oct 2017 05:09:19 -0400 Date: Fri, 13 Oct 2017 12:09:09 +0300 Message-Id: <83wp3zjtxm.fsf@gnu.org> From: Eli Zaretskii To: leo In-reply-to: <2681E59F-31EA-45BF-A6CF-A9486B4FE12D@halloleo.hailmail.net> (message from leo on Fri, 13 Oct 2017 19:16:08 +1100) Subject: Re: bug#28807: 25.2; dired-actual-switches` and .dir-locals.el References: <2681E59F-31EA-45BF-A6CF-A9486B4FE12D@halloleo.hailmail.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 28807 Cc: 28807@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > From: leo > Date: Fri, 13 Oct 2017 19:16:08 +1100 > > ;;; Directory Local Variables > ;;; For more information see (info "(emacs) Directory Variables") > > ((dired-mode . > ((dired-actual-switches . "-laht") > (subdirs . nil)))) > > * Create a subirectory `subdir` inside `mydir` > * Create some files with different timestamp and different names in there. > > Bug 1: .dir-locals.el not applied the first time > ================================================ > > * 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) > > Bug 2: (subdirs . nil) rule not obeyed > ====================================== > > * 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) 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. From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 14 05:53:33 2017 Received: (at 28807) by debbugs.gnu.org; 14 Oct 2017 09:53:33 +0000 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 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 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) 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: 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) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: bug#28807: 25.2; dired-actual-switches` and .dir-locals.el From: leo In-Reply-To: <83wp3zjtxm.fsf@gnu.org> Date: Sat, 14 Oct 2017 19:49:53 +1100 Content-Transfer-Encoding: quoted-printable Message-Id: <2AC7B238-DCA3-41AE-9E6B-2B75E24D3457@halloleo.hailmail.net> References: <2681E59F-31EA-45BF-A6CF-A9486B4FE12D@halloleo.hailmail.net> <83wp3zjtxm.fsf@gnu.org> To: Eli Zaretskii , 28807@debbugs.gnu.org X-Mailer: Apple Mail (2.3124) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 28807 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 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) > 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.= From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 04 10:14:21 2021 Received: (at 28807) by debbugs.gnu.org; 4 Jul 2021 14:14:21 +0000 Received: from localhost ([127.0.0.1]:42960 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m02t2-0001Sn-SI for submit@debbugs.gnu.org; Sun, 04 Jul 2021 10:14:21 -0400 Received: from quimby.gnus.org ([95.216.78.240]:47628) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m02t0-0001SS-Se for 28807@debbugs.gnu.org; Sun, 04 Jul 2021 10:14:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=6tBslQHrl0osmlVWCQm1PH44rXqvkuQBJNsqxuSOyGc=; b=A2pWCZp+6AQrmZx9XBTU+N/sWT ue6neoaXC4ez2h4puUP7vWv/W1ld/N9EoE+fT8XMiZCnQQ8ZPqowrRjwebVYsIoBX2m969cDJoEp5 XqLQpgAb/YmaoQTJ2rodoOhWIKwjyxCUFL/q5vPiZ1PnJjwbEUiJLGW5UKs9vCzl7zZo=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m02sp-00017G-L5; Sun, 04 Jul 2021 16:14:12 +0200 From: Lars Ingebrigtsen To: leo Subject: Re: bug#28807: 25.2; dired-actual-switches` and .dir-locals.el References: <2681E59F-31EA-45BF-A6CF-A9486B4FE12D@halloleo.hailmail.net> X-Now-Playing: Kissing the Pink's _Naked_: "In Awe of Industry" Date: Sun, 04 Jul 2021 16:14:07 +0200 In-Reply-To: <2681E59F-31EA-45BF-A6CF-A9486B4FE12D@halloleo.hailmail.net> (leo's message of "Fri, 13 Oct 2017 19:16:08 +1100") Message-ID: <878s2m2mkw.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: leo writes: > * Create a subirectory `subdir` inside `mydir` > * Create some files with different timestamp and different names in there. > > Bug 1: .dir-locals.el not applied the first time > =================== [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 28807 Cc: 28807@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) leo writes: > * Create a subirectory `subdir` inside `mydir` > * Create some files with different timestamp and different names in there. > > Bug 1: .dir-locals.el not applied the first time > ================================================ > > * 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) > > Bug 2: (subdirs . nil) rule not obeyed > ====================================== > > * 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) I can reproduce some of this in various older Emacs versions, but this seems to work fine for me in Emacs 28 (and I remember doing some work in this area some months ago), so I'm going to go ahead and guess that this has been fixed, and I'm closing this bug report. If you're still seeing this issue, please respond to the debbugs address and we'll reopen. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 04 10:14:26 2021 Received: (at control) by debbugs.gnu.org; 4 Jul 2021 14:14:26 +0000 Received: from localhost ([127.0.0.1]:42963 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m02t8-0001T6-3d for submit@debbugs.gnu.org; Sun, 04 Jul 2021 10:14:26 -0400 Received: from quimby.gnus.org ([95.216.78.240]:47642) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m02t6-0001Sf-Mb for control@debbugs.gnu.org; Sun, 04 Jul 2021 10:14:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=gUWGFNepKj94I3kVt8TO8i0rbcL3kOc2iYFMGN4Q/mM=; b=gHCNFO+RMz9rXYw89yPHS7FXqo cGGZwa3NaPnzQUCMQFbDU1e3yL/WTdy3gFN6CP8AsCcv3vqs8NDhtr/h/3l42Qk3bQkO3U9lQKSQO LRsnmRxLiA72A2ZOSbf9kJLLeDgfLgoXCt2f69vmpzBMtIWTy/2Imo/F/pcvlEZ5JOwk=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m02sz-00017Q-3U for control@debbugs.gnu.org; Sun, 04 Jul 2021 16:14:19 +0200 Date: Sun, 04 Jul 2021 16:14:16 +0200 Message-Id: <877di62mkn.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #28807 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 28807 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 28807 28.1 quit From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 04 21:29:06 2021 Received: (at 28807) by debbugs.gnu.org; 5 Jul 2021 01:29:06 +0000 Received: from localhost ([127.0.0.1]:43464 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0DQ2-0003ZE-4f for submit@debbugs.gnu.org; Sun, 04 Jul 2021 21:29:06 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:35343) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0DPw-0003Yf-PW for 28807@debbugs.gnu.org; Sun, 04 Jul 2021 21:29:04 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 722C75C00B8 for <28807@debbugs.gnu.org>; Sun, 4 Jul 2021 21:28:55 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sun, 04 Jul 2021 21:28:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hailmail.net; h= from:to:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=fm3; bh= vOPyNyNohMeiDLY5yz5ZR3VuF1BJjfOqxoZ6qeiWgfo=; b=h1eoB6KV4xoxhhpr M9Ok1V/oZc5yc9HmrSrvc47rVNrJonWLTt1REXWT5U+7VfPGl4Zwt5cqBzAjhg7k mZYqP0y/r91mRilTy73ffaXCZZTDTafQQqlCMDA9ge5Rc4+d1/iyc8SKurro0mUa xrlt/Avhmrvf4WHb9Cn9hWbDcarfSu3bTML31UB+aI1v+VzLVF9k1sm8JUb9PUhT 8sotxC6kcY3c+9cXIbfQtxmAOLoEg2EpnW71E3W40SFe36wRKRxMPtjtIuO+HieH oQrxrqZbmjK/fFZLjWTCTJwUu0MsiKJ6j5GMLE6k/Ysx5XQMrvIF8ig6nED9JJHw YRFp4g== 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-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=vOPyNyNohMeiDLY5yz5ZR3VuF1BJjfOqxoZ6qeiWg fo=; b=ly//JXYGfP4DmcrLg9/5t7v0URR+MV0cjUEOS9wByvrnan29dEK590HtC 6/5ucJqkuqruglOfwpA/u1mEErjUyahm6GdL09UziSY3uncU+zyKgH/wroiZyZ8M vtCEtMXdHtEeaDDhhybTtEtZABFH/XyPkwgEIAqZvoWLGbRIyyyYUQBB27yfLmyp ZCTmH2Ruo89W+taHySadBD+6LErDDkW6hXWxNnuYuA2D42TTthPTZd7SWmDhwLfB Yy3K/Me4HwfLcvDApFVvLVVLNH7MkCpYM53R6D55EZ5NPaKphjGFrZJXLdhvOELJ IdyWDbEFJCUWCcgjwphQ7Pmx3xkEg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrfeejfedggeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffokfgjfhggtgfgsehtke hmtdertdejnecuhfhrohhmpehlvghouceouggvvheshhgrlhhlohhlvghordhhrghilhhm rghilhdrnhgvtheqnecuggftrfgrthhtvghrnhepheegkeejfeffkeetjefgvedvjeegle ejteekveeitdetudeitefhieeuhfdthfetnecuvehluhhsthgvrhfuihiivgeptdenucfr rghrrghmpehmrghilhhfrhhomhepuggvvheshhgrlhhlohhlvghordhhrghilhhmrghilh drnhgvth X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for <28807@debbugs.gnu.org>; Sun, 4 Jul 2021 21:28:54 -0400 (EDT) From: leo To: 28807@debbugs.gnu.org Subject: Re: bug#28807: 25.2; dired-actual-switches` and .dir-locals.el Date: Mon, 05 Jul 2021 11:28:54 +1000 X-Mailer: MailMate (1.14r5816) Message-ID: <31C9E48B-5A23-4BAD-A9E3-DF75A2E74BA1@halloleo.hailmail.net> In-Reply-To: <878s2m2mkw.fsf@gnus.org> References: <2681E59F-31EA-45BF-A6CF-A9486B4FE12D@halloleo.hailmail.net> <878s2m2mkw.fsf@gnus.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 28807 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) On 5 Jul 2021, at 0:14, Lars Ingebrigtsen wrote: > leo writes: > >> * Create a subirectory `subdir` inside `mydir` >> * Create some files with different timestamp and different names in there. >> >> Bug 1: .dir-locals.el not applied the first time >> ================================================ >> >> * 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) >> >> Bug 2: (subdirs . nil) rule not obeyed >> ====================================== >> >> * 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) > > I can reproduce some of this in various older Emacs versions, but this > seems to work fine for me in Emacs 28 (and I remember doing some work in > this area some months ago), so I'm going to go ahead and guess that this > has been fixed, and I'm closing this bug report. If you're still seeing > this issue, please respond to the debbugs address and we'll reopen. Thanks for looking into this. I am still on Emacs 27. Is Emacs 28 out on “stable”? From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 05 09:33:43 2021 Received: (at 28807) by debbugs.gnu.org; 5 Jul 2021 13:33:44 +0000 Received: from localhost ([127.0.0.1]:44484 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0OjH-0006QC-Nh for submit@debbugs.gnu.org; Mon, 05 Jul 2021 09:33:43 -0400 Received: from quimby.gnus.org ([95.216.78.240]:57474) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0OjG-0006Pz-7o for 28807@debbugs.gnu.org; Mon, 05 Jul 2021 09:33:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=a2XuqdzcaHfu7A97w3Y0dm8u0pfPjbI/sg5a5iyjNPU=; b=Cs+SZy6CpvTu+TSs/JxTt4lRQz Qji7NQ5opIDmzwrYWxeIRLKMpoGZJAGhYvzCrtBKxQpIkxIoUCtDEHWi5Uzjl7ZIR5ltXB7LlFnjU JDbjGIYIIZDkMAHc/k1DTaUjxRxgxHYop2vaZkHn4vu/FiP0f7n+HsCEn4L4hnJDNwHw=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m0Oj8-0004i7-2f; Mon, 05 Jul 2021 15:33:36 +0200 From: Lars Ingebrigtsen To: leo Subject: Re: bug#28807: 25.2; dired-actual-switches` and .dir-locals.el References: <2681E59F-31EA-45BF-A6CF-A9486B4FE12D@halloleo.hailmail.net> <878s2m2mkw.fsf@gnus.org> <31C9E48B-5A23-4BAD-A9E3-DF75A2E74BA1@halloleo.hailmail.net> X-Now-Playing: Caroline Shaw & =?utf-8?Q?S=C5=8D?= Percussion's _Let The Soil Play Its Simple Part_: "Some Bright Morning" Date: Mon, 05 Jul 2021 15:33:33 +0200 In-Reply-To: <31C9E48B-5A23-4BAD-A9E3-DF75A2E74BA1@halloleo.hailmail.net> (leo's message of "Mon, 05 Jul 2021 11:28:54 +1000") Message-ID: <87wnq4yjf6.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: leo writes: > I am still on Emacs 27. Is Emacs 28 out on “stable”? Emacs 28 is the current development branch of Emacs. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 28807 Cc: 28807@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) leo writes: > I am still on Emacs 27. Is Emacs 28 out on =E2=80=9Cstable=E2=80=9D? Emacs 28 is the current development branch of Emacs. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Fri Jun 20 19:45:59 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 03 Aug 2021 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator