From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sebastian Tennant Newsgroups: gmane.emacs.bugs Subject: bug#46813: 27.0.91; Form `(subdirs . nil)' in .dir-locals.el does not protect subdirectories Date: Sat, 27 Feb 2021 13:59:19 +0000 Message-ID: <87czwllih4.fsf@sebyte.me> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1343"; mail-complaints-to="usenet@ciao.gmane.io" To: 46813@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 27 15:00:53 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lG09N-0000GY-42 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Feb 2021 15:00:53 +0100 Original-Received: from localhost ([::1]:39472 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lG09M-0000rK-5p for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Feb 2021 09:00:52 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50340) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lG08Y-0000r6-Hi for bug-gnu-emacs@gnu.org; Sat, 27 Feb 2021 09:00:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60128) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lG08Y-00029W-9B for bug-gnu-emacs@gnu.org; Sat, 27 Feb 2021 09:00:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lG08Y-0000vz-6I for bug-gnu-emacs@gnu.org; Sat, 27 Feb 2021 09:00:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Sebastian Tennant Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Feb 2021 14:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46813 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16144343693510 (code B ref -1); Sat, 27 Feb 2021 14:00:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Feb 2021 13:59:29 +0000 Original-Received: from localhost ([127.0.0.1]:43441 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lG080-0000uX-Qc for submit@debbugs.gnu.org; Sat, 27 Feb 2021 08:59:29 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:40726) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lG07z-0000uP-UX for submit@debbugs.gnu.org; Sat, 27 Feb 2021 08:59:28 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50224) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lG07z-0000gd-Ko for bug-gnu-emacs@gnu.org; Sat, 27 Feb 2021 08:59:27 -0500 Original-Received: from forward4-smtp.messagingengine.com ([66.111.4.238]:36313) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lG07x-0001ga-HY for bug-gnu-emacs@gnu.org; Sat, 27 Feb 2021 08:59:27 -0500 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailforward.nyi.internal (Postfix) with ESMTP id 8DA241940DDC for ; Sat, 27 Feb 2021 08:59:21 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Sat, 27 Feb 2021 08:59:21 -0500 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-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=Ep+m80 26tVBACSY0TGb04MSIcwhU45fUNzUxykScn5k=; b=OcYnA7T7h+PqXEmQ/Miho5 nVJfVBZWpUW0YL3M4W/4bEllViEGqYfu74ve2l6jSC2ozudOLS39NAuj/nO1LD/d HB5vTeNbUcU4cBBDPY5uddhbuNFJ03vzRSeN7XGXDTN3jTMO0q5tp0t5/3/V7TDl 05YZh30GZ6qKH/82KEGt8YG8cI8c2Zm96uvnDEkTnmqCtLNN4AkOMNfhOqyGUrkn owOhnWUCGWfitTFsJ+4XxGTiM6dKalUMfr4CIM217wgzNVxrm2bqpFY6pmW3eJUC mDha/gl9TVGLYlaY1EtJI335dxhxTnOWQchQ5qtWbAhuMMG4UnXFAi81a80pJPmg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrleefgdehlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfggtgfgsehtqhertddttd ejnecuhfhrohhmpefuvggsrghsthhirghnucfvvghnnhgrnhhtuceoshguthesshgvsgih thgvrdhmvgeqnecuggftrfgrthhtvghrnhepffeulefhveduueetleefkeektdegjeevge fhffelkeetfffhhfehudeuffetgefgnecukfhppeekuddrudekjedrvddtrddvgeenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehsvggshihtvg dorhgvthhurhhnqdhprghthhesfhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Original-Received: from latignude.lan (24.20.187.81.in-addr.arpa [81.187.20.24]) by mail.messagingengine.com (Postfix) with ESMTPA id 48BB51080054 for ; Sat, 27 Feb 2021 08:59:21 -0500 (EST) Original-Received: from sebyte by latignude.lan with local (Exim 4.92) (envelope-from ) id 1lG07r-0002hO-HV for bug-gnu-emacs@gnu.org; Sat, 27 Feb 2021 13:59:19 +0000 Received-SPF: neutral client-ip=66.111.4.238; envelope-from=sebyte+return-path@fastmail.com; helo=forward4-smtp.messagingengine.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_NEUTRAL=0.779 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:200948 Archived-At: Steps to reproduce: 1. $ emacs -Q 2. M-x ielm RET 3. ELISP> (mkdir "tmp/sub" 'parents) nil 4. ELISP> (with-temp-file "tmp/.dir-locals.el" (insert "((nil . ((foo . bar) (subdirs . nil))))\n")) nil 5. ELISP> (with-temp-file "tmp/sub/baz" (insert "quux")) nil 6. ELISP> (find-file "tmp/sub/baz") # According to the sexp written to file tmp/.dir-locals.el in 4, variable `foo' should only be bound to `bar' in files under tmp/. However, when file tmp/sub/baz is visited in 6, the local variables list includes the binding 'foo : bar', deemed to be risky. The relevant section of (info "(emacs) Directory Variables") reads: "The special =E2=80=98subdirs=E2=80=99 element is not a variable, but a sp= ecial keyword which indicates that the [...] settings are only to be applied in the current directory, not in any subdirectories." Bug, documentation bug or thinko? In GNU Emacs 27.0.91 (build 2, x86_64-pc-linux-gnu) of 2021-02-26 built on latignude Repository revision: 0278741676e2eca89ecf085344be6bc4fd586396 Repository branch: emacs-27 System Description: Debian GNU/Linux 10 (buster) Configured using: 'configure -C --prefix=3D/home/sebyte/emacs/emacs-27 --enable-check-lisp-object-type --disable-acl --without-dbus --without-gconf --without-gif --without-gsettings --without-jpeg --without-png --without-rsvg --without-selinux --without-sound --without-tiff --without-x --without-xpm' Configured features: GPM NOTIFY INOTIFY GNUTLS LIBXML2 ZLIB XIM MODULES THREADS LIBSYSTEMD JSON PDUMPER LCMS2 GMP Important settings: value of $LC_COLLATE: POSIX value of $LC_TIME: POSIX value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: c5-mode: t shell-dirtrack-mode: t save-place-mode: t global-hi-lock-mode: t hi-lock-mode: t winner-mode: t savehist-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t Load-path shadows: /home/sebyte/emacs/src-emacs-27/lisp/obsolete/iswitchb hides /home/sebyte/e= lisp/load-path-appended/lib/iswitchb /home/sebyte/emacs/src-emacs-27/lisp/misc hides /home/sebyte/elisp/load-pat= h-appended/lib/misc Features: (pulse misearch multi-isearch find-lisp texinfo add-log vc-git bug-reference shadow sort mail-extr emacsbug message rmc puny rfc822 mml mml-sec epa epg epg-config gnus-util rmail rmail-loaddefs text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils dired-aux eieio-opt speedbar sb-image ezimage image dframe ielm find-dired grep debug backtrace find-func mule-util info cl-print help-fns radix-tree vc-svn vc-fossil vc vc-dispatcher pb term disp-table ehelp rvlc ucs-hacks quail svnhacks svndirs rsync mashfile-mode pcase sh-script smie executable rx c5 ifi-loaddefs psvn tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell pcomplete parse-time iso8601 time-date ls-lisp format-spec server smerge-mode diff-mode diff ffap dired-x dired dired-loaddefs anaphora slime-fancy slime-indentation slime-cl-indent cl-indent slime-trace-dialog slime-fontifying-fu slime-package-fu slime-references slime-compiler-notes-tree slime-scratch slime-presentations advice bridge slime-macrostep macrostep slime-mdot-fu slime-enclosing-context slime-fuzzy slime-fancy-trace slime-fancy-inspector slime-c-p-c slime-editing-commands slime-autodoc slime-repl elp slime-parse slime derived cl-extra help-mode edmacro kmacro lisp-mnt gud apropos compile tool-bar etags fileloop generator xref project arc-mode archive-mode noutline outline easy-mmode pp comint regexp-opt ansi-color hyperspec thingatpt cl slime-autoloads saveplace hi-lock winner ring savehist package easymenu browse-url url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer 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 composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray 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 threads inotify lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 281388 39472) (symbols 48 20552 1) (strings 32 71994 5103) (string-bytes 1 2079872) (vectors 16 31989) (vector-slots 8 1145219 166804) (floats 8 126 292) (intervals 56 1454 559) (buffers 1000 76))