X-Loop: help-debbugs@HIDDEN Subject: bug#75890: 31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el Resent-From: =?UTF-8?Q?Bj=C3=B6rn?= Bidar <bjorn.bidar@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 27 Jan 2025 09:48:02 +0000 Resent-Message-ID: <handler.75890.B.173797125011625 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 75890 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 75890 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.173797125011625 (code B ref -1); Mon, 27 Jan 2025 09:48:02 +0000 Received: (at submit) by debbugs.gnu.org; 27 Jan 2025 09:47:30 +0000 Received: from localhost ([127.0.0.1]:59405 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tcLiL-00031Q-AE for submit <at> debbugs.gnu.org; Mon, 27 Jan 2025 04:47:29 -0500 Received: from lists.gnu.org ([2001:470:142::17]:51554) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <bjorn.bidar@HIDDEN>) id 1tcLiI-00030k-OK for submit <at> debbugs.gnu.org; Mon, 27 Jan 2025 04:47:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <bjorn.bidar@HIDDEN>) id 1tcLhv-0007Bw-OR for bug-gnu-emacs@HIDDEN; Mon, 27 Jan 2025 04:47:03 -0500 Received: from thaodan.de ([185.216.177.71]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <bjorn.bidar@HIDDEN>) id 1tcLhr-0005sk-TK for bug-gnu-emacs@HIDDEN; Mon, 27 Jan 2025 04:47:03 -0500 Received: from odin (dsl-trebng12-50dc7b-49.dhcp.inet.fi [80.220.123.49]) by thaodan.de (Postfix) with ESMTPSA id E9B5AD00099 for <bug-gnu-emacs@HIDDEN>; Mon, 27 Jan 2025 11:46:55 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail; t=1737971216; bh=+YzhYa/zpCYXOmSh57Sid51O48Vu8dpt6WWv+JoyOBc=; h=From:To:Subject:Date; b=xh3BalAZfbFAaDsVqOn+i7ZaIdP1orOXEG9UaudlmKaLieRZ4A+nNxu7bgWY2RwNP KsMZUTHcyVuciXQ9B4ecbN6Kj4myuaeM4gksfVnnP8DVTECctAa/VctaRLVKx+Njpo pI6eIY9Gz5ZKRxK4gpH3OuTr7i8sYIOn61ADvtcmTu5Mvz+feDSRL93uA9Srrsq7q3 BYwAtwyxTvNXN5MO4ZDSdN4EkReDNrHHTKp3nvlEX5tTqlW+XHls7L9CzqJ+5DpEbY snztgo3uTY6VCPS06ukjL/Tdc7pWjcxgqK29KS3sd7LFR+ZKj/txkOi8KI3lMId95g lj2Df9bow66uBema99nlTou12WX9DtB6jzMlZS5ZQ4D7+SDcobOeYBCisOUL6WTlAK vM9cYpkt4+o/CD9i2IYpXoNwsJnKMjFgnER64bjTgkWwtrtk+q/jMqhWRNUwX+x2Fk j/ZmBsy72D7QXA+S+b/Qq4uVj+Uk30x44frPhjCEEUT8LEPoynXHQeSS85Wj9IzVBZ 1kRdUhZ7jP/BVmJkVFuideKJmgQC3WwlMgDNL7CrsZ9rR0a3IdAvueRGPHercj1rk4 pyloOhUGtNdEWPrGu/gUuq2G1u54jsKenzEN9pl1NFmWwQy8SsDNdYYoIeeilOuj/G +b1qIe7PQnyT/fvqSrrLLTZI= From: =?UTF-8?Q?Bj=C3=B6rn?= Bidar <bjorn.bidar@HIDDEN> Autocrypt: addr=bjorn.bidar@HIDDEN; prefer-encrypt=nopreference; keydata= mDMEZNfpPhYJKwYBBAHaRw8BAQdACBEmr+0xwIIHZfIDlZmm7sa+lHHSb0g9FZrN6qE6ru60JUJq w7ZybiBCaWRhciA8Ympvcm4uYmlkYXJAdGhhb2Rhbi5kZT6IlgQTFgoAPgIbAwULCQgHAgIiAgYV CgkICwIEFgIDAQIeBwIXgBYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1/YmAhkBAAoJEFwbdKFl HF9oB9cBAJoIIGQKXm4cpap+Flxc/EGnYl0123lcEyzuduqvlDT0AQC3OlFKm/OiqJ8IMTrzJRZ8 phFssTkSrrFXnM2jm5PYDoiTBBMWCgA7FiEEUfF263VHMB6nKairXBt0oWUcX2gFAmTX6T4CGwMF CwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQXBt0oWUcX2hbCQEAtru7kvM8hi8zo6z9ux2h K+B5xViKuo7Z8K3IXuK5ugwA+wUfKzomzdBPhfxDsqLcEziGRxoyx0Q3ld9aermBUccHtBxCasO2 cm4gQmlkYXIgPG1lQHRoYW9kYW4uZGU+iJMEExYKADsCGwMFCwkIBwICIgIGFQoJCAsCBBYCAwEC HgcCF4AWIQRR8XbrdUcwHqcpqKtcG3ShZRxfaAUCZNf2FQAKCRBcG3ShZRxfaCzSAP4hZ7cSp0YN XYpcjHdsySh2MuBhhoPeLGXs+2kSiqBiOwD/TP8AgPEg/R+SI9GI9on7fBJJ0mp2IT8kZ2rhDOjg gA6IkwQTFgoAOxYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1+ntAhsDBQsJCAcCAiICBhUKCQgL AgQWAgMBAh4HAheAAAoJEFwbdKFlHF9oBgwA/iQHwe0VL4Df4GGTYlNjMSHFlIkBmN4UfYGLYj3E TrOUAQC51M+M3cjsL8WHdpBz6VAo6df9d+rVwhQ9vQuFHqevArg4BGTX6T4SCisGAQQBl1UBBQEB B0Cbohc3JEfn005/cm0AOGjSsW1ZxAkgaoVNjbpqk4MgNAMBCAeIeAQYFgoAIBYhBFHxdut1RzAe pymoq1wbdKFlHF9oBQJk1+k+AhsMAAoJEFwbdKFlHF9ooHABAKGmrGBic/Vys3BBrOQiRB3Z7izO HwhqTRpAqFZtXS2nAQDZhp/5aYw1TZjTzkm1KVt9QiYnjd/MvxRE9iaY6x4mDbgzBGTX6T4WCSsG AQQB2kcPAQEHQAgRJq/tMcCCB2XyA5WZpu7GvpRx0m9IPRWazeqhOq7uiO8EGBYKACAWIQRR8Xbr dUcwHqcpqKtcG3ShZRxfaAUCZNf71AIbIgCBCRBcG3ShZRxfaHYgBBkWCgAdFiEEUfF263VHMB6n KairXBt0oWUcX2gFAmTX+9QACgkQXBt0oWUcX2jeSwD6AtWn0cuo8IF35YRo4o3cDRJnUfJnbvJy GxyCDThR+zYBAKG6/jdwmZkBQZKslnDAbMMd2WfiZZT5JW3IWC4EaKMO7HkBAKYPGZ3UbfkRvfFK S+pQ9CgtNfkSJQBtT1Ob7Y6nsacgAQCpyXN7yppmhW/oBgivITPy9Lkg+V4NK9WZYZCU9Q7LBA== Date: Mon, 27 Jan 2025 11:46:54 +0200 Message-ID: <878qqwa8s1.fsf@> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.216.177.71; envelope-from=bjorn.bidar@HIDDEN; helo=thaodan.de X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, INVALID_MSGID=0.568, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 2.1 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.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 the administrator of that system for details. Content preview: I noticed that dir-locals-2.el is only considered if it is in the directory that dir-locals.el is and vice versa. What I mean is that if ~/dev/gnu contains dir-locals-2.el and ~/dev/gnu/emacs contains .dir-locals.el only the latter is read. Similar if ~/dev/gnu/emacs/src/.dir-locals-2.el, the .dir-locals.el in ~/ [...] Content analysis details: (2.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 T_SCC_BODY_TEXT_LINE No description available. 1.2 INVALID_MSGID Message-Id is not valid, according to RFC 2822 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: 1.1 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.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 the administrator of that system for details. Content preview: I noticed that dir-locals-2.el is only considered if it is in the directory that dir-locals.el is and vice versa. What I mean is that if ~/dev/gnu contains dir-locals-2.el and ~/dev/gnu/emacs contains .dir-locals.el only the latter is read. Similar if ~/dev/gnu/emacs/src/.dir-locals-2.el, the .dir-locals.el in ~/ [...] Content analysis details: (1.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 T_SCC_BODY_TEXT_LINE No description available. 1.2 INVALID_MSGID Message-Id is not valid, according to RFC 2822 -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager I noticed that dir-locals-2.el is only considered if it is in the directory that dir-locals.el is and vice versa. What I mean is that if ~/dev/gnu contains dir-locals-2.el and ~/dev/gnu/emacs contains .dir-locals.el only the latter is read. Similar if ~/dev/gnu/emacs/src/.dir-locals-2.el, the .dir-locals.el in ~/dev/emacs is not read. The manual does not specific that behavior but says it will traverse the directory tree down, from the point of view of the file which the variables are supposed to be applied to, and pick the first appropriate file but it doesn't say it will do that for both files at the same time. In GNU Emacs 31.0.50 (build 1, x86_64-suse-linux-gnu, GTK+ Version 3.24.43, cairo version 1.18.2) Repository revision: eaf5bf736e1dd5eb977a16a3f1b3dfd3da3c4612 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101015 System Description: openSUSE Tumbleweed Configured using: 'configure --disable-build-details --without-pop --with-mailutils --without-hesiod --with-gameuser=:games --with-kerberos --with-kerberos5 --with-file-notification=inotify --with-modules --enable-autodepend --enable-link-time-optimization --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --localstatedir=/var --sharedstatedir=/var/lib --libexecdir=/usr/libexec --with-file-notification=yes --libdir=/usr/lib64 --with-native-compilation=aot --enable-locallisppath=/usr/share/emacs/31.0.50/site-lisp:/usr/share/emacs/site-lisp --with-x --with-xim --with-sound --with-xpm --with-jpeg --with-tiff --with-gif --with-png --with-rsvg --with-dbus --with-xft --without-gpm --with-tree-sitter --with-x-toolkit=gtk --without-pgtk --with-toolkit-scroll-bars --x-includes=/usr/include --x-libraries=/usr/lib64 --with-libotf --with-m17n-flt --with-cairo --build=x86_64-suse-linux --with-dumping=pdumper build_alias=x86_64-suse-linux 'CC=sccache cc' 'CFLAGS=-O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -march=znver3 -mmmx -mpopcnt -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -mavx2 -msse4a -mno-fma4 -mno-xop -mfma -mbmi -mbmi2 -maes -mpclmul -mno-gfni -mvpclmulqdq -mno-3dnow -madx -mabm -mno-cldemote -mclflushopt -mclwb -mclzero -mcx16 -mno-enqcmd -mf16c -mfsgsbase -mfxsr -mno-hle -msahf -mno-lwp -mlzcnt -mmovbe -mno-movdir64b -mno-movdiri -mmwaitx -mno-pconfig -mpku -mprfchw -mno-ptwrite -mrdpid -mrdrnd -mrdseed -mno-rtm -mno-serialize -mno-sgx -msha -mshstk -mno-tbm -mno-tsxldtrk -mvaes -mno-waitpkg -mwbnoinvd -mxsave -mxsavec -mxsaveopt -mxsaves -mno-amx-tile -mno-amx-int8 -mno-amx-bf16 -mno-uintr -mno-hreset -mno-kl -mno-widekl -mno-avxvnni -mno-avxifma -mno-avxvnniint8 -mno-avxneconvert -mno-cmpccxadd -mno-amx-fp16 -mno-prefetchi -mno-raoint -mno-amx-complex --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=znver3 -fno-optimize-sibling-calls -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -D_GNU_SOURCE -DGDK_DISABLE_DEPRECATION_WARNINGS -DGLIB_DISABLE_DEPRECATION_WARNINGS -pipe -Wno-pointer-sign -Wno-unused-variable -Wno-unused-label -DPDMP_BASE='\''"emacs-gtk"'\''' LDFLAGS=-Wl,-O2 'CXX=sccache c++' PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB Important settings: value of $LC_MONETARY: fi_FI.UTF-8 value of $LC_NUMERIC: POSIX value of $LANG: en_GB.UTF-8 value of $XMODIFIERS: @im=local locale-coding-system: utf-8-unix
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: =?UTF-8?Q?Bj=C3=B6rn?= Bidar <bjorn.bidar@HIDDEN> Subject: bug#75890: Acknowledgement (31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el) Message-ID: <handler.75890.B.173797125011625.ack <at> debbugs.gnu.org> References: <878qqwa8s1.fsf@> X-Gnu-PR-Message: ack 75890 X-Gnu-PR-Package: emacs Reply-To: 75890 <at> debbugs.gnu.org Date: Mon, 27 Jan 2025 09:48:02 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 75890 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 75890: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D75890 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Eli Zaretskii <eliz@HIDDEN> Subject: bug#75890: closed (31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el) CC: tracker <at> debbugs.gnu.org Message-ID: <handler.75890.D75890.17379840549823.ackdone <at> debbugs.gnu.org> References: <86tt9kpf4w.fsf@HIDDEN> <878qqwa8s1.fsf@> X-Gnu-PR-Message: closed 75890 X-Gnu-PR-Package: emacs Date: Mon, 27 Jan 2025 13:21:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1737984063-9855-0" This is a multi-part message in MIME format... ------------=_1737984063-9855-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Mon, 27 Jan 2025 15:20:31 +0200 with message-id <86tt9kpf4w.fsf@HIDDEN> and subject line Re: bug#75890: 31.0.50; dir-locals{-2}.el is only found in= directory containing dir-locals.el has caused the debbugs.gnu.org bug report #75890, regarding 31.0.50; dir-locals{-2}.el is only found in directory containing = dir-locals.el to be marked as done. (If you believe you have received this mail in error, please contact help-debbugs@HIDDEN) --=20 75890: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D75890 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems ------------=_1737984063-9855-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 27 Jan 2025 09:47:30 +0000 Received: from localhost ([127.0.0.1]:59405 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tcLiL-00031Q-AE for submit <at> debbugs.gnu.org; Mon, 27 Jan 2025 04:47:29 -0500 Received: from lists.gnu.org ([2001:470:142::17]:51554) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <bjorn.bidar@HIDDEN>) id 1tcLiI-00030k-OK for submit <at> debbugs.gnu.org; Mon, 27 Jan 2025 04:47:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <bjorn.bidar@HIDDEN>) id 1tcLhv-0007Bw-OR for bug-gnu-emacs@HIDDEN; Mon, 27 Jan 2025 04:47:03 -0500 Received: from thaodan.de ([185.216.177.71]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <bjorn.bidar@HIDDEN>) id 1tcLhr-0005sk-TK for bug-gnu-emacs@HIDDEN; Mon, 27 Jan 2025 04:47:03 -0500 Received: from odin (dsl-trebng12-50dc7b-49.dhcp.inet.fi [80.220.123.49]) by thaodan.de (Postfix) with ESMTPSA id E9B5AD00099 for <bug-gnu-emacs@HIDDEN>; Mon, 27 Jan 2025 11:46:55 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail; t=1737971216; bh=+YzhYa/zpCYXOmSh57Sid51O48Vu8dpt6WWv+JoyOBc=; h=From:To:Subject:Date; b=xh3BalAZfbFAaDsVqOn+i7ZaIdP1orOXEG9UaudlmKaLieRZ4A+nNxu7bgWY2RwNP KsMZUTHcyVuciXQ9B4ecbN6Kj4myuaeM4gksfVnnP8DVTECctAa/VctaRLVKx+Njpo pI6eIY9Gz5ZKRxK4gpH3OuTr7i8sYIOn61ADvtcmTu5Mvz+feDSRL93uA9Srrsq7q3 BYwAtwyxTvNXN5MO4ZDSdN4EkReDNrHHTKp3nvlEX5tTqlW+XHls7L9CzqJ+5DpEbY snztgo3uTY6VCPS06ukjL/Tdc7pWjcxgqK29KS3sd7LFR+ZKj/txkOi8KI3lMId95g lj2Df9bow66uBema99nlTou12WX9DtB6jzMlZS5ZQ4D7+SDcobOeYBCisOUL6WTlAK vM9cYpkt4+o/CD9i2IYpXoNwsJnKMjFgnER64bjTgkWwtrtk+q/jMqhWRNUwX+x2Fk j/ZmBsy72D7QXA+S+b/Qq4uVj+Uk30x44frPhjCEEUT8LEPoynXHQeSS85Wj9IzVBZ 1kRdUhZ7jP/BVmJkVFuideKJmgQC3WwlMgDNL7CrsZ9rR0a3IdAvueRGPHercj1rk4 pyloOhUGtNdEWPrGu/gUuq2G1u54jsKenzEN9pl1NFmWwQy8SsDNdYYoIeeilOuj/G +b1qIe7PQnyT/fvqSrrLLTZI= From: =?utf-8?Q?Bj=C3=B6rn?= Bidar <bjorn.bidar@HIDDEN> To: bug-gnu-emacs@HIDDEN Subject: 31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el X-Debbugs-Cc: Autocrypt: addr=bjorn.bidar@HIDDEN; prefer-encrypt=nopreference; keydata= mDMEZNfpPhYJKwYBBAHaRw8BAQdACBEmr+0xwIIHZfIDlZmm7sa+lHHSb0g9FZrN6qE6ru60JUJq w7ZybiBCaWRhciA8Ympvcm4uYmlkYXJAdGhhb2Rhbi5kZT6IlgQTFgoAPgIbAwULCQgHAgIiAgYV CgkICwIEFgIDAQIeBwIXgBYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1/YmAhkBAAoJEFwbdKFl HF9oB9cBAJoIIGQKXm4cpap+Flxc/EGnYl0123lcEyzuduqvlDT0AQC3OlFKm/OiqJ8IMTrzJRZ8 phFssTkSrrFXnM2jm5PYDoiTBBMWCgA7FiEEUfF263VHMB6nKairXBt0oWUcX2gFAmTX6T4CGwMF CwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQXBt0oWUcX2hbCQEAtru7kvM8hi8zo6z9ux2h K+B5xViKuo7Z8K3IXuK5ugwA+wUfKzomzdBPhfxDsqLcEziGRxoyx0Q3ld9aermBUccHtBxCasO2 cm4gQmlkYXIgPG1lQHRoYW9kYW4uZGU+iJMEExYKADsCGwMFCwkIBwICIgIGFQoJCAsCBBYCAwEC HgcCF4AWIQRR8XbrdUcwHqcpqKtcG3ShZRxfaAUCZNf2FQAKCRBcG3ShZRxfaCzSAP4hZ7cSp0YN XYpcjHdsySh2MuBhhoPeLGXs+2kSiqBiOwD/TP8AgPEg/R+SI9GI9on7fBJJ0mp2IT8kZ2rhDOjg gA6IkwQTFgoAOxYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1+ntAhsDBQsJCAcCAiICBhUKCQgL AgQWAgMBAh4HAheAAAoJEFwbdKFlHF9oBgwA/iQHwe0VL4Df4GGTYlNjMSHFlIkBmN4UfYGLYj3E TrOUAQC51M+M3cjsL8WHdpBz6VAo6df9d+rVwhQ9vQuFHqevArg4BGTX6T4SCisGAQQBl1UBBQEB B0Cbohc3JEfn005/cm0AOGjSsW1ZxAkgaoVNjbpqk4MgNAMBCAeIeAQYFgoAIBYhBFHxdut1RzAe pymoq1wbdKFlHF9oBQJk1+k+AhsMAAoJEFwbdKFlHF9ooHABAKGmrGBic/Vys3BBrOQiRB3Z7izO HwhqTRpAqFZtXS2nAQDZhp/5aYw1TZjTzkm1KVt9QiYnjd/MvxRE9iaY6x4mDbgzBGTX6T4WCSsG AQQB2kcPAQEHQAgRJq/tMcCCB2XyA5WZpu7GvpRx0m9IPRWazeqhOq7uiO8EGBYKACAWIQRR8Xbr dUcwHqcpqKtcG3ShZRxfaAUCZNf71AIbIgCBCRBcG3ShZRxfaHYgBBkWCgAdFiEEUfF263VHMB6n KairXBt0oWUcX2gFAmTX+9QACgkQXBt0oWUcX2jeSwD6AtWn0cuo8IF35YRo4o3cDRJnUfJnbvJy GxyCDThR+zYBAKG6/jdwmZkBQZKslnDAbMMd2WfiZZT5JW3IWC4EaKMO7HkBAKYPGZ3UbfkRvfFK S+pQ9CgtNfkSJQBtT1Ob7Y6nsacgAQCpyXN7yppmhW/oBgivITPy9Lkg+V4NK9WZYZCU9Q7LBA== Date: Mon, 27 Jan 2025 11:46:54 +0200 Message-ID: <878qqwa8s1.fsf@> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.216.177.71; envelope-from=bjorn.bidar@HIDDEN; helo=thaodan.de X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, INVALID_MSGID=0.568, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 2.1 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.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 the administrator of that system for details. Content preview: I noticed that dir-locals-2.el is only considered if it is in the directory that dir-locals.el is and vice versa. What I mean is that if ~/dev/gnu contains dir-locals-2.el and ~/dev/gnu/emacs contains .dir-locals.el only the latter is read. Similar if ~/dev/gnu/emacs/src/.dir-locals-2.el, the .dir-locals.el in ~/ [...] Content analysis details: (2.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 T_SCC_BODY_TEXT_LINE No description available. 1.2 INVALID_MSGID Message-Id is not valid, according to RFC 2822 X-Debbugs-Envelope-To: submit 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: 1.1 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.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 the administrator of that system for details. Content preview: I noticed that dir-locals-2.el is only considered if it is in the directory that dir-locals.el is and vice versa. What I mean is that if ~/dev/gnu contains dir-locals-2.el and ~/dev/gnu/emacs contains .dir-locals.el only the latter is read. Similar if ~/dev/gnu/emacs/src/.dir-locals-2.el, the .dir-locals.el in ~/ [...] Content analysis details: (1.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 T_SCC_BODY_TEXT_LINE No description available. 1.2 INVALID_MSGID Message-Id is not valid, according to RFC 2822 -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager I noticed that dir-locals-2.el is only considered if it is in the directory that dir-locals.el is and vice versa. What I mean is that if ~/dev/gnu contains dir-locals-2.el and ~/dev/gnu/emacs contains .dir-locals.el only the latter is read. Similar if ~/dev/gnu/emacs/src/.dir-locals-2.el, the .dir-locals.el in ~/dev/emacs is not read. The manual does not specific that behavior but says it will traverse the directory tree down, from the point of view of the file which the variables are supposed to be applied to, and pick the first appropriate file but it doesn't say it will do that for both files at the same time. In GNU Emacs 31.0.50 (build 1, x86_64-suse-linux-gnu, GTK+ Version 3.24.43, cairo version 1.18.2) Repository revision: eaf5bf736e1dd5eb977a16a3f1b3dfd3da3c4612 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101015 System Description: openSUSE Tumbleweed Configured using: 'configure --disable-build-details --without-pop --with-mailutils --without-hesiod --with-gameuser=:games --with-kerberos --with-kerberos5 --with-file-notification=inotify --with-modules --enable-autodepend --enable-link-time-optimization --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --localstatedir=/var --sharedstatedir=/var/lib --libexecdir=/usr/libexec --with-file-notification=yes --libdir=/usr/lib64 --with-native-compilation=aot --enable-locallisppath=/usr/share/emacs/31.0.50/site-lisp:/usr/share/emacs/site-lisp --with-x --with-xim --with-sound --with-xpm --with-jpeg --with-tiff --with-gif --with-png --with-rsvg --with-dbus --with-xft --without-gpm --with-tree-sitter --with-x-toolkit=gtk --without-pgtk --with-toolkit-scroll-bars --x-includes=/usr/include --x-libraries=/usr/lib64 --with-libotf --with-m17n-flt --with-cairo --build=x86_64-suse-linux --with-dumping=pdumper build_alias=x86_64-suse-linux 'CC=sccache cc' 'CFLAGS=-O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -march=znver3 -mmmx -mpopcnt -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -mavx2 -msse4a -mno-fma4 -mno-xop -mfma -mbmi -mbmi2 -maes -mpclmul -mno-gfni -mvpclmulqdq -mno-3dnow -madx -mabm -mno-cldemote -mclflushopt -mclwb -mclzero -mcx16 -mno-enqcmd -mf16c -mfsgsbase -mfxsr -mno-hle -msahf -mno-lwp -mlzcnt -mmovbe -mno-movdir64b -mno-movdiri -mmwaitx -mno-pconfig -mpku -mprfchw -mno-ptwrite -mrdpid -mrdrnd -mrdseed -mno-rtm -mno-serialize -mno-sgx -msha -mshstk -mno-tbm -mno-tsxldtrk -mvaes -mno-waitpkg -mwbnoinvd -mxsave -mxsavec -mxsaveopt -mxsaves -mno-amx-tile -mno-amx-int8 -mno-amx-bf16 -mno-uintr -mno-hreset -mno-kl -mno-widekl -mno-avxvnni -mno-avxifma -mno-avxvnniint8 -mno-avxneconvert -mno-cmpccxadd -mno-amx-fp16 -mno-prefetchi -mno-raoint -mno-amx-complex --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=znver3 -fno-optimize-sibling-calls -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -D_GNU_SOURCE -DGDK_DISABLE_DEPRECATION_WARNINGS -DGLIB_DISABLE_DEPRECATION_WARNINGS -pipe -Wno-pointer-sign -Wno-unused-variable -Wno-unused-label -DPDMP_BASE='\''"emacs-gtk"'\''' LDFLAGS=-Wl,-O2 'CXX=sccache c++' PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB Important settings: value of $LC_MONETARY: fi_FI.UTF-8 value of $LC_NUMERIC: POSIX value of $LANG: en_GB.UTF-8 value of $XMODIFIERS: @im=local locale-coding-system: utf-8-unix ------------=_1737984063-9855-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 75890-done) by debbugs.gnu.org; 27 Jan 2025 13:20:54 +0000 Received: from localhost ([127.0.0.1]:59952 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tcP2s-0002YM-FM for submit <at> debbugs.gnu.org; Mon, 27 Jan 2025 08:20:54 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51760) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tcP2l-0002Xx-0Y for 75890-done <at> debbugs.gnu.org; Mon, 27 Jan 2025 08:20:47 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1tcP2b-0003Aw-QZ; Mon, 27 Jan 2025 08:20:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=SZdsvvyuCgdpJzrxUVhp+QJFt/BtRUJqCiWY9xDta3Y=; b=dzCXTeEN4FPNzazNFEen KGFOhbVue4pDNDJOOGM/c8hxsAn3T/e9ABjVk9DAeIHeON1CYcLGqPQPu1bWzj972MZbBkmIF5NHN wF1fzzpkao23vGrx8H7mFR2pr6K/L0OvUCV70ohqbjxTexGnM2LPVV4Ush1pl1dWEKtQi9cBjgG0W tv6aDpIwAqFFqnKVqSXDDIgYt/08yy009FGhgBvS7GKkqhMjM/pZt8ag3/lygI36Z16fVDoftvOMi N+QYLXANvHT/033ddIF+MWCiwDmo2VFG6UEHrJ2gjXpuwcMnjZP+sexKA6V+LhlG/mWyqWmDVl4hK qYMm/VunxQA5kg==; Date: Mon, 27 Jan 2025 15:20:31 +0200 Message-Id: <86tt9kpf4w.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: =?iso-8859-1?Q?Bj=F6rn?= Bidar <bjorn.bidar@HIDDEN> In-Reply-To: <878qqwa8s1.fsf@> (bug-gnu-emacs@HIDDEN) Subject: Re: bug#75890: 31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el References: <878qqwa8s1.fsf@> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 75890-done Cc: 75890-done <at> debbugs.gnu.org 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: -3.3 (---) > Date: Mon, 27 Jan 2025 11:46:54 +0200 > From: Björn Bidar via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN> > > > I noticed that dir-locals-2.el is only considered if it is in the directory > that dir-locals.el is and vice versa. > > What I mean is that if ~/dev/gnu contains dir-locals-2.el > and ~/dev/gnu/emacs contains .dir-locals.el only the latter is read. > Similar if ~/dev/gnu/emacs/src/.dir-locals-2.el, the .dir-locals.el > in ~/dev/emacs is not read. > > The manual does not specific that behavior but says it will traverse the > directory tree down, from the point of view of the file which the > variables are supposed to be applied to, and pick the first appropriate file but it doesn't > say it will do that for both files at the same time. Thanks, fixed on the emacs-30 branch, and closing the bug. ------------=_1737984063-9855-0--
MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: =?UTF-8?Q?Bj=C3=B6rn?= Bidar <bjorn.bidar@HIDDEN> Subject: bug#75890: closed (Re: bug#75890: 31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el) Message-ID: <handler.75890.D75890.17379840549823.notifdone <at> debbugs.gnu.org> References: <86tt9kpf4w.fsf@HIDDEN> <878qqwa8s1.fsf@> X-Gnu-PR-Message: they-closed 75890 X-Gnu-PR-Package: emacs Reply-To: 75890 <at> debbugs.gnu.org Date: Mon, 27 Jan 2025 13:21:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1737984063-9855-1" This is a multi-part message in MIME format... ------------=_1737984063-9855-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #75890: 31.0.50; dir-locals{-2}.el is only found in directory containing di= r-locals.el which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 75890 <at> debbugs.gnu.org. --=20 75890: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D75890 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems ------------=_1737984063-9855-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 75890-done) by debbugs.gnu.org; 27 Jan 2025 13:20:54 +0000 Received: from localhost ([127.0.0.1]:59952 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tcP2s-0002YM-FM for submit <at> debbugs.gnu.org; Mon, 27 Jan 2025 08:20:54 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51760) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tcP2l-0002Xx-0Y for 75890-done <at> debbugs.gnu.org; Mon, 27 Jan 2025 08:20:47 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1tcP2b-0003Aw-QZ; Mon, 27 Jan 2025 08:20:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=SZdsvvyuCgdpJzrxUVhp+QJFt/BtRUJqCiWY9xDta3Y=; b=dzCXTeEN4FPNzazNFEen KGFOhbVue4pDNDJOOGM/c8hxsAn3T/e9ABjVk9DAeIHeON1CYcLGqPQPu1bWzj972MZbBkmIF5NHN wF1fzzpkao23vGrx8H7mFR2pr6K/L0OvUCV70ohqbjxTexGnM2LPVV4Ush1pl1dWEKtQi9cBjgG0W tv6aDpIwAqFFqnKVqSXDDIgYt/08yy009FGhgBvS7GKkqhMjM/pZt8ag3/lygI36Z16fVDoftvOMi N+QYLXANvHT/033ddIF+MWCiwDmo2VFG6UEHrJ2gjXpuwcMnjZP+sexKA6V+LhlG/mWyqWmDVl4hK qYMm/VunxQA5kg==; Date: Mon, 27 Jan 2025 15:20:31 +0200 Message-Id: <86tt9kpf4w.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: =?iso-8859-1?Q?Bj=F6rn?= Bidar <bjorn.bidar@HIDDEN> In-Reply-To: <878qqwa8s1.fsf@> (bug-gnu-emacs@HIDDEN) Subject: Re: bug#75890: 31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el References: <878qqwa8s1.fsf@> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 75890-done Cc: 75890-done <at> debbugs.gnu.org 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: -3.3 (---) > Date: Mon, 27 Jan 2025 11:46:54 +0200 > From: Björn Bidar via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN> > > > I noticed that dir-locals-2.el is only considered if it is in the directory > that dir-locals.el is and vice versa. > > What I mean is that if ~/dev/gnu contains dir-locals-2.el > and ~/dev/gnu/emacs contains .dir-locals.el only the latter is read. > Similar if ~/dev/gnu/emacs/src/.dir-locals-2.el, the .dir-locals.el > in ~/dev/emacs is not read. > > The manual does not specific that behavior but says it will traverse the > directory tree down, from the point of view of the file which the > variables are supposed to be applied to, and pick the first appropriate file but it doesn't > say it will do that for both files at the same time. Thanks, fixed on the emacs-30 branch, and closing the bug. ------------=_1737984063-9855-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 27 Jan 2025 09:47:30 +0000 Received: from localhost ([127.0.0.1]:59405 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tcLiL-00031Q-AE for submit <at> debbugs.gnu.org; Mon, 27 Jan 2025 04:47:29 -0500 Received: from lists.gnu.org ([2001:470:142::17]:51554) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <bjorn.bidar@HIDDEN>) id 1tcLiI-00030k-OK for submit <at> debbugs.gnu.org; Mon, 27 Jan 2025 04:47:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <bjorn.bidar@HIDDEN>) id 1tcLhv-0007Bw-OR for bug-gnu-emacs@HIDDEN; Mon, 27 Jan 2025 04:47:03 -0500 Received: from thaodan.de ([185.216.177.71]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <bjorn.bidar@HIDDEN>) id 1tcLhr-0005sk-TK for bug-gnu-emacs@HIDDEN; Mon, 27 Jan 2025 04:47:03 -0500 Received: from odin (dsl-trebng12-50dc7b-49.dhcp.inet.fi [80.220.123.49]) by thaodan.de (Postfix) with ESMTPSA id E9B5AD00099 for <bug-gnu-emacs@HIDDEN>; Mon, 27 Jan 2025 11:46:55 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail; t=1737971216; bh=+YzhYa/zpCYXOmSh57Sid51O48Vu8dpt6WWv+JoyOBc=; h=From:To:Subject:Date; b=xh3BalAZfbFAaDsVqOn+i7ZaIdP1orOXEG9UaudlmKaLieRZ4A+nNxu7bgWY2RwNP KsMZUTHcyVuciXQ9B4ecbN6Kj4myuaeM4gksfVnnP8DVTECctAa/VctaRLVKx+Njpo pI6eIY9Gz5ZKRxK4gpH3OuTr7i8sYIOn61ADvtcmTu5Mvz+feDSRL93uA9Srrsq7q3 BYwAtwyxTvNXN5MO4ZDSdN4EkReDNrHHTKp3nvlEX5tTqlW+XHls7L9CzqJ+5DpEbY snztgo3uTY6VCPS06ukjL/Tdc7pWjcxgqK29KS3sd7LFR+ZKj/txkOi8KI3lMId95g lj2Df9bow66uBema99nlTou12WX9DtB6jzMlZS5ZQ4D7+SDcobOeYBCisOUL6WTlAK vM9cYpkt4+o/CD9i2IYpXoNwsJnKMjFgnER64bjTgkWwtrtk+q/jMqhWRNUwX+x2Fk j/ZmBsy72D7QXA+S+b/Qq4uVj+Uk30x44frPhjCEEUT8LEPoynXHQeSS85Wj9IzVBZ 1kRdUhZ7jP/BVmJkVFuideKJmgQC3WwlMgDNL7CrsZ9rR0a3IdAvueRGPHercj1rk4 pyloOhUGtNdEWPrGu/gUuq2G1u54jsKenzEN9pl1NFmWwQy8SsDNdYYoIeeilOuj/G +b1qIe7PQnyT/fvqSrrLLTZI= From: =?utf-8?Q?Bj=C3=B6rn?= Bidar <bjorn.bidar@HIDDEN> To: bug-gnu-emacs@HIDDEN Subject: 31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el X-Debbugs-Cc: Autocrypt: addr=bjorn.bidar@HIDDEN; prefer-encrypt=nopreference; keydata= mDMEZNfpPhYJKwYBBAHaRw8BAQdACBEmr+0xwIIHZfIDlZmm7sa+lHHSb0g9FZrN6qE6ru60JUJq w7ZybiBCaWRhciA8Ympvcm4uYmlkYXJAdGhhb2Rhbi5kZT6IlgQTFgoAPgIbAwULCQgHAgIiAgYV CgkICwIEFgIDAQIeBwIXgBYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1/YmAhkBAAoJEFwbdKFl HF9oB9cBAJoIIGQKXm4cpap+Flxc/EGnYl0123lcEyzuduqvlDT0AQC3OlFKm/OiqJ8IMTrzJRZ8 phFssTkSrrFXnM2jm5PYDoiTBBMWCgA7FiEEUfF263VHMB6nKairXBt0oWUcX2gFAmTX6T4CGwMF CwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQXBt0oWUcX2hbCQEAtru7kvM8hi8zo6z9ux2h K+B5xViKuo7Z8K3IXuK5ugwA+wUfKzomzdBPhfxDsqLcEziGRxoyx0Q3ld9aermBUccHtBxCasO2 cm4gQmlkYXIgPG1lQHRoYW9kYW4uZGU+iJMEExYKADsCGwMFCwkIBwICIgIGFQoJCAsCBBYCAwEC HgcCF4AWIQRR8XbrdUcwHqcpqKtcG3ShZRxfaAUCZNf2FQAKCRBcG3ShZRxfaCzSAP4hZ7cSp0YN XYpcjHdsySh2MuBhhoPeLGXs+2kSiqBiOwD/TP8AgPEg/R+SI9GI9on7fBJJ0mp2IT8kZ2rhDOjg gA6IkwQTFgoAOxYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1+ntAhsDBQsJCAcCAiICBhUKCQgL AgQWAgMBAh4HAheAAAoJEFwbdKFlHF9oBgwA/iQHwe0VL4Df4GGTYlNjMSHFlIkBmN4UfYGLYj3E TrOUAQC51M+M3cjsL8WHdpBz6VAo6df9d+rVwhQ9vQuFHqevArg4BGTX6T4SCisGAQQBl1UBBQEB B0Cbohc3JEfn005/cm0AOGjSsW1ZxAkgaoVNjbpqk4MgNAMBCAeIeAQYFgoAIBYhBFHxdut1RzAe pymoq1wbdKFlHF9oBQJk1+k+AhsMAAoJEFwbdKFlHF9ooHABAKGmrGBic/Vys3BBrOQiRB3Z7izO HwhqTRpAqFZtXS2nAQDZhp/5aYw1TZjTzkm1KVt9QiYnjd/MvxRE9iaY6x4mDbgzBGTX6T4WCSsG AQQB2kcPAQEHQAgRJq/tMcCCB2XyA5WZpu7GvpRx0m9IPRWazeqhOq7uiO8EGBYKACAWIQRR8Xbr dUcwHqcpqKtcG3ShZRxfaAUCZNf71AIbIgCBCRBcG3ShZRxfaHYgBBkWCgAdFiEEUfF263VHMB6n KairXBt0oWUcX2gFAmTX+9QACgkQXBt0oWUcX2jeSwD6AtWn0cuo8IF35YRo4o3cDRJnUfJnbvJy GxyCDThR+zYBAKG6/jdwmZkBQZKslnDAbMMd2WfiZZT5JW3IWC4EaKMO7HkBAKYPGZ3UbfkRvfFK S+pQ9CgtNfkSJQBtT1Ob7Y6nsacgAQCpyXN7yppmhW/oBgivITPy9Lkg+V4NK9WZYZCU9Q7LBA== Date: Mon, 27 Jan 2025 11:46:54 +0200 Message-ID: <878qqwa8s1.fsf@> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.216.177.71; envelope-from=bjorn.bidar@HIDDEN; helo=thaodan.de X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, INVALID_MSGID=0.568, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 2.1 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.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 the administrator of that system for details. Content preview: I noticed that dir-locals-2.el is only considered if it is in the directory that dir-locals.el is and vice versa. What I mean is that if ~/dev/gnu contains dir-locals-2.el and ~/dev/gnu/emacs contains .dir-locals.el only the latter is read. Similar if ~/dev/gnu/emacs/src/.dir-locals-2.el, the .dir-locals.el in ~/ [...] Content analysis details: (2.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 T_SCC_BODY_TEXT_LINE No description available. 1.2 INVALID_MSGID Message-Id is not valid, according to RFC 2822 X-Debbugs-Envelope-To: submit 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: 1.1 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.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 the administrator of that system for details. Content preview: I noticed that dir-locals-2.el is only considered if it is in the directory that dir-locals.el is and vice versa. What I mean is that if ~/dev/gnu contains dir-locals-2.el and ~/dev/gnu/emacs contains .dir-locals.el only the latter is read. Similar if ~/dev/gnu/emacs/src/.dir-locals-2.el, the .dir-locals.el in ~/ [...] Content analysis details: (1.1 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 T_SCC_BODY_TEXT_LINE No description available. 1.2 INVALID_MSGID Message-Id is not valid, according to RFC 2822 -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager I noticed that dir-locals-2.el is only considered if it is in the directory that dir-locals.el is and vice versa. What I mean is that if ~/dev/gnu contains dir-locals-2.el and ~/dev/gnu/emacs contains .dir-locals.el only the latter is read. Similar if ~/dev/gnu/emacs/src/.dir-locals-2.el, the .dir-locals.el in ~/dev/emacs is not read. The manual does not specific that behavior but says it will traverse the directory tree down, from the point of view of the file which the variables are supposed to be applied to, and pick the first appropriate file but it doesn't say it will do that for both files at the same time. In GNU Emacs 31.0.50 (build 1, x86_64-suse-linux-gnu, GTK+ Version 3.24.43, cairo version 1.18.2) Repository revision: eaf5bf736e1dd5eb977a16a3f1b3dfd3da3c4612 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101015 System Description: openSUSE Tumbleweed Configured using: 'configure --disable-build-details --without-pop --with-mailutils --without-hesiod --with-gameuser=:games --with-kerberos --with-kerberos5 --with-file-notification=inotify --with-modules --enable-autodepend --enable-link-time-optimization --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --localstatedir=/var --sharedstatedir=/var/lib --libexecdir=/usr/libexec --with-file-notification=yes --libdir=/usr/lib64 --with-native-compilation=aot --enable-locallisppath=/usr/share/emacs/31.0.50/site-lisp:/usr/share/emacs/site-lisp --with-x --with-xim --with-sound --with-xpm --with-jpeg --with-tiff --with-gif --with-png --with-rsvg --with-dbus --with-xft --without-gpm --with-tree-sitter --with-x-toolkit=gtk --without-pgtk --with-toolkit-scroll-bars --x-includes=/usr/include --x-libraries=/usr/lib64 --with-libotf --with-m17n-flt --with-cairo --build=x86_64-suse-linux --with-dumping=pdumper build_alias=x86_64-suse-linux 'CC=sccache cc' 'CFLAGS=-O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -march=znver3 -mmmx -mpopcnt -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mavx -mavx2 -msse4a -mno-fma4 -mno-xop -mfma -mbmi -mbmi2 -maes -mpclmul -mno-gfni -mvpclmulqdq -mno-3dnow -madx -mabm -mno-cldemote -mclflushopt -mclwb -mclzero -mcx16 -mno-enqcmd -mf16c -mfsgsbase -mfxsr -mno-hle -msahf -mno-lwp -mlzcnt -mmovbe -mno-movdir64b -mno-movdiri -mmwaitx -mno-pconfig -mpku -mprfchw -mno-ptwrite -mrdpid -mrdrnd -mrdseed -mno-rtm -mno-serialize -mno-sgx -msha -mshstk -mno-tbm -mno-tsxldtrk -mvaes -mno-waitpkg -mwbnoinvd -mxsave -mxsavec -mxsaveopt -mxsaves -mno-amx-tile -mno-amx-int8 -mno-amx-bf16 -mno-uintr -mno-hreset -mno-kl -mno-widekl -mno-avxvnni -mno-avxifma -mno-avxvnniint8 -mno-avxneconvert -mno-cmpccxadd -mno-amx-fp16 -mno-prefetchi -mno-raoint -mno-amx-complex --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=512 -mtune=znver3 -fno-optimize-sibling-calls -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -D_GNU_SOURCE -DGDK_DISABLE_DEPRECATION_WARNINGS -DGLIB_DISABLE_DEPRECATION_WARNINGS -pipe -Wno-pointer-sign -Wno-unused-variable -Wno-unused-label -DPDMP_BASE='\''"emacs-gtk"'\''' LDFLAGS=-Wl,-O2 'CXX=sccache c++' PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB Important settings: value of $LC_MONETARY: fi_FI.UTF-8 value of $LC_NUMERIC: POSIX value of $LANG: en_GB.UTF-8 value of $XMODIFIERS: @im=local locale-coding-system: utf-8-unix ------------=_1737984063-9855-1--
X-Loop: help-debbugs@HIDDEN Subject: bug#75890: 31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el Resent-From: =?UTF-8?Q?Bj=C3=B6rn?= Bidar <bjorn.bidar@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 27 Jan 2025 23:48:01 +0000 Resent-Message-ID: <handler.75890.D75890.17380216777397 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75890 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: 75890-done <at> debbugs.gnu.org Received: via spool by 75890-done <at> debbugs.gnu.org id=D75890.17380216777397 (code D ref 75890); Mon, 27 Jan 2025 23:48:01 +0000 Received: (at 75890-done) by debbugs.gnu.org; 27 Jan 2025 23:47:57 +0000 Received: from localhost ([127.0.0.1]:34838 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tcYph-0001vF-DW for submit <at> debbugs.gnu.org; Mon, 27 Jan 2025 18:47:57 -0500 Received: from thaodan.de ([185.216.177.71]:58534) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <bjorn.bidar@HIDDEN>) id 1tcYpf-0001uz-EW for 75890-done <at> debbugs.gnu.org; Mon, 27 Jan 2025 18:47:55 -0500 Received: from NordStern (dsl-trebng12-50dc7b-49.dhcp.inet.fi [80.220.123.49]) by thaodan.de (Postfix) with ESMTPSA id EA27DD00077; Tue, 28 Jan 2025 01:47:48 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail; t=1738021669; bh=8lgNoywQoLWITMwQBFqwkIG2517seNIGSJ5jQshCpPI=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=OJ7ykrhYFAW8e+CJQqNE8LaWJyLM+4EkcNoU0zb9z/7nLobRj/goPiVbp5jg4O8wu IOK53McUGgUkGT9BiPCkOztnbnI1grT6Jv+BPOmJXCNsCbBctEj2OXu/m69qsR0j4U oTMlr8PDqVoH+LfNAB2py3qvRpG7nXB4cY+VgcHYun+MCQo3b/d3ICHPCZXgIvO2ib kxwTU5hgba23hzvyJkq454LS+ijRnrhYrtkNbJi0PhBrvUh5HpnO39KCfyGyRQ9w+F 6rVeMk9L878ucAd6gSnggrN1LRbuH4Mc9Mg0Ds1ZH0XAfbXLXh7HnQK95J5UhRQCxJ GwNubYI/wvXkB1q7fAPA+6xHkvFpXqs1ejLChALBXU62waS6o/V4lWD0dKstb71J1C BXzbam08YnJXzLztzwJuNjffkotgmMmQW7Tx53r+bX/TSEkWyEGOImvs6mtOMvbVMf 7k8NvYcSWaV5Y9Thrw955g8fLX4Gf044W9Ldadv8zRERJfcxixLLTWATF3dhroga9y FKn7YXkhKtQUzNbi9MiKW71gIW7wMl98uRED1uMO3jG0/AFZ+ci4L1vPbp6/2BAyF9 hwKa0w5RRBX6WfcNsD8G6VMxXWQM+q+JlHV1PICWCbM6Hu4u8ZlpxB5T0h7KfY7kLx MeetiaNCWEf45Jy1objDt7/E= From: =?UTF-8?Q?Bj=C3=B6rn?= Bidar <bjorn.bidar@HIDDEN> In-Reply-To: <86tt9kpf4w.fsf@HIDDEN> (Eli Zaretskii's message of "Mon, 27 Jan 2025 15:20:31 +0200") References: <86tt9kpf4w.fsf@HIDDEN> Autocrypt: addr=bjorn.bidar@HIDDEN; prefer-encrypt=nopreference; keydata= mDMEZNfpPhYJKwYBBAHaRw8BAQdACBEmr+0xwIIHZfIDlZmm7sa+lHHSb0g9FZrN6qE6ru60JUJq w7ZybiBCaWRhciA8Ympvcm4uYmlkYXJAdGhhb2Rhbi5kZT6IlgQTFgoAPgIbAwULCQgHAgIiAgYV CgkICwIEFgIDAQIeBwIXgBYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1/YmAhkBAAoJEFwbdKFl HF9oB9cBAJoIIGQKXm4cpap+Flxc/EGnYl0123lcEyzuduqvlDT0AQC3OlFKm/OiqJ8IMTrzJRZ8 phFssTkSrrFXnM2jm5PYDoiTBBMWCgA7FiEEUfF263VHMB6nKairXBt0oWUcX2gFAmTX6T4CGwMF CwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQXBt0oWUcX2hbCQEAtru7kvM8hi8zo6z9ux2h K+B5xViKuo7Z8K3IXuK5ugwA+wUfKzomzdBPhfxDsqLcEziGRxoyx0Q3ld9aermBUccHtBxCasO2 cm4gQmlkYXIgPG1lQHRoYW9kYW4uZGU+iJMEExYKADsCGwMFCwkIBwICIgIGFQoJCAsCBBYCAwEC HgcCF4AWIQRR8XbrdUcwHqcpqKtcG3ShZRxfaAUCZNf2FQAKCRBcG3ShZRxfaCzSAP4hZ7cSp0YN XYpcjHdsySh2MuBhhoPeLGXs+2kSiqBiOwD/TP8AgPEg/R+SI9GI9on7fBJJ0mp2IT8kZ2rhDOjg gA6IkwQTFgoAOxYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1+ntAhsDBQsJCAcCAiICBhUKCQgL AgQWAgMBAh4HAheAAAoJEFwbdKFlHF9oBgwA/iQHwe0VL4Df4GGTYlNjMSHFlIkBmN4UfYGLYj3E TrOUAQC51M+M3cjsL8WHdpBz6VAo6df9d+rVwhQ9vQuFHqevArg4BGTX6T4SCisGAQQBl1UBBQEB B0Cbohc3JEfn005/cm0AOGjSsW1ZxAkgaoVNjbpqk4MgNAMBCAeIeAQYFgoAIBYhBFHxdut1RzAe pymoq1wbdKFlHF9oBQJk1+k+AhsMAAoJEFwbdKFlHF9ooHABAKGmrGBic/Vys3BBrOQiRB3Z7izO HwhqTRpAqFZtXS2nAQDZhp/5aYw1TZjTzkm1KVt9QiYnjd/MvxRE9iaY6x4mDbgzBGTX6T4WCSsG AQQB2kcPAQEHQAgRJq/tMcCCB2XyA5WZpu7GvpRx0m9IPRWazeqhOq7uiO8EGBYKACAWIQRR8Xbr dUcwHqcpqKtcG3ShZRxfaAUCZNf71AIbIgCBCRBcG3ShZRxfaHYgBBkWCgAdFiEEUfF263VHMB6n KairXBt0oWUcX2gFAmTX+9QACgkQXBt0oWUcX2jeSwD6AtWn0cuo8IF35YRo4o3cDRJnUfJnbvJy GxyCDThR+zYBAKG6/jdwmZkBQZKslnDAbMMd2WfiZZT5JW3IWC4EaKMO7HkBAKYPGZ3UbfkRvfFK S+pQ9CgtNfkSJQBtT1Ob7Y6nsacgAQCpyXN7yppmhW/oBgivITPy9Lkg+V4NK9WZYZCU9Q7LBA== Date: Tue, 28 Jan 2025 01:47:47 +0200 Message-ID: <878qqvvmxo.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) 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: -1.0 (-) Oh that was fast, thanks.
X-Loop: help-debbugs@HIDDEN Subject: bug#75890: 31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el Resent-From: =?UTF-8?Q?Bj=C3=B6rn?= Bidar <bjorn.bidar@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 27 Jan 2025 23:54:01 +0000 Resent-Message-ID: <handler.75890.D75890.17380220098271 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75890 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: 75890-done <at> debbugs.gnu.org Received: via spool by 75890-done <at> debbugs.gnu.org id=D75890.17380220098271 (code D ref 75890); Mon, 27 Jan 2025 23:54:01 +0000 Received: (at 75890-done) by debbugs.gnu.org; 27 Jan 2025 23:53:29 +0000 Received: from localhost ([127.0.0.1]:34846 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tcYv1-00029J-In for submit <at> debbugs.gnu.org; Mon, 27 Jan 2025 18:53:29 -0500 Received: from thaodan.de ([2a03:4000:4f:f15::1]:47508) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <bjorn.bidar@HIDDEN>) id 1tcYuz-000291-7q for 75890-done <at> debbugs.gnu.org; Mon, 27 Jan 2025 18:53:25 -0500 Received: from NordStern (dsl-trebng12-50dc7b-49.dhcp.inet.fi [80.220.123.49]) by thaodan.de (Postfix) with ESMTPSA id 3DA60D00077; Tue, 28 Jan 2025 01:53:18 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail; t=1738021998; bh=gfv//hQFmYzlrORw0sV05Zn321x8SGU2gVxuiwKMLck=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=jqRJ3iWVndj1PxjO0ttx2WyCYTEAxE9Z1p6g5NChMQMZ53cuDORUlG8x6PUjWIibC 8p7jJyZo5X04OLlpuH6EORwxnxo2iNCFEjZ/vSaDOX8NA5otoJYhRtneGPImnrIYjW eLfVwdSDoz9CYl7AYOoq9a09XHOB15u5YwkJ7dORUEkI59lJhobOTCo/zfym+QDm/N trAAXIiXqOzuPRA/+icQ8OIr5RICaBAFxQr3HjqcuOWrgKXm2gP66f3uuhe0MZpVoK iucYMO/FxIYlUzwpX48fjFwH8dhtb9S54cOIDY7YTimSrHxQA0Y4vpZY2tL3UWA3NT EOGCUk/kRHANz2vsNAX8s+cDdgePOW1E6vfbJWQuUm9h07wS4mwAjwaUBpbGr6DP3t KJUqBJuGTKRHBVziqtjKrmx9sTfQjNmdEr55/Clr5GfIvjxBT9GlGBMkg+oH7BPdHG YgQhagrCp/x8UBr8N0NGXSEaBBn1OIa9P8uISCmkZyCftVz6p66fkcp/gtG5zx1Ca5 m8weWEnQmnUzOm34MrRJ7EWCkfNl5t5ucqYMCZW6Vsis4nEkQ8gbkRQIcqaeyDROxM y03JwGDKRb9tvsBfPKLcjVRKwUjlsa7m4B/O0H6beksBOH8dD2kaIyQnAFuMh5tis+ XPiz5piYSfSyfcqTsxZ+MalQ= From: =?UTF-8?Q?Bj=C3=B6rn?= Bidar <bjorn.bidar@HIDDEN> In-Reply-To: <86tt9kpf4w.fsf@HIDDEN> (Eli Zaretskii's message of "Mon, 27 Jan 2025 15:20:31 +0200") References: <86tt9kpf4w.fsf@HIDDEN> Autocrypt: addr=bjorn.bidar@HIDDEN; prefer-encrypt=nopreference; keydata= mDMEZNfpPhYJKwYBBAHaRw8BAQdACBEmr+0xwIIHZfIDlZmm7sa+lHHSb0g9FZrN6qE6ru60JUJq w7ZybiBCaWRhciA8Ympvcm4uYmlkYXJAdGhhb2Rhbi5kZT6IlgQTFgoAPgIbAwULCQgHAgIiAgYV CgkICwIEFgIDAQIeBwIXgBYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1/YmAhkBAAoJEFwbdKFl HF9oB9cBAJoIIGQKXm4cpap+Flxc/EGnYl0123lcEyzuduqvlDT0AQC3OlFKm/OiqJ8IMTrzJRZ8 phFssTkSrrFXnM2jm5PYDoiTBBMWCgA7FiEEUfF263VHMB6nKairXBt0oWUcX2gFAmTX6T4CGwMF CwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQXBt0oWUcX2hbCQEAtru7kvM8hi8zo6z9ux2h K+B5xViKuo7Z8K3IXuK5ugwA+wUfKzomzdBPhfxDsqLcEziGRxoyx0Q3ld9aermBUccHtBxCasO2 cm4gQmlkYXIgPG1lQHRoYW9kYW4uZGU+iJMEExYKADsCGwMFCwkIBwICIgIGFQoJCAsCBBYCAwEC HgcCF4AWIQRR8XbrdUcwHqcpqKtcG3ShZRxfaAUCZNf2FQAKCRBcG3ShZRxfaCzSAP4hZ7cSp0YN XYpcjHdsySh2MuBhhoPeLGXs+2kSiqBiOwD/TP8AgPEg/R+SI9GI9on7fBJJ0mp2IT8kZ2rhDOjg gA6IkwQTFgoAOxYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1+ntAhsDBQsJCAcCAiICBhUKCQgL AgQWAgMBAh4HAheAAAoJEFwbdKFlHF9oBgwA/iQHwe0VL4Df4GGTYlNjMSHFlIkBmN4UfYGLYj3E TrOUAQC51M+M3cjsL8WHdpBz6VAo6df9d+rVwhQ9vQuFHqevArg4BGTX6T4SCisGAQQBl1UBBQEB B0Cbohc3JEfn005/cm0AOGjSsW1ZxAkgaoVNjbpqk4MgNAMBCAeIeAQYFgoAIBYhBFHxdut1RzAe pymoq1wbdKFlHF9oBQJk1+k+AhsMAAoJEFwbdKFlHF9ooHABAKGmrGBic/Vys3BBrOQiRB3Z7izO HwhqTRpAqFZtXS2nAQDZhp/5aYw1TZjTzkm1KVt9QiYnjd/MvxRE9iaY6x4mDbgzBGTX6T4WCSsG AQQB2kcPAQEHQAgRJq/tMcCCB2XyA5WZpu7GvpRx0m9IPRWazeqhOq7uiO8EGBYKACAWIQRR8Xbr dUcwHqcpqKtcG3ShZRxfaAUCZNf71AIbIgCBCRBcG3ShZRxfaHYgBBkWCgAdFiEEUfF263VHMB6n KairXBt0oWUcX2gFAmTX+9QACgkQXBt0oWUcX2jeSwD6AtWn0cuo8IF35YRo4o3cDRJnUfJnbvJy GxyCDThR+zYBAKG6/jdwmZkBQZKslnDAbMMd2WfiZZT5JW3IWC4EaKMO7HkBAKYPGZ3UbfkRvfFK S+pQ9CgtNfkSJQBtT1Ob7Y6nsacgAQCpyXN7yppmhW/oBgivITPy9Lkg+V4NK9WZYZCU9Q7LBA== Date: Tue, 28 Jan 2025 01:53:16 +0200 Message-ID: <874j1jvmoj.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) 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: -1.0 (-) Hm how should this be dealt with best as a user? dir-locals-2.el can override dir-locals.el from the parent directory with the current behavior. E.g. the project as <project-root>/.dir-locals.el and the user has <project-root>/src/.dir-locals-2.el Meaning the -2 variant of dir-locals is the only one even if there's dir-locals.el further down the directory tree.
X-Loop: help-debbugs@HIDDEN Subject: bug#75890: 31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Tue, 28 Jan 2025 12:33:02 +0000 Resent-Message-ID: <handler.75890.B75890.1738067564877 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75890 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?Bj=C3=B6rn?= Bidar <bjorn.bidar@HIDDEN> Cc: 75890 <at> debbugs.gnu.org Received: via spool by 75890-submit <at> debbugs.gnu.org id=B75890.1738067564877 (code B ref 75890); Tue, 28 Jan 2025 12:33:02 +0000 Received: (at 75890) by debbugs.gnu.org; 28 Jan 2025 12:32:44 +0000 Received: from localhost ([127.0.0.1]:35841 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tcklj-0000E1-IY for submit <at> debbugs.gnu.org; Tue, 28 Jan 2025 07:32:43 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36274) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tcklg-0000Dh-4C for 75890 <at> debbugs.gnu.org; Tue, 28 Jan 2025 07:32:36 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1tckla-0002UZ-QQ; Tue, 28 Jan 2025 07:32:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=MHX+IfCRl9O++0rjmPzZEqQj8Sj4zzDncRMugBdGqto=; b=KGUHP2dCPjw4t0uImUy7 Z7GwTqKY9NrteXeBM/1NlzUbxky6uX051O4scnm3R/qwwqzssX8ZkgGh5zwAQnRwoMgntojxumQXQ XPoQSrbF6WwMcvo/apy8/MkzQdRkfRJ8J6SvceF36i5fykAdRuoji6oPlnzofOxUtHwexSa1DPj5s zKZvtJBX0XVSQORTlxhiQsmR5VF0Kh7SSzp2MN+AnGbxIwKI1lLV3WdsOdFaD8dt+u5mqCHkcp33Z KCqCQaZ35emRK6MAZtlfc3O4ud3R62+IWtPPIDY00s1XNuG5Um930JI7II1K6KdRK3zSWT5dLVliW X5aCyFmVBQixNw==; Date: Tue, 28 Jan 2025 14:32:27 +0200 Message-Id: <86h65jnmp0.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <874j1jvmoj.fsf@HIDDEN> (message from =?UTF-8?Q?Bj=C3=B6rn?= Bidar on Tue, 28 Jan 2025 01:53:16 +0200) References: <86tt9kpf4w.fsf@HIDDEN> <874j1jvmoj.fsf@HIDDEN> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) 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: -3.3 (---) > From: Björn Bidar <bjorn.bidar@HIDDEN> > Cc: 75890-done <at> debbugs.gnu.org > Date: Tue, 28 Jan 2025 01:53:16 +0200 > > > Hm how should this be dealt with best as a user? dir-locals-2.el can > override dir-locals.el from the parent directory with the current > behavior. How so? .dir-locals-2.el is only loaded if there's .dir-locals.el in the same directory, and AFAIU it is loaded as side effect of loading .dir-locals.el. So what is the scenario when the override can happen? > E.g. the project as <project-root>/.dir-locals.el and the user has > <project-root>/src/.dir-locals-2.el > > Meaning the -2 variant of dir-locals is the only one even if there's > dir-locals.el further down the directory tree. AFAIU, in this scenario .dir-locals-2.el is not supposed to be loaded.
X-Loop: help-debbugs@HIDDEN Subject: bug#75890: 31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el Resent-From: =?UTF-8?Q?Bj=C3=B6rn?= Bidar <bjorn.bidar@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Tue, 28 Jan 2025 13:54:01 +0000 Resent-Message-ID: <handler.75890.B75890.173807244015580 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75890 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: 75890 <at> debbugs.gnu.org Received: via spool by 75890-submit <at> debbugs.gnu.org id=B75890.173807244015580 (code B ref 75890); Tue, 28 Jan 2025 13:54:01 +0000 Received: (at 75890) by debbugs.gnu.org; 28 Jan 2025 13:54:00 +0000 Received: from localhost ([127.0.0.1]:36023 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tcm2S-00043E-8G for submit <at> debbugs.gnu.org; Tue, 28 Jan 2025 08:54:00 -0500 Received: from thaodan.de ([185.216.177.71]:40598) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <bjorn.bidar@HIDDEN>) id 1tcm2O-00042v-KN for 75890 <at> debbugs.gnu.org; Tue, 28 Jan 2025 08:53:57 -0500 Received: from odin (dsl-trebng12-50dc7b-49.dhcp.inet.fi [80.220.123.49]) by thaodan.de (Postfix) with ESMTPSA id D8648D00059; Tue, 28 Jan 2025 15:53:49 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail; t=1738072430; bh=cqatgOUvZ9Nb8jdEIumN0EHzvNZa+RczaCiCofwq5K4=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=VNFnwDYpeOkliovPeDmt1OtEbFrP+fJoQi29thQz7If1ZsbimRcPX1dwqe0Shrie5 s1crJjlewKLnUerjbAUVMmOOVD+Ps3cthZhUrLMo9xkhUhgGoxq5+FgArk4X8y/WVT VwKbjlWl3RQ02hqbidFUWsQ5njdNFZ1Elvzke70mC77JVxLYCOpKdmqLzwM4xrpBWr Xbiu9B0i4KfejwC6pyfcU90GUCcHblI6T8gu6Lq3lpcKXY7wkZ6AQ1bWyg5CotT3F/ f6x1IRKYcvjSuMiI5rOMGVZbIatgY3GflNoBEVlbuagQll28JIOJaDMSErrpzVd4H4 /0iXdLHNQiSI4WOwJdRTpf7NN5trNjxzFPB13FOQIswL7+9KeJOSggFaXtU+0r8rfS QNm6l8Hh55xDqmanB6t641Yk41Ln7nK1XfVQKIliKxqLAEsL97EO++DWti3UZIa3lj FxnwHm+HzlAyX0rFq1nJITRni5FEtIVxkNYeRYwyL90Z86EfJrdwfpG48Qbw/iRmD4 Iqux7yAi52H71BtbO7DbahSizOA+HKzAc91A2cCxqhCoRrz2LWvyNsbD3lTrHot/Dc wJxLbm4/ZrDh7aWmMji4wfTYaoUG7bGiO56gbeqjXEoDGdNfRNhsYstzV7U5oZYFZo BCRlAhZrZogbNII3pKjXVmi0= From: =?UTF-8?Q?Bj=C3=B6rn?= Bidar <bjorn.bidar@HIDDEN> In-Reply-To: <86h65jnmp0.fsf@HIDDEN> (Eli Zaretskii's message of "Tue, 28 Jan 2025 14:32:27 +0200") References: <86tt9kpf4w.fsf@HIDDEN> <874j1jvmoj.fsf@HIDDEN> <86h65jnmp0.fsf@HIDDEN> Autocrypt: addr=bjorn.bidar@HIDDEN; prefer-encrypt=nopreference; keydata= mDMEZNfpPhYJKwYBBAHaRw8BAQdACBEmr+0xwIIHZfIDlZmm7sa+lHHSb0g9FZrN6qE6ru60JUJq w7ZybiBCaWRhciA8Ympvcm4uYmlkYXJAdGhhb2Rhbi5kZT6IlgQTFgoAPgIbAwULCQgHAgIiAgYV CgkICwIEFgIDAQIeBwIXgBYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1/YmAhkBAAoJEFwbdKFl HF9oB9cBAJoIIGQKXm4cpap+Flxc/EGnYl0123lcEyzuduqvlDT0AQC3OlFKm/OiqJ8IMTrzJRZ8 phFssTkSrrFXnM2jm5PYDoiTBBMWCgA7FiEEUfF263VHMB6nKairXBt0oWUcX2gFAmTX6T4CGwMF CwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQXBt0oWUcX2hbCQEAtru7kvM8hi8zo6z9ux2h K+B5xViKuo7Z8K3IXuK5ugwA+wUfKzomzdBPhfxDsqLcEziGRxoyx0Q3ld9aermBUccHtBxCasO2 cm4gQmlkYXIgPG1lQHRoYW9kYW4uZGU+iJMEExYKADsCGwMFCwkIBwICIgIGFQoJCAsCBBYCAwEC HgcCF4AWIQRR8XbrdUcwHqcpqKtcG3ShZRxfaAUCZNf2FQAKCRBcG3ShZRxfaCzSAP4hZ7cSp0YN XYpcjHdsySh2MuBhhoPeLGXs+2kSiqBiOwD/TP8AgPEg/R+SI9GI9on7fBJJ0mp2IT8kZ2rhDOjg gA6IkwQTFgoAOxYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1+ntAhsDBQsJCAcCAiICBhUKCQgL AgQWAgMBAh4HAheAAAoJEFwbdKFlHF9oBgwA/iQHwe0VL4Df4GGTYlNjMSHFlIkBmN4UfYGLYj3E TrOUAQC51M+M3cjsL8WHdpBz6VAo6df9d+rVwhQ9vQuFHqevArg4BGTX6T4SCisGAQQBl1UBBQEB B0Cbohc3JEfn005/cm0AOGjSsW1ZxAkgaoVNjbpqk4MgNAMBCAeIeAQYFgoAIBYhBFHxdut1RzAe pymoq1wbdKFlHF9oBQJk1+k+AhsMAAoJEFwbdKFlHF9ooHABAKGmrGBic/Vys3BBrOQiRB3Z7izO HwhqTRpAqFZtXS2nAQDZhp/5aYw1TZjTzkm1KVt9QiYnjd/MvxRE9iaY6x4mDbgzBGTX6T4WCSsG AQQB2kcPAQEHQAgRJq/tMcCCB2XyA5WZpu7GvpRx0m9IPRWazeqhOq7uiO8EGBYKACAWIQRR8Xbr dUcwHqcpqKtcG3ShZRxfaAUCZNf71AIbIgCBCRBcG3ShZRxfaHYgBBkWCgAdFiEEUfF263VHMB6n KairXBt0oWUcX2gFAmTX+9QACgkQXBt0oWUcX2jeSwD6AtWn0cuo8IF35YRo4o3cDRJnUfJnbvJy GxyCDThR+zYBAKG6/jdwmZkBQZKslnDAbMMd2WfiZZT5JW3IWC4EaKMO7HkBAKYPGZ3UbfkRvfFK S+pQ9CgtNfkSJQBtT1Ob7Y6nsacgAQCpyXN7yppmhW/oBgivITPy9Lkg+V4NK9WZYZCU9Q7LBA== Date: Tue, 28 Jan 2025 15:53:48 +0200 Message-ID: <87a5bb82oj.fsf@> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.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 the administrator of that system for details. Content preview: Eli Zaretskii <eliz@HIDDEN> writes: >> From: =?UTF-8?Q?Bj=C3=B6rn?= Bidar <bjorn.bidar@HIDDEN> >> Cc: 75890-done <at> debbugs.gnu.org >> Date: Tue, 28 Jan 2025 01:53:16 +0200 >> >> >> Hm how should this be dealt with best as a user? dir-locals-2.el can [...] Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [185.216.177.71 listed in sa-trusted.bondedsender.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 RCVD_IN_VALIDITY_RPBL_BLOCKED RBL: ADMINISTRATOR NOTICE: The query to Validity was blocked. See https://knowledge.validity.com/hc/en-us/articles/20961730681243 for more information. [185.216.177.71 listed in bl.score.senderscore.com] -0.0 T_SCC_BODY_TEXT_LINE No description available. 1.2 INVALID_MSGID Message-Id is not valid, according to RFC 2822 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: 0.2 (/) Eli Zaretskii <eliz@HIDDEN> writes: >> From: Bj=C3=B6rn Bidar <bjorn.bidar@HIDDEN> >> Cc: 75890-done <at> debbugs.gnu.org >> Date: Tue, 28 Jan 2025 01:53:16 +0200 >>=20 >>=20 >> Hm how should this be dealt with best as a user? dir-locals-2.el can >> override dir-locals.el from the parent directory with the current >> behavior. > > How so? .dir-locals-2.el is only loaded if there's .dir-locals.el in > the same directory, and AFAIU it is loaded as side effect of loading > .dir-locals.el. So what is the scenario when the override can happen? The scenario explained, e.g.: / is the project root in this case /.dir-locals.el /src/.dir-locals-2.el Only /src/.dir-locals-2.el is loaded not the /.dir-locals.el. >> E.g. the project as <project-root>/.dir-locals.el and the user has >> <project-root>/src/.dir-locals-2.el >>=20 >> Meaning the -2 variant of dir-locals is the only one even if there's >> dir-locals.el further down the directory tree. > > AFAIU, in this scenario .dir-locals-2.el is not supposed to be loaded. Than that's a bug. IMHO there's a use case to load .dir-locals-2.el up or down the tree in a additional to the nearest .dir-locals.el but not alon= e.
X-Loop: help-debbugs@HIDDEN Subject: bug#75890: 31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Thu, 30 Jan 2025 11:56:01 +0000 Resent-Message-ID: <handler.75890.B75890.173823814917646 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75890 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?Bj=C3=B6rn?= Bidar <bjorn.bidar@HIDDEN>, Stefan Monnier <monnier@HIDDEN> Cc: 75890 <at> debbugs.gnu.org Received: via spool by 75890-submit <at> debbugs.gnu.org id=B75890.173823814917646 (code B ref 75890); Thu, 30 Jan 2025 11:56:01 +0000 Received: (at 75890) by debbugs.gnu.org; 30 Jan 2025 11:55:49 +0000 Received: from localhost ([127.0.0.1]:44785 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tdT9B-0004aY-0J for submit <at> debbugs.gnu.org; Thu, 30 Jan 2025 06:55:49 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44916) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tdT98-0004aK-KH for 75890 <at> debbugs.gnu.org; Thu, 30 Jan 2025 06:55:47 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1tdT93-0005mJ-6f; Thu, 30 Jan 2025 06:55:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=QaC6A9cE3tOHJiLrBhTM8OSPJ7kk4UzF0ByYYoo/86o=; b=il/VVDAmcyJFJ6Q+qpsD ZEKA+vp2R920+xquNWWBJy9j3CijWOklOEIgldRQFT8RDfv8u68MkLDCEQ0tHHidWB+mj2fy/55Ct om0XINakD9m/v/MfE2Ld/kQhn6Zk02P8kD31IGqxlghfcG2Q7Gc4PwPanfG+oparabr0HP2jVN3PG DwKJIOWpy2kN1I8M94so3NxSQh0AYWa3gYn3Gc5NMjG5AQcXkqvN1EH8rPA+HPAmcbmhP0efoTr+b P2KS+cJyoxe9w4vIIhPRiP0g/IyNRogBxX4qMBZGTbU3yOOjGLSoqXbQOVxT5vQf9NeTmDuXhmqVT XCQneQhbIPchyg==; Date: Thu, 30 Jan 2025 13:55:38 +0200 Message-Id: <86y0ysjz2d.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <87a5bb82oj.fsf@> (message from =?UTF-8?Q?Bj=C3=B6rn?= Bidar on Tue, 28 Jan 2025 15:53:48 +0200) References: <86tt9kpf4w.fsf@HIDDEN> <874j1jvmoj.fsf@HIDDEN> <86h65jnmp0.fsf@HIDDEN> <87a5bb82oj.fsf@> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) 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: -3.3 (---) > From: Björn Bidar <bjorn.bidar@HIDDEN> > Cc: 75890 <at> debbugs.gnu.org > Date: Tue, 28 Jan 2025 15:53:48 +0200 > > Eli Zaretskii <eliz@HIDDEN> writes: > > >> From: Björn Bidar <bjorn.bidar@HIDDEN> > >> Cc: 75890-done <at> debbugs.gnu.org > >> Date: Tue, 28 Jan 2025 01:53:16 +0200 > >> > >> > >> Hm how should this be dealt with best as a user? dir-locals-2.el can > >> override dir-locals.el from the parent directory with the current > >> behavior. > > > > How so? .dir-locals-2.el is only loaded if there's .dir-locals.el in > > the same directory, and AFAIU it is loaded as side effect of loading > > .dir-locals.el. So what is the scenario when the override can happen? > > The scenario explained, e.g.: > > / is the project root in this case > > /.dir-locals.el > /src/.dir-locals-2.el > > Only /src/.dir-locals-2.el is loaded not the /.dir-locals.el. > > >> E.g. the project as <project-root>/.dir-locals.el and the user has > >> <project-root>/src/.dir-locals-2.el > >> > >> Meaning the -2 variant of dir-locals is the only one even if there's > >> dir-locals.el further down the directory tree. > > > > AFAIU, in this scenario .dir-locals-2.el is not supposed to be loaded. > > Than that's a bug. IMHO there's a use case to load .dir-locals-2.el up > or down the tree in a additional to the nearest .dir-locals.el but not alone. I guess I've misread the documentation. It seems that the "in the same directory" condition is for overriding the settings in .dir-locals.el, not for loading .dir-locals-2.el. Stefan, am I right?
X-Loop: help-debbugs@HIDDEN Subject: bug#75890: 31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el Resent-From: Stefan Monnier <monnier@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Fri, 31 Jan 2025 10:28:02 +0000 Resent-Message-ID: <handler.75890.B75890.17383192215572 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75890 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: =?UTF-8?Q?Bj=C3=B6rn?= Bidar <bjorn.bidar@HIDDEN>, 75890 <at> debbugs.gnu.org Received: via spool by 75890-submit <at> debbugs.gnu.org id=B75890.17383192215572 (code B ref 75890); Fri, 31 Jan 2025 10:28:02 +0000 Received: (at 75890) by debbugs.gnu.org; 31 Jan 2025 10:27:01 +0000 Received: from localhost ([127.0.0.1]:50108 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tdoEn-0001Rl-9L for submit <at> debbugs.gnu.org; Fri, 31 Jan 2025 05:27:01 -0500 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:56125) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <monnier@HIDDEN>) id 1tdoEj-0001RR-Sm for 75890 <at> debbugs.gnu.org; Fri, 31 Jan 2025 05:26:59 -0500 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id D79E5805DC; Fri, 31 Jan 2025 05:26:51 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1738319210; bh=3juIjx+f+0DvIKnIFmaXtCQFyWcdS5br75Gy55M3PPs=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=UelTTZjZtPHpZc3gPmTC3ddytz+8X2bfn/dYWJEL7vGP6Y6LX4ChiMXNyk2wXVVbj nhF/vSEAxHPFMyIFPZjwUucp33rUIwNLLAPYVrHZapL11qWZZ5GOibVMpx+EBNQ9eP UMvnuSV8QtrtljjggSmRMNcT9PJuFzT3MxiCGxc1FnxlHb6qz0ntlzdIxCFUCEjBIz CNf9Jw/kKn3e/b9WqcKh8npx2tQz+v2SjRwdugiej01J6kGzwlG6KyL9VAHOHY5mvG HKXVvewO2jUYq3Wi+8XN2ktO4uSSoFZ8iCi8d5GjrIhSj8cqGRRAhuabQm/sDsPuYF nRPgxvyo51rwg== Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id E92A0806C1; Fri, 31 Jan 2025 05:26:50 -0500 (EST) Received: from asado (unknown [185.252.130.169]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id BB2581206FF; Fri, 31 Jan 2025 05:26:49 -0500 (EST) From: Stefan Monnier <monnier@HIDDEN> In-Reply-To: <86y0ysjz2d.fsf@HIDDEN> (Eli Zaretskii's message of "Thu, 30 Jan 2025 13:55:38 +0200") Message-ID: <jwvtt9fp9hc.fsf-monnier+emacs@HIDDEN> References: <86tt9kpf4w.fsf@HIDDEN> <874j1jvmoj.fsf@HIDDEN> <86h65jnmp0.fsf@HIDDEN> <86y0ysjz2d.fsf@HIDDEN> Date: Fri, 31 Jan 2025 05:26:47 -0500 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL 0.034 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) 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: -3.3 (---) > I guess I've misread the documentation. It seems that the "in the > same directory" condition is for overriding the settings in > .dir-locals.el, not for loading .dir-locals-2.el. I don't know whether the current behavior is the intended one, but FWIW, I agree it would make a lot of sense to consult `.dir-locals-2.el` only when we found a `.dir-locals.el` sibling (it would also make it cheap to extend this to `.dir-locals-N.eld`). Stefan
X-Loop: help-debbugs@HIDDEN Subject: bug#75890: 31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el Resent-From: Eli Zaretskii <eliz@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 15 Feb 2025 10:25:02 +0000 Resent-Message-ID: <handler.75890.B75890.173961507110348 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75890 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier <monnier@HIDDEN> Cc: bjorn.bidar@HIDDEN, 75890 <at> debbugs.gnu.org Received: via spool by 75890-submit <at> debbugs.gnu.org id=B75890.173961507110348 (code B ref 75890); Sat, 15 Feb 2025 10:25:02 +0000 Received: (at 75890) by debbugs.gnu.org; 15 Feb 2025 10:24:31 +0000 Received: from localhost ([127.0.0.1]:53492 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tjFLb-0002gq-0s for submit <at> debbugs.gnu.org; Sat, 15 Feb 2025 05:24:31 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46508) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tjFLY-0002ga-PC for 75890 <at> debbugs.gnu.org; Sat, 15 Feb 2025 05:24:29 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1tjFLT-0000r9-A2; Sat, 15 Feb 2025 05:24:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=JOESKs4oe8xJvIUMh7Hmm8OtefV3btclkI6np5wfTUE=; b=hkvLgABXXERms9zC3jgk OiiESe4xWJoz7nHsoTnFWbqQ3oxFw6IGhY9z4NsRkQFsqQeLsBJrwvhktCcnrAMCUk12TZZqvIT45 1cycZizFmdhXn4+Hj5d+ZqgWEEjG3daq3APriN3tiYLSGKUHT1vJbWgmbwZsuxE7EI8bweyd1eRGg bruw1F93UUORxpLw6oFt9BsxOv3hAa8lYMXLr1nPNESjxAuGIePXQi5gkCLzgBFmyDtpzGRIyVVhI QYcL63xs5Q3n+w7MDbwXac2MaxN7/IGHHx54m2wR4Iy7N1yCPflQVYGYFsElO1z57l73oDovDzbKP /T6uAqp/cn1m7A==; Date: Sat, 15 Feb 2025 12:24:19 +0200 Message-Id: <86v7tbeca4.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> In-Reply-To: <jwvtt9fp9hc.fsf-monnier+emacs@HIDDEN> (message from Stefan Monnier on Fri, 31 Jan 2025 05:26:47 -0500) References: <86tt9kpf4w.fsf@HIDDEN> <874j1jvmoj.fsf@HIDDEN> <86h65jnmp0.fsf@HIDDEN> <86y0ysjz2d.fsf@HIDDEN> <jwvtt9fp9hc.fsf-monnier+emacs@HIDDEN> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) 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: -3.3 (---) > From: Stefan Monnier <monnier@HIDDEN> > Cc: Björn Bidar <bjorn.bidar@HIDDEN>, > 75890 <at> debbugs.gnu.org > Date: Fri, 31 Jan 2025 05:26:47 -0500 > > > I guess I've misread the documentation. It seems that the "in the > > same directory" condition is for overriding the settings in > > .dir-locals.el, not for loading .dir-locals-2.el. > > I don't know whether the current behavior is the intended one, but FWIW, > I agree it would make a lot of sense to consult `.dir-locals-2.el` only > when we found a `.dir-locals.el` sibling (it would also make it cheap > to extend this to `.dir-locals-N.eld`). Would someone want to work on such a change?
X-Loop: help-debbugs@HIDDEN Subject: bug#75890: 31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el Resent-From: Ship Mints <shipmints@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sat, 15 Feb 2025 11:46:01 +0000 Resent-Message-ID: <handler.75890.B75890.173961993225354 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75890 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii <eliz@HIDDEN> Cc: bjorn.bidar@HIDDEN, 75890 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN> Received: via spool by 75890-submit <at> debbugs.gnu.org id=B75890.173961993225354 (code B ref 75890); Sat, 15 Feb 2025 11:46:01 +0000 Received: (at 75890) by debbugs.gnu.org; 15 Feb 2025 11:45:32 +0000 Received: from localhost ([127.0.0.1]:53682 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tjGbz-0006as-UE for submit <at> debbugs.gnu.org; Sat, 15 Feb 2025 06:45:32 -0500 Received: from mail-vk1-xa32.google.com ([2607:f8b0:4864:20::a32]:55701) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <shipmints@HIDDEN>) id 1tjGbw-0006aZ-Ik for 75890 <at> debbugs.gnu.org; Sat, 15 Feb 2025 06:45:29 -0500 Received: by mail-vk1-xa32.google.com with SMTP id 71dfb90a1353d-51eb1823a8eso800854e0c.3 for <75890 <at> debbugs.gnu.org>; Sat, 15 Feb 2025 03:45:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739619923; x=1740224723; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=lphgZH4H6a4plUCrfWZ9hmKHVFhIrntyDu34l7RTs8c=; b=QD6FOiw960VsRS64nxvEO5T241ZF1EubNqBl87JNEMr2zTdEx5ZiBHt3FGw0fG4TkS zCAT7zwwi01/qCHxN1oKbvcLml1Ib0+Y/Ol1lfYahkvZj25UfionUmvKygNJdemWBKzW u5gHfMTItUFS1OeUKrjtsNDOrlxftssgwoTtAJOtATZ29dUnvUwI7ZWxpasE3GwwOMM/ WkSPl7kF3J/b4z/ra3CFkh4XkkYBOlhhLAOILZ3vTJKSJLZNAqF37QlZMO3ZclT0v5dh RBJ6EQCrjlR5rJMlbZNVuaTVx4J7uoJiDOKcDxbG/r9IstEqU0PQaCaf/KeAcKHjcd/N bTow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739619923; x=1740224723; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=lphgZH4H6a4plUCrfWZ9hmKHVFhIrntyDu34l7RTs8c=; b=QtjP6AA9unV53BO0Kh+D4NmdRyPADzBNwSfdIHip/pUlTG2RWP3nVbqyGcbjyJR0Kl Xf5WVH9nPd9QYwKO9HW//Bp+YYmm/Kj2wzPeO2ipeWijLn1uVJnUBzUjvUbAiIMriSdM VYfSjS12Z5pqD5aG8+K42aYVxHlcxXeAleYdsYOtfx3sRFTJfb9Fzm+hE7zOk3798FzB RVoaDwPcT9q9klnRhZNly7WLKwQEQlJbnaIih+fOhRLiGCWqNbv9KsWta0eyj5e/t+7N AOO80hD/1ih2XN8pvjsUD+rr4UDiiVLnoptA2SONwnbiZbO+MvxKjk9EsHZo7blkiV+a Rr2g== X-Forwarded-Encrypted: i=1; AJvYcCUYbnLvLRDGvrGHVhFQFwrDMMQA/zvi7N6oMgUTpIu1EYxJNukMJrXY8ILlw0FEKkjyT3fhig==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yx9OqorTgQD5lklGLTlpYuP1OhrhsSyLyI2e/13Kqzd8x81eibn qEU+k/QfGyzkXlHHU+Cv/5URVuKRBI1hv64MY4Vmk/SScyhvfyv0SDLm1BAzapC5rnOG1VaMijO XC1BNPHVdiVN10Iw31RSDX3IbkOHK2w== X-Gm-Gg: ASbGncsrdXhSxHpY98IY01/IwP1JxyJksBOdaY/62MsfBlARkkL8S7hmekUdyHEiDJZ xck4yTv3k3IFzU/QR5wQUv0X9if6YV6D7hHdR39f9AsKe7DEVSa6lA9nS4KEJDxQ5YaEQF2rC X-Google-Smtp-Source: AGHT+IEU1zXxs5PYMLFck4A64usdkzd2oxulGpgbC+yNA1WTeeuVasE6Dqp9iRzNIQ5FC9g4NNYtZWwULjrh7fNax+Y= X-Received: by 2002:a05:6122:2881:b0:520:61ee:c7fc with SMTP id 71dfb90a1353d-5209db73438mr1153762e0c.4.1739619922909; Sat, 15 Feb 2025 03:45:22 -0800 (PST) MIME-Version: 1.0 References: <86tt9kpf4w.fsf@HIDDEN> <874j1jvmoj.fsf@HIDDEN> <86h65jnmp0.fsf@HIDDEN> <86y0ysjz2d.fsf@HIDDEN> <jwvtt9fp9hc.fsf-monnier+emacs@HIDDEN> <86v7tbeca4.fsf@HIDDEN> In-Reply-To: <86v7tbeca4.fsf@HIDDEN> From: Ship Mints <shipmints@HIDDEN> Date: Sat, 15 Feb 2025 06:45:11 -0500 X-Gm-Features: AWEUYZm154ad3XU2ei2Xjy9t4ySCVZy4g8y4KDjPuaoRlirBg1nm0F0l27-yrBE Message-ID: <CAN+1Hbq_re+KwhO6QK0h4BbSXpcR4Osi3jTpFYMvYY2CtuZ_6Q@HIDDEN> Content-Type: multipart/alternative; boundary="0000000000008ca114062e2cd3e8" X-Spam-Score: 0.0 (/) 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: -1.0 (-) --0000000000008ca114062e2cd3e8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I would make the change, but upon reflection, I sense this may be intentional behavior. Take for example the case where there's a shared .dir-locals.el in the root of a project, and stored in source control. The user wants to both use the .dir-locals.el at the root and overlay a .dir-locals-2.el in a subdirectory of the project, perhaps with more than one -2 file. In the git-style world, those -2 files could be ignored and live in the user's local tree without being disturbed. It's a form of composition that someone out there is surely taking advantage of. I might. -Stephane On Sat, Feb 15, 2025 at 5:25=E2=80=AFAM Eli Zaretskii <eliz@HIDDEN> wrote: > > From: Stefan Monnier <monnier@HIDDEN> > > Cc: Bj=C3=B6rn Bidar <bjorn.bidar@HIDDEN>, > > 75890 <at> debbugs.gnu.org > > Date: Fri, 31 Jan 2025 05:26:47 -0500 > > > > > I guess I've misread the documentation. It seems that the "in the > > > same directory" condition is for overriding the settings in > > > .dir-locals.el, not for loading .dir-locals-2.el. > > > > I don't know whether the current behavior is the intended one, but FWIW= , > > I agree it would make a lot of sense to consult `.dir-locals-2.el` only > > when we found a `.dir-locals.el` sibling (it would also make it cheap > > to extend this to `.dir-locals-N.eld`). > > Would someone want to work on such a change? > > > > --0000000000008ca114062e2cd3e8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:monospac= e">I would make the change, but upon reflection, I sense this may be intent= ional=C2=A0behavior. Take for example the case where there's a shared .= dir-locals.el in the root of a project, and stored in source control. The u= ser wants to both use the .dir-locals.el at the root and overlay a .dir-loc= als-2.el in a subdirectory of the project, perhaps with more than one -2 fi= le. In the git-style world, those -2 files could be ignored and live in the= user's local tree without being disturbed. It's a form of composit= ion that someone out there is surely taking advantage of. I might.</div><di= v class=3D"gmail_default" style=3D"font-family:monospace"><br></div><div cl= ass=3D"gmail_default" style=3D"font-family:monospace">-Stephane</div></div>= <br><div class=3D"gmail_quote gmail_quote_container"><div dir=3D"ltr" class= =3D"gmail_attr">On Sat, Feb 15, 2025 at 5:25=E2=80=AFAM Eli Zaretskii <<= a href=3D"mailto:eliz@HIDDEN">eliz@HIDDEN</a>> wrote:<br></div><blockq= uote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1p= x solid rgb(204,204,204);padding-left:1ex">> From: Stefan Monnier <<a= href=3D"mailto:monnier@HIDDEN" target=3D"_blank">monnier@HIDDEN= ntreal.ca</a>><br> > Cc: Bj=C3=B6rn Bidar <<a href=3D"mailto:bjorn.bidar@HIDDEN" tar= get=3D"_blank">bjorn.bidar@HIDDEN</a>>,<br> >=C2=A0 =C2=A0<a href=3D"mailto:75890 <at> debbugs.gnu.org" target=3D"_blank"= >75890 <at> debbugs.gnu.org</a><br> > Date: Fri, 31 Jan 2025 05:26:47 -0500<br> > <br> > > I guess I've misread the documentation.=C2=A0 It seems that t= he "in the<br> > > same directory" condition is for overriding the settings in<= br> > > .dir-locals.el, not for loading .dir-locals-2.el.<br> > <br> > I don't know whether the current behavior is the intended one, but= FWIW,<br> > I agree it would make a lot of sense to consult `.dir-locals-2.el` onl= y<br> > when we found a `.dir-locals.el` sibling (it would also make it cheap<= br> > to extend this to `.dir-locals-N.eld`).<br> <br> Would someone want to work on such a change?<br> <br> <br> <br> </blockquote></div> --0000000000008ca114062e2cd3e8--
X-Loop: help-debbugs@HIDDEN Subject: bug#75890: 31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el Resent-From: =?UTF-8?Q?Bj=C3=B6rn?= Bidar <bjorn.bidar@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sun, 16 Feb 2025 00:19:02 +0000 Resent-Message-ID: <handler.75890.B75890.173966510811554 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75890 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Ship Mints <shipmints@HIDDEN> Cc: Eli Zaretskii <eliz@HIDDEN>, 75890 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN> Received: via spool by 75890-submit <at> debbugs.gnu.org id=B75890.173966510811554 (code B ref 75890); Sun, 16 Feb 2025 00:19:02 +0000 Received: (at 75890) by debbugs.gnu.org; 16 Feb 2025 00:18:28 +0000 Received: from localhost ([127.0.0.1]:58589 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tjSMe-00030H-7J for submit <at> debbugs.gnu.org; Sat, 15 Feb 2025 19:18:28 -0500 Received: from thaodan.de ([2a03:4000:4f:f15::1]:39424) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <bjorn.bidar@HIDDEN>) id 1tjSMb-0002zz-FT for 75890 <at> debbugs.gnu.org; Sat, 15 Feb 2025 19:18:26 -0500 Received: from odin (dsl-trebng12-50dc7b-49.dhcp.inet.fi [80.220.123.49]) by thaodan.de (Postfix) with ESMTPSA id 9634ED00038; Sun, 16 Feb 2025 02:18:17 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thaodan.de; s=mail; t=1739665097; bh=S/QMHrKf5bNQsfk8oAlq/4s81oSqYMoRSUK0SvGZUHU=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=E3ZpKUNpvJPqwAJ0yuYjxMjuY5gb0AxxjxyL4rfHdcJBkFvk1jir38oxJTiPvbSf0 Xh6gyqmRiaaeBo1WE4R8D4C0Y5PCSJ1zkiXeyzXqZuH+Gt1df7dE+EWeE/AuN0CB7F YPcTdUF7ZRjH/68Hcpn9bxsguZNJUJ+c3YOU82WHDXZX1wBEdV7cOKpLCtzb2XoAH4 aOpjzBsesFVfkzNX7daAWi9iDB7oiTUXDJHpfCwM4DoQybS0sHll8RdRstizTE0c5t Kciwjn1O/VsYFL3oZcmcgTETMDxKW0hCMRUgyEvtHCjKaYaHqu+3y8vEVEHRky5c8Y Ub7dTUUAdFgpthC9H4GHgQz/fHM9tUSr60YpRjv3Lvnn8aqX1DzDPAiMAg30714i63 EHq8F34NiwyOH2u6mJK4GLG3uI8rVqSF359wa5F6z1mwKaNKVsh6ZrWEmoGDEifzym G/cEXcJ8LunkPSN3/x+7xj4YEZNCaqE2KCFbzYb/vzpNheIqQwS/p0cJPJbUaUnMBv KvfwmIzrvcTTf42gmfQVW3B1lEfAG4EMVdYtMT84xpTM/9w41ONbVqaPaMVDE5JObo LA2a2CUpO4CKASA6DT+69XUyaVvhrCRfqcxfQphtU0NmqYyOfib/AZUeviD0gk3FjN Z3StHzvj8wY+qQsIKSqY32Vo= From: =?UTF-8?Q?Bj=C3=B6rn?= Bidar <bjorn.bidar@HIDDEN> In-Reply-To: <CAN+1Hbq_re+KwhO6QK0h4BbSXpcR4Osi3jTpFYMvYY2CtuZ_6Q@HIDDEN> (Ship Mints's message of "Sat, 15 Feb 2025 06:45:11 -0500") References: <86tt9kpf4w.fsf@HIDDEN> <874j1jvmoj.fsf@HIDDEN> <86h65jnmp0.fsf@HIDDEN> <86y0ysjz2d.fsf@HIDDEN> <jwvtt9fp9hc.fsf-monnier+emacs@HIDDEN> <86v7tbeca4.fsf@HIDDEN> <CAN+1Hbq_re+KwhO6QK0h4BbSXpcR4Osi3jTpFYMvYY2CtuZ_6Q@HIDDEN> Autocrypt: addr=bjorn.bidar@HIDDEN; prefer-encrypt=nopreference; keydata= mDMEZNfpPhYJKwYBBAHaRw8BAQdACBEmr+0xwIIHZfIDlZmm7sa+lHHSb0g9FZrN6qE6ru60JUJq w7ZybiBCaWRhciA8Ympvcm4uYmlkYXJAdGhhb2Rhbi5kZT6IlgQTFgoAPgIbAwULCQgHAgIiAgYV CgkICwIEFgIDAQIeBwIXgBYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1/YmAhkBAAoJEFwbdKFl HF9oB9cBAJoIIGQKXm4cpap+Flxc/EGnYl0123lcEyzuduqvlDT0AQC3OlFKm/OiqJ8IMTrzJRZ8 phFssTkSrrFXnM2jm5PYDoiTBBMWCgA7FiEEUfF263VHMB6nKairXBt0oWUcX2gFAmTX6T4CGwMF CwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQXBt0oWUcX2hbCQEAtru7kvM8hi8zo6z9ux2h K+B5xViKuo7Z8K3IXuK5ugwA+wUfKzomzdBPhfxDsqLcEziGRxoyx0Q3ld9aermBUccHtBxCasO2 cm4gQmlkYXIgPG1lQHRoYW9kYW4uZGU+iJMEExYKADsCGwMFCwkIBwICIgIGFQoJCAsCBBYCAwEC HgcCF4AWIQRR8XbrdUcwHqcpqKtcG3ShZRxfaAUCZNf2FQAKCRBcG3ShZRxfaCzSAP4hZ7cSp0YN XYpcjHdsySh2MuBhhoPeLGXs+2kSiqBiOwD/TP8AgPEg/R+SI9GI9on7fBJJ0mp2IT8kZ2rhDOjg gA6IkwQTFgoAOxYhBFHxdut1RzAepymoq1wbdKFlHF9oBQJk1+ntAhsDBQsJCAcCAiICBhUKCQgL AgQWAgMBAh4HAheAAAoJEFwbdKFlHF9oBgwA/iQHwe0VL4Df4GGTYlNjMSHFlIkBmN4UfYGLYj3E TrOUAQC51M+M3cjsL8WHdpBz6VAo6df9d+rVwhQ9vQuFHqevArg4BGTX6T4SCisGAQQBl1UBBQEB B0Cbohc3JEfn005/cm0AOGjSsW1ZxAkgaoVNjbpqk4MgNAMBCAeIeAQYFgoAIBYhBFHxdut1RzAe pymoq1wbdKFlHF9oBQJk1+k+AhsMAAoJEFwbdKFlHF9ooHABAKGmrGBic/Vys3BBrOQiRB3Z7izO HwhqTRpAqFZtXS2nAQDZhp/5aYw1TZjTzkm1KVt9QiYnjd/MvxRE9iaY6x4mDbgzBGTX6T4WCSsG AQQB2kcPAQEHQAgRJq/tMcCCB2XyA5WZpu7GvpRx0m9IPRWazeqhOq7uiO8EGBYKACAWIQRR8Xbr dUcwHqcpqKtcG3ShZRxfaAUCZNf71AIbIgCBCRBcG3ShZRxfaHYgBBkWCgAdFiEEUfF263VHMB6n KairXBt0oWUcX2gFAmTX+9QACgkQXBt0oWUcX2jeSwD6AtWn0cuo8IF35YRo4o3cDRJnUfJnbvJy GxyCDThR+zYBAKG6/jdwmZkBQZKslnDAbMMd2WfiZZT5JW3IWC4EaKMO7HkBAKYPGZ3UbfkRvfFK S+pQ9CgtNfkSJQBtT1Ob7Y6nsacgAQCpyXN7yppmhW/oBgivITPy9Lkg+V4NK9WZYZCU9Q7LBA== Date: Sun, 16 Feb 2025 02:18:15 +0200 Message-ID: <87eczybv3s.fsf@> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.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 the administrator of that system for details. Content preview: Ship Mints <shipmints@HIDDEN> writes: > The user wants to both use the .dir-locals.el at the root and overlay a > .dir-locals-2.el in a subdirectory of the project, perhaps with more than > one -2 file. In the git-style world, those -2 fi [...] Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record 1.2 INVALID_MSGID Message-Id is not valid, according to RFC 2822 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: 0.2 (/) Ship Mints <shipmints@HIDDEN> writes: > The user wants to both use the .dir-locals.el at the root and overlay a > .dir-locals-2.el in a subdirectory of the project, perhaps with more than > one -2 file. In the git-style world, those -2 files could be ignored and > live in the user's local tree without being disturbed. Overlay as in replace or as in merge? The .dir-locals.el isn't used at all if a -2 variant is found in a subdirectory. I see an advantage of using the -2 in addition to the dir-locals without the suffix when the -2 comes from a subdirectory but not without. The point is that none the projects configuration would be applied if they are not merged in such a situation.
X-Loop: help-debbugs@HIDDEN Subject: bug#75890: 31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el Resent-From: Ship Mints <shipmints@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sun, 16 Feb 2025 11:40:02 +0000 Resent-Message-ID: <handler.75890.B75890.17397059763198 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75890 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?Bj=C3=B6rn?= Bidar <bjorn.bidar@HIDDEN> Cc: Eli Zaretskii <eliz@HIDDEN>, 75890 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN> Received: via spool by 75890-submit <at> debbugs.gnu.org id=B75890.17397059763198 (code B ref 75890); Sun, 16 Feb 2025 11:40:02 +0000 Received: (at 75890) by debbugs.gnu.org; 16 Feb 2025 11:39:36 +0000 Received: from localhost ([127.0.0.1]:60660 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tjczn-0000pW-QE for submit <at> debbugs.gnu.org; Sun, 16 Feb 2025 06:39:36 -0500 Received: from mail-ua1-x92d.google.com ([2607:f8b0:4864:20::92d]:52467) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <shipmints@HIDDEN>) id 1tjczj-0000pB-Pu for 75890 <at> debbugs.gnu.org; Sun, 16 Feb 2025 06:39:33 -0500 Received: by mail-ua1-x92d.google.com with SMTP id a1e0cc1a2514c-867120d67baso1196353241.0 for <75890 <at> debbugs.gnu.org>; Sun, 16 Feb 2025 03:39:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739705966; x=1740310766; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=GVXFhge26EIq2NXkNDyLMXIzDeiNVE2a6LwQEEsuYuw=; b=NxZ0O83wWW4zqSKEMj//fGcEIEpuf+BhE3oCh17cwZ/h38dEWrFH7O2XC7dPynqdrq jWke44I2c341xA6Za+kZyLVlRP3VUbKS4Tj+JZiCyvxTLDJ7DxEqBB77sRgHpeNqEg6o rYbl9B5CyG5g2MRIFcdsg0iEyUUFWyTt5XtNljvhDBvpZA7NbA8f9b+pg9Myz3pVGcLZ I5onZ2xTfqZ/EkgbMaxhUEbBKJofNMq0HTiTrFFUl8EoBWJIKX9UYrJAxwdm0Q3OF137 nMOHAY8TrjLQqR+J+wE8xN+WL7wFeQ4+cxNt3wTGKe15lj9VTp/HS9/mN3fqBK/fzmt/ /jRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739705966; x=1740310766; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=GVXFhge26EIq2NXkNDyLMXIzDeiNVE2a6LwQEEsuYuw=; b=k9F5VZ0MF07CQpr9HeVXxKMd2I3tJbQO+p8EJYXrkloi7Zw4lZhnweJb2Ll6TU9gYv ZIGLMfuoryCABTKyZufJE0r5BCiKkQJUeUqxNrN6xbgeDbCJ75fAyQILE1RHLTQIkeTC QlMCVLGbPc76gUnHFl5IJngDHJ8AK4uQQ0uPigvlWbCYC2VG1wWuVUsHwFjj/B2vVpw+ FTN7i4u+bOFZfbPKu4ziyq0hUNezDv3Oppe8c5/hq9uE5ltMZPsZ5CiJs/RT7Bs8UfcM y7Z9Fzu2uzucz4W1CiZVUZAe273XuqnIiM96oE0i0c8ZH679R4VyM9jZ/JEMTxzndE0e gl3w== X-Forwarded-Encrypted: i=1; AJvYcCWBu3vJIMgnAxO9L+89w9SlR50ieo1s+azXO7ExJ1/HlWNwf+PtD71w7+f2jvOJk03mD9HREw==@debbugs.gnu.org X-Gm-Message-State: AOJu0YylEhiq5jpsEs+6fr16/3IW53MUE6ag23mhWsz+tdtGsOqf8+iD WHnd8COo8geS3rEVpkWogNICrwdF/L2DP4bZw2RwY92KZnTDTgFTqUTtKPxsfntdXgCTSbAoQsr X+wiiOeDWV94yEjXZUQx4D6xUrzQ= X-Gm-Gg: ASbGncv54EAzgh2aH2zVkbeapJJb7l1COD0qDqUT3J4Hn3vrqH4A90LcEQ+J4pf+7cb A2dd/NZXCChkdyxvlfB6J684fftrTpTDawLSJzm4clGJE99U+QPid4DSjqtNFeIHc76JYHCHb X-Google-Smtp-Source: AGHT+IFb0UfXwlStNvazg6nSmlxRTL+spg8Hb73KUDAo8WOb3b/OKxdDV9i2+3nLS/A74g84aC2+cmZHWSswVsbbN6I= X-Received: by 2002:a05:6102:150f:b0:4ba:95f1:cc83 with SMTP id ada2fe7eead31-4bd3fe0463fmr2916840137.16.1739705966041; Sun, 16 Feb 2025 03:39:26 -0800 (PST) MIME-Version: 1.0 References: <86tt9kpf4w.fsf@HIDDEN> <874j1jvmoj.fsf@HIDDEN> <86h65jnmp0.fsf@HIDDEN> <86y0ysjz2d.fsf@HIDDEN> <jwvtt9fp9hc.fsf-monnier+emacs@HIDDEN> <86v7tbeca4.fsf@HIDDEN> <CAN+1Hbq_re+KwhO6QK0h4BbSXpcR4Osi3jTpFYMvYY2CtuZ_6Q@HIDDEN> <67b12eca.170a0220.14000f.0d0bSMTPIN_ADDED_BROKEN@HIDDEN> In-Reply-To: <67b12eca.170a0220.14000f.0d0bSMTPIN_ADDED_BROKEN@HIDDEN> From: Ship Mints <shipmints@HIDDEN> Date: Sun, 16 Feb 2025 06:39:14 -0500 X-Gm-Features: AWEUYZnyCss49EcncgKuyQcLRiX97c9cDSh4amPSIRaYjbbgOv4jOgazCCkd-jk Message-ID: <CAN+1HbruzO12NnCLrA4ohQAgwWph_MUsQ_VDc0+tXiV4WW=mfA@HIDDEN> Content-Type: multipart/alternative; boundary="0000000000001ea289062e40dc8e" X-Spam-Score: 0.0 (/) 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: -1.0 (-) --0000000000001ea289062e40dc8e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable The current docstring says -2 replaces not overlays. I was thinking about composition use cases, perhaps as an option with the existing convention, perhaps with a variable that could be present in the -2 file, perhaps as an alternate naming scheme for the overlay (e.g., -2 for replace, +2 for overlay). I have rarely used -2 because I intuitively expected it to have overlay semantics so I didn't have to copy pasta a .dir-locals.el just to change one thing. I'd be happy to work on making -2 take effect only if there is a sibling "master" file present in the same directory and table composability for another discussion. On Sat, Feb 15, 2025 at 7:18=E2=80=AFPM Bj=C3=B6rn Bidar <bjorn.bidar@thaod= an.de> wrote: > Ship Mints <shipmints@HIDDEN> writes: > > > The user wants to both use the .dir-locals.el at the root and overlay a > > .dir-locals-2.el in a subdirectory of the project, perhaps with more th= an > > one -2 file. In the git-style world, those -2 files could be ignored an= d > > live in the user's local tree without being disturbed. > > Overlay as in replace or as in merge? The .dir-locals.el isn't used at > all if a -2 variant is found in a subdirectory. > > I see an advantage of using the -2 in addition to the dir-locals without > the suffix when the -2 comes from a subdirectory but not without. The > point is that none the projects configuration would be applied if they > are not merged in such a situation. > > --0000000000001ea289062e40dc8e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:monospac= e">The current docstring says -2 replaces not overlays.=C2=A0 I was thinkin= g about composition use cases, perhaps as an option with the existing conve= ntion, perhaps with a variable that could be present in the -2 file, perhap= s as an alternate naming scheme for the overlay (e.g., -2 for replace, +2 f= or overlay).=C2=A0=C2=A0I have rarely used -2 because I intuitively expecte= d it to have=C2=A0overlay=C2=A0semantics so I didn't have to copy pasta= a .dir-locals.el just to change one thing.</div><div class=3D"gmail_defaul= t" style=3D"font-family:monospace"><br></div><div class=3D"gmail_default" s= tyle=3D"font-family:monospace">I'd be happy to work on making -2 take e= ffect only if there is a sibling=C2=A0"master" file present in th= e same directory and table composability for another discussion.</div></div= ><br><div class=3D"gmail_quote gmail_quote_container"><div dir=3D"ltr" clas= s=3D"gmail_attr">On Sat, Feb 15, 2025 at 7:18=E2=80=AFPM Bj=C3=B6rn Bidar &= lt;<a href=3D"mailto:bjorn.bidar@HIDDEN">bjorn.bidar@HIDDEN</a>>= wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px = 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Ship Min= ts <<a href=3D"mailto:shipmints@HIDDEN" target=3D"_blank">shipmints@g= mail.com</a>> writes:<br> <br> > The user wants to both use the .dir-locals.el at the root and overlay = a<br> > .dir-locals-2.el in a subdirectory of the project, perhaps with more t= han<br> > one -2 file. In the git-style world, those -2 files could be ignored a= nd<br> > live in the user's local tree without being disturbed. <br> <br> Overlay as in replace or as in merge? The .dir-locals.el isn't used at<= br> all if a -2 variant is found in a subdirectory.<br> <br> I see an advantage of using the -2 in addition to the dir-locals without<br= > the suffix when the -2 comes from a subdirectory but not without. The<br> point is that none the projects configuration would be applied if they<br> are not merged in such a situation.<br> <br> </blockquote></div> --0000000000001ea289062e40dc8e--
X-Loop: help-debbugs@HIDDEN Subject: bug#75890: 31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el Resent-From: Ship Mints <shipmints@HIDDEN> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Sun, 16 Feb 2025 14:11:02 +0000 Resent-Message-ID: <handler.75890.B75890.173971501821815 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 75890 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: =?UTF-8?Q?Bj=C3=B6rn?= Bidar <bjorn.bidar@HIDDEN> Cc: Eli Zaretskii <eliz@HIDDEN>, 75890 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN> Received: via spool by 75890-submit <at> debbugs.gnu.org id=B75890.173971501821815 (code B ref 75890); Sun, 16 Feb 2025 14:11:02 +0000 Received: (at 75890) by debbugs.gnu.org; 16 Feb 2025 14:10:18 +0000 Received: from localhost ([127.0.0.1]:32970 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tjfLd-0005fm-Q2 for submit <at> debbugs.gnu.org; Sun, 16 Feb 2025 09:10:18 -0500 Received: from mail-ua1-x92b.google.com ([2607:f8b0:4864:20::92b]:56653) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <shipmints@HIDDEN>) id 1tjfLb-0005ei-2o for 75890 <at> debbugs.gnu.org; Sun, 16 Feb 2025 09:10:15 -0500 Received: by mail-ua1-x92b.google.com with SMTP id a1e0cc1a2514c-868e368ec74so2296508241.1 for <75890 <at> debbugs.gnu.org>; Sun, 16 Feb 2025 06:10:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739715009; x=1740319809; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=UV0wV5a1KgMc0d1//bH8+yJKk1fCLGkythHqaR1/Wgo=; b=EMbNgebKz+fl7kLqsxTbx+AB5Y4Vx/FrDniemU8Mn0b/8pIsg1i9G7C17wZX5QI2e+ fJlfbvfjPUE1KryqhhqhblTHc6Z8IBWroJU13Rfz24L+llUh01Jo1bna4IHTJAT5jF7T TeQXl4Nc2EEDgkwuk7Q0JgiyCiW1lJKYNIGBnUX/nR1pJUASs0imaM4fNKCx9DDNUxqm R0LYlnCmOaLcpFpxQ7y5L/Q2yAnBwZ+o3JDrJRl4OgG1xzI4YSBcabKYaoPo/4KPb8An P1rs7fsUyFD9IYFP+6rxb5uwTwbDxiCSPMqyBtogXmTnhvigEZujNg91kD4z7VoInjgL gO6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739715009; x=1740319809; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=UV0wV5a1KgMc0d1//bH8+yJKk1fCLGkythHqaR1/Wgo=; b=pXFLeGlCuBfnClP3cimWQVssnhtdIRdXMaFXajh5zOVR/lsOwgT6u0PiY1WahPObl1 OvkU4ejHIHAyb4mGwXwcL+Doa5G/o7ETjzERrktJh2sgSOQ1xwRfWM048SM2LO2+kjWi Mxr1cXgrJf9cj53zQFI/GAk9x0zmIx6Um5TkYiCYiSfxbyXPVqGK/HgT1OoaPcQCpyQc Ad8VKo5cy2WVoHYutQz6y1PBwNbXbHMXyDVVTQWnHPJlCAEHgaf11mFOeMmjJD/S47M6 L2gHI0vDJtfLRer5z98nyjLqC+BNagKVGb8EFmngRgpTAYGOlvg06+wtsfranaS/+rmQ gVsQ== X-Forwarded-Encrypted: i=1; AJvYcCXgZ/QGc7Iz6Cmyi05EJXlpMPIMFbbrUSm+4HKR2u2jyTPSl30n9PiNbLEPgnzNdWmtRsz/bQ==@debbugs.gnu.org X-Gm-Message-State: AOJu0YxQeZc8Wd5cltjyvW1iU9P7EMHpXWZdujyd7soDVMoGM1wUdFJN ZFZlXDAIWXI6/IyhVcP2RTfakT39YRKKtkvHwmXrmV12anR5Ok/FAhmEjBbtFZQF3c77Ua/y98K o8MkGsapWcH8lDhFcBMmVi9Kh+SQ= X-Gm-Gg: ASbGncuvvI2CAcZQ0Mu5+ysAYu4y/2OtGdaxf9owtrfAJSRzy3x4YsbS+yA827Im5/z DG2MFt7eNVwDlGPKj0WVtqcFRdk0XVJ38ACU5D0JXVYOHDEK7XR+ji4MnidCP5Od7HYInbpPA X-Google-Smtp-Source: AGHT+IHWBHXSUZa0JnJhN7/i7ACdJ1b2vjffwiA0QYJNoBm0lJ0v10JDzmH+YslCkC6AaoNFD6WnMzXN6U2RwTVkiXU= X-Received: by 2002:a05:6102:290a:b0:4b2:5ca3:f82a with SMTP id ada2fe7eead31-4bd3fcf93dbmr3271521137.7.1739715009214; Sun, 16 Feb 2025 06:10:09 -0800 (PST) MIME-Version: 1.0 References: <86tt9kpf4w.fsf@HIDDEN> <874j1jvmoj.fsf@HIDDEN> <86h65jnmp0.fsf@HIDDEN> <86y0ysjz2d.fsf@HIDDEN> <jwvtt9fp9hc.fsf-monnier+emacs@HIDDEN> <86v7tbeca4.fsf@HIDDEN> <CAN+1Hbq_re+KwhO6QK0h4BbSXpcR4Osi3jTpFYMvYY2CtuZ_6Q@HIDDEN> <67b12eca.170a0220.14000f.0d0bSMTPIN_ADDED_BROKEN@HIDDEN> <CAN+1HbruzO12NnCLrA4ohQAgwWph_MUsQ_VDc0+tXiV4WW=mfA@HIDDEN> In-Reply-To: <CAN+1HbruzO12NnCLrA4ohQAgwWph_MUsQ_VDc0+tXiV4WW=mfA@HIDDEN> From: Ship Mints <shipmints@HIDDEN> Date: Sun, 16 Feb 2025 09:09:58 -0500 X-Gm-Features: AWEUYZlf-EhhyXsmCXPPq0YuhpxXW3zCvKbvXBxEs9wQxbHN57REFoRfzz-R_YQ Message-ID: <CAN+1HbqRpn3eoO4D5guvmgTmqqEd0j77BDpF_RqtWqto7KsKjQ@HIDDEN> Content-Type: multipart/alternative; boundary="000000000000228368062e42f706" X-Spam-Score: 0.0 (/) 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: -1.0 (-) --000000000000228368062e42f706 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Looking deeper and gaining some clarity on this. The docstring for (defconst dir-locals-file definitely says the -locals and -locals-2 files "in the same directory will override". But this does not mean replace, as I thought. The implementation of 'dir-locals-read-from-dir' does indeed overlay the values, with -2 values taking precedence. It seems that this is the intended behavior. The docstring for dir-locals-file is incorrect both in spirit and the code in implementation. My inclination is to correct the behavior to have -2 take precedence when one is found at a level equal to or lower in the tree than .dir-locals.el, overriding variables as implemented, and change the dir-locals-file docstring. Thoughts? On Sun, Feb 16, 2025 at 6:39=E2=80=AFAM Ship Mints <shipmints@HIDDEN> wr= ote: > The current docstring says -2 replaces not overlays. I was thinking abou= t > composition use cases, perhaps as an option with the existing convention, > perhaps with a variable that could be present in the -2 file, perhaps as = an > alternate naming scheme for the overlay (e.g., -2 for replace, +2 for > overlay). I have rarely used -2 because I intuitively expected it to > have overlay semantics so I didn't have to copy pasta a .dir-locals.el ju= st > to change one thing. > > I'd be happy to work on making -2 take effect only if there is a > sibling "master" file present in the same directory and table composabili= ty > for another discussion. > > On Sat, Feb 15, 2025 at 7:18=E2=80=AFPM Bj=C3=B6rn Bidar <bjorn.bidar@tha= odan.de> > wrote: > >> Ship Mints <shipmints@HIDDEN> writes: >> >> > The user wants to both use the .dir-locals.el at the root and overlay = a >> > .dir-locals-2.el in a subdirectory of the project, perhaps with more >> than >> > one -2 file. In the git-style world, those -2 files could be ignored a= nd >> > live in the user's local tree without being disturbed. >> >> Overlay as in replace or as in merge? The .dir-locals.el isn't used at >> all if a -2 variant is found in a subdirectory. >> >> I see an advantage of using the -2 in addition to the dir-locals without >> the suffix when the -2 comes from a subdirectory but not without. The >> point is that none the projects configuration would be applied if they >> are not merged in such a situation. >> >> --000000000000228368062e42f706 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:monospac= e">Looking deeper and gaining some clarity on this.</div><div class=3D"gmai= l_default" style=3D"font-family:monospace"><br></div><div class=3D"gmail_de= fault" style=3D"font-family:monospace">The docstring for=C2=A0(defconst dir= -locals-file definitely says the -locals and -locals-2 files "in the s= ame directory will override".=C2=A0 But this does not mean replace, as= I thought.</div><div class=3D"gmail_default" style=3D"font-family:monospac= e"><br></div><div class=3D"gmail_default" style=3D"font-family:monospace">T= he implementation of 'dir-locals-read-from-dir' does indeed overlay= the values, with -2 values taking precedence.=C2=A0 It seems that this is = the intended behavior.</div><div class=3D"gmail_default" style=3D"font-fami= ly:monospace"><br></div><div class=3D"gmail_default" style=3D"font-family:m= onospace">The docstring for dir-locals-file is incorrect both in spirit and= the code in implementation.</div><div class=3D"gmail_default" style=3D"fon= t-family:monospace"><br></div><div class=3D"gmail_default" style=3D"font-fa= mily:monospace">My inclination is to correct the behavior to have -2 take p= recedence when one is found at a level equal to or lower in the tree than .= dir-locals.el, overriding variables as implemented, and change the dir-loca= ls-file docstring.</div><div class=3D"gmail_default" style=3D"font-family:m= onospace"><br></div><div class=3D"gmail_default" style=3D"font-family:monos= pace">Thoughts?</div><div class=3D"gmail_default" style=3D"font-family:mono= space"><br></div></div><br><div class=3D"gmail_quote gmail_quote_container"= ><div dir=3D"ltr" class=3D"gmail_attr">On Sun, Feb 16, 2025 at 6:39=E2=80= =AFAM Ship Mints <<a href=3D"mailto:shipmints@HIDDEN">shipmints@gmail= .com</a>> wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"mar= gin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1= ex"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:mono= space">The current docstring says -2 replaces not overlays.=C2=A0 I was thi= nking about composition use cases, perhaps as an option with the existing c= onvention, perhaps with a variable that could be present in the -2 file, pe= rhaps as an alternate naming scheme for the overlay (e.g., -2 for replace, = +2 for overlay).=C2=A0=C2=A0I have rarely used -2 because I intuitively exp= ected it to have=C2=A0overlay=C2=A0semantics so I didn't have to copy p= asta a .dir-locals.el just to change one thing.</div><div class=3D"gmail_de= fault" style=3D"font-family:monospace"><br></div><div class=3D"gmail_defaul= t" style=3D"font-family:monospace">I'd be happy to work on making -2 ta= ke effect only if there is a sibling=C2=A0"master" file present i= n the same directory and table composability for another discussion.</div><= /div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">O= n Sat, Feb 15, 2025 at 7:18=E2=80=AFPM Bj=C3=B6rn Bidar <<a href=3D"mail= to:bjorn.bidar@HIDDEN" target=3D"_blank">bjorn.bidar@HIDDEN</a>>= wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px = 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Ship Min= ts <<a href=3D"mailto:shipmints@HIDDEN" target=3D"_blank">shipmints@g= mail.com</a>> writes:<br> <br> > The user wants to both use the .dir-locals.el at the root and overlay = a<br> > .dir-locals-2.el in a subdirectory of the project, perhaps with more t= han<br> > one -2 file. In the git-style world, those -2 files could be ignored a= nd<br> > live in the user's local tree without being disturbed. <br> <br> Overlay as in replace or as in merge? The .dir-locals.el isn't used at<= br> all if a -2 variant is found in a subdirectory.<br> <br> I see an advantage of using the -2 in addition to the dir-locals without<br= > the suffix when the -2 comes from a subdirectory but not without. The<br> point is that none the projects configuration would be applied if they<br> are not merged in such a situation.<br> <br> </blockquote></div> </blockquote></div> --000000000000228368062e42f706--
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.