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: Fri, 13 Oct 2017 19:16:08 +1100 Message-ID: <2681E59F-31EA-45BF-A6CF-A9486B4FE12D@halloleo.hailmail.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1507883361 31639 195.159.176.226 (13 Oct 2017 08:29:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 13 Oct 2017 08:29:21 +0000 (UTC) To: 28807@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 13 10:29:14 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 1e2vL9-0006n3-9s for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Oct 2017 10:29:07 +0200 Original-Received: from localhost ([::1]:48956 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2vLG-0003Yq-QY for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Oct 2017 04:29:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56477) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e2vL8-0003Ya-Hh for bug-gnu-emacs@gnu.org; Fri, 13 Oct 2017 04:29:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e2vL5-00062T-8v for bug-gnu-emacs@gnu.org; Fri, 13 Oct 2017 04:29:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56369) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e2vL5-000628-1g for bug-gnu-emacs@gnu.org; Fri, 13 Oct 2017 04:29:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e2vL4-0006Sm-JP for bug-gnu-emacs@gnu.org; Fri, 13 Oct 2017 04:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: leo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Oct 2017 08:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 28807 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.150788333024812 (code B ref -1); Fri, 13 Oct 2017 08:29:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Oct 2017 08:28:50 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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: 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 203B72484E for ; Fri, 13 Oct 2017 04:16:12 -0400 (EDT) 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-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 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:138327 Archived-At: 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))