Received: (at 75890) by debbugs.gnu.org; 22 Mar 2025 13:51:17 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 22 09:51:17 2025 Received: from localhost ([127.0.0.1]:41632 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tvzFs-0006ln-UM for submit <at> debbugs.gnu.org; Sat, 22 Mar 2025 09:51:17 -0400 Received: from mail-vk1-xa2b.google.com ([2607:f8b0:4864:20::a2b]:50583) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <shipmints@HIDDEN>) id 1tvzFq-0006lY-0c for 75890 <at> debbugs.gnu.org; Sat, 22 Mar 2025 09:51:14 -0400 Received: by mail-vk1-xa2b.google.com with SMTP id 71dfb90a1353d-5240b014f47so1232711e0c.1 for <75890 <at> debbugs.gnu.org>; Sat, 22 Mar 2025 06:51:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742651468; x=1743256268; 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=9xMegIyuKl8Lt7N5LUc6vu/yaoKGoBbxg7iXxMZ3BQg=; b=jHStBOX43oo9hsiP+qetyFTkhFM26RLTnZzhMnd7S/Ko8aDY7z2TXps4vfm0Dk5YZy zEQ077nT3dLqGeDElQU88ZAE1JfzHwUQh3YksNsC+Ul9jYb+4S7DQ0BF8quvmKail64f aqZxUpRKFLwYA5ixem/o1EnY3XuC9EhAA7H8EOV66c0o8Kx8rA/OWt/fw75V5XvwLfRi lR5/kyx9D12j2N8VHC898P3/majYHbccPbstBn189kcgBQO8mOve3Bur4bCrjGBoJYSV 4ee+8bcaEuCbL51pPpSNUlnKK6T9gQVGIcXh98DNBR0dNkCYDfaPy0kUgEm4asCYjeIy 4iXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742651468; x=1743256268; 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=9xMegIyuKl8Lt7N5LUc6vu/yaoKGoBbxg7iXxMZ3BQg=; b=PEKN/IrAHI+xKnZGKJ1YUbSQQqek3I2f46MjqJdSk4GT1G1kHLpVyP91PeysAm4EYb qKW5/neuMvXBMlN/1SIG1bwjOwRzdVCINllUY5Y66nXWy4snul/Xprx/At5At5Dn8Upl uhopCgUDolhvIRBHK6E469rBLbAKW7HVYPnquteXmJ+GFfXifWpN0D0OWrqRLN11r9e1 qjSaS/23kjxPbKNtPZV7pCSpBsOvgyiqTdzk4rtEyuxDPvs1hSqaI+Qgaxb6Cz+MZVE8 sex8zI1pqMG7fCvZGCc3dUjacVXvqHuUeEXohfcno1icCSOCt60uKf0AEuZcetKUBkdQ hr+Q== X-Forwarded-Encrypted: i=1; AJvYcCWwlKK+j9WpbqfPxKYanf2j/aXZ4bh1h/fChDN03FGbZG7QvkbHI2uv5CNkhXRVAaZK4qDtkA==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yw+p4DXpnrFHCgGrtsfdgDMxN9LPq2yqimJ0RYWuG2K5LOekNEj JVxAGbuIzThmCg9X/5vXGn6ZuZC0LLuAAntqOBhqce96EBA6nVBDZXl63FwsLEMfO4gb91f4hsI fDR4uwQmfUdhezTNXHVqN/+UzWCw= X-Gm-Gg: ASbGnctyhVbypsnikWIMoB62bQHtqJ56MrFDO+VuGWNBEEg7Pg3OlGMamlL9MqPeHDo K4FHvKeM9qt6drIU9Dgt7hVpFibAFV5YKXr+gFuDDndhltCg4LQl3+nPeWykGHx2LQmJNKn2e8T dDUXprCUvbKPOTWKkiwIEEOJlfGA== X-Google-Smtp-Source: AGHT+IGgjlJCXS5gsSXxmMYRp57GEN8x8rOvHxK8IbX/aMkOizx7Hxv2CK7iN9MTEs8yRP61YpqF9f799hCnpVOGMqk= X-Received: by 2002:a05:6122:d09:b0:520:997d:d0b4 with SMTP id 71dfb90a1353d-525a833abd4mr6009565e0c.4.1742651468073; Sat, 22 Mar 2025 06:51:08 -0700 (PDT) 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> <CAN+1HbqRpn3eoO4D5guvmgTmqqEd0j77BDpF_RqtWqto7KsKjQ@HIDDEN> <CADwFkmk7KMfq98F3HC2rE7m+3YjxZi9GbNWdXe9iY832axRR+g@HIDDEN> <CAN+1HbrQruioCOZRsj9HCXi5OqELoSvK3P8RDTGAf=HqbtDSsA@HIDDEN> <CADwFkm=WTakj-1fRnerJ3bRdosznFkwdiWiBSbyrikxGZ447YQ@HIDDEN> <CAN+1HbroBBUJo7PRDFA75DtjqkjyB+um6Or1x0y4Ywbe8LreAg@HIDDEN> <CAN+1HbrSpyzisitWHWjxt0LG3bv4BM_tM5Zuc-LtWTUgTQwx9A@HIDDEN> <jwvbjtt1zy3.fsf-monnier+emacs@HIDDEN> In-Reply-To: <jwvbjtt1zy3.fsf-monnier+emacs@HIDDEN> From: Ship Mints <shipmints@HIDDEN> Date: Sat, 22 Mar 2025 09:50:57 -0400 X-Gm-Features: AQ5f1JotxfiMzMUox6Io89cirff7euY_6Cfrs1Fn_Y9hM50MgYcGDwEltBIzTK8 Message-ID: <CAN+1HbqueDn_U0MZFEpf2aDojvyY+8YwNiLfduJCUCcUqWKALQ@HIDDEN> Subject: Re: bug#75890: 31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el To: Stefan Monnier <monnier@HIDDEN> Content-Type: multipart/alternative; boundary="000000000000b8d4d80630eea92a" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 75890 Cc: =?UTF-8?B?QmrDtnJuIEJpZGFy?= <bjorn.bidar@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>, 75890 <at> debbugs.gnu.org, Stefan Kangas <stefankangas@HIDDEN> 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 (-) --000000000000b8d4d80630eea92a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Mar 21, 2025 at 11:59=E2=80=AFPM Stefan Monnier <monnier@HIDDEN= eal.ca> wrote: > > +(defun dir-locals--base-file (directory) > > + "Return readable `dir-locals-file' in DIRECTORY, or nil." > > + (when (file-readable-p directory) > > + (let* ((f (expand-file-name (if (eq system-type 'ms-dos) > > + (dosified-file-name dir-locals-fil= e) > > + dir-locals-file) > > + directory))) > > + (when (and f > > + (file-readable-p f) > > + ;; FIXME: Aren't file-regular-p and > > + ;; file-directory-p mutually exclusive? > > + (file-regular-p f) > > + (not (file-directory-p f))) > > + f)))) > > Please try and rephrase this so it can share its code with > `dir-locals--all-files`. > I had a version that shared code, but was unsure if I should. I'll do that again. > +(ert-deftest files-test-dir-locals-2-solo () > > + "Test if solo `.dir-locals-2.el' is ignored." > > + (find-file (ert-resource-file (concat > "dir-locals-2-solo/dir-locals-2-solo.txt"))) > > + (should-not (local-variable-p 'dir-locals-2-loaded))) > > Avoid `find-file` which is only for interactive use. > Use `find-file-noselect` instead (in both tests). > [ I know it's used in a few other tests, but it's a bad habit: tests > shouldn't mess with windows unless they really mean it. ] > > While at it, replace "Test if" by "Ensure that" so as to make it clear > which behavior is desired. > I'll take a look. --000000000000b8d4d80630eea92a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon= t-family:monospace"><span style=3D"font-family:Arial,Helvetica,sans-serif">= On Fri, Mar 21, 2025 at 11:59=E2=80=AFPM Stefan Monnier <<a href=3D"mail= to:monnier@HIDDEN">monnier@HIDDEN</a>> wrote:</span>= </div></div><div class=3D"gmail_quote gmail_quote_container"><blockquote cl= ass=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid= rgb(204,204,204);padding-left:1ex">> +(defun dir-locals--base-file (dir= ectory)<br> > +=C2=A0 "Return readable `dir-locals-file' in DIRECTORY, or n= il."<br> > +=C2=A0 (when (file-readable-p directory)<br> > +=C2=A0 =C2=A0 (let* ((f (expand-file-name (if (eq system-type 'ms= -dos)<br> > +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (dosified-file-nam= e dir-locals-file)<br> > +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 dir-locals-file)<br> > +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 directory)))<br> > +=C2=A0 =C2=A0 =C2=A0 (when (and f<br> > +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(file-r= eadable-p f)<br> > +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0;; FIXM= E: Aren't file-regular-p and<br> > +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0;; file= -directory-p mutually exclusive?<br> > +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(file-r= egular-p f)<br> > +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(not (f= ile-directory-p f)))<br> > +=C2=A0 =C2=A0 =C2=A0 =C2=A0 f))))<br> <br> Please try and rephrase this so it can share its code with<br> `dir-locals--all-files`.<br></blockquote><div><br></div><div><div class=3D"= gmail_default" style=3D"font-family:monospace">I had a version that shared = code, but was unsure if I should.=C2=A0 I'll do that again.</div></div>= <div><br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0p= x 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> > +(ert-deftest files-test-dir-locals-2-solo ()<br> > +=C2=A0 "Test if solo `.dir-locals-2.el' is ignored."<br= > > +=C2=A0 (find-file (ert-resource-file (concat "dir-locals-2-solo/= dir-locals-2-solo.txt")))<br> > +=C2=A0 (should-not (local-variable-p 'dir-locals-2-loaded)))<br> <br> Avoid `find-file` which is only for interactive use.<br> Use `find-file-noselect` instead (in both tests).<br> [ I know it's used in a few other tests, but it's a bad habit: test= s<br> =C2=A0 shouldn't mess with windows unless they really mean it.=C2=A0 ]<= br> <br> While at it, replace "Test if" by "Ensure that" so as t= o make it clear<br> which behavior is desired.<br></blockquote><div><br></div><div class=3D"gma= il_default" style=3D"font-family:monospace">I'll take a look.</div></di= v></div> --000000000000b8d4d80630eea92a--
bug-gnu-emacs@HIDDEN
:bug#75890
; Package emacs
.
Full text available.Received: (at 75890) by debbugs.gnu.org; 22 Mar 2025 04:00:03 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 22 00:00:03 2025 Received: from localhost ([127.0.0.1]:40248 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tvq1j-0000kc-0z for submit <at> debbugs.gnu.org; Sat, 22 Mar 2025 00:00:03 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:50304) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <monnier@HIDDEN>) id 1tvq1g-0000iv-Qm for 75890 <at> debbugs.gnu.org; Sat, 22 Mar 2025 00:00:01 -0400 Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id B464E44271A; Fri, 21 Mar 2025 23:59:54 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1742615993; bh=vEYGnPJ6xKXDuVGfiTW308P+dZN5uHUjv+i+jBgMfgI=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=BGc8/THtXmxWQqkDRh0ROwtcAPc0SwGoQuqlqAwfN9jcF9TbjFpg0xcG/JGNpHGLB m+UsIPLvsY+wURQFZkfCrg9b//GZL6XSkgjiDsXuhZXyumJzXPiJpJzKpUY01epkvE Q20nV8Ks8LaETFq7A2OCgchCoDM+/STf2hvpFW/FTu6/DloMEwc9shuvU5CuFGdNZL pxknlhlmf4gitI3LBIRa6pqbTlQBdIqDB1DrOkHic4HcW4uWlvulreKkf2OptgCHO3 Pseui7N9OKTkkmWHqHxmAxbH4PIHBbTgH3D+99VXCs4eCTp6wy83eE+3MSUUSF6yGc kWbiLBip9AHAQ== Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 9B98B4426FE; Fri, 21 Mar 2025 23:59:53 -0400 (EDT) Received: from pastel (unknown [104.247.242.5]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id C63AD120205; Fri, 21 Mar 2025 23:59:52 -0400 (EDT) From: Stefan Monnier <monnier@HIDDEN> To: Ship Mints <shipmints@HIDDEN> Subject: Re: bug#75890: 31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el In-Reply-To: <CAN+1HbrSpyzisitWHWjxt0LG3bv4BM_tM5Zuc-LtWTUgTQwx9A@HIDDEN> Message-ID: <jwvbjtt1zy3.fsf-monnier+emacs@HIDDEN> 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> <CAN+1HbqRpn3eoO4D5guvmgTmqqEd0j77BDpF_RqtWqto7KsKjQ@HIDDEN> <CADwFkmk7KMfq98F3HC2rE7m+3YjxZi9GbNWdXe9iY832axRR+g@HIDDEN> <CAN+1HbrQruioCOZRsj9HCXi5OqELoSvK3P8RDTGAf=HqbtDSsA@HIDDEN> <CADwFkm=WTakj-1fRnerJ3bRdosznFkwdiWiBSbyrikxGZ447YQ@HIDDEN> <CAN+1HbroBBUJo7PRDFA75DtjqkjyB+um6Or1x0y4Ywbe8LreAg@HIDDEN> <CAN+1HbrSpyzisitWHWjxt0LG3bv4BM_tM5Zuc-LtWTUgTQwx9A@HIDDEN> Date: Fri, 21 Mar 2025 23:59:51 -0400 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.420 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-Debbugs-Envelope-To: 75890 Cc: =?windows-1252?Q?Bj=F6rn?= Bidar <bjorn.bidar@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>, 75890 <at> debbugs.gnu.org, Stefan Kangas <stefankangas@HIDDEN> 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 (---) > +(defun dir-locals--base-file (directory) > + "Return readable `dir-locals-file' in DIRECTORY, or nil." > + (when (file-readable-p directory) > + (let* ((f (expand-file-name (if (eq system-type 'ms-dos) > + (dosified-file-name dir-locals-file) > + dir-locals-file) > + directory))) > + (when (and f > + (file-readable-p f) > + ;; FIXME: Aren't file-regular-p and > + ;; file-directory-p mutually exclusive? > + (file-regular-p f) > + (not (file-directory-p f))) > + f)))) Please try and rephrase this so it can share its code with `dir-locals--all-files`. > +(ert-deftest files-test-dir-locals-2-solo () > + "Test if solo `.dir-locals-2.el' is ignored." > + (find-file (ert-resource-file (concat "dir-locals-2-solo/dir-locals-2-solo.txt"))) > + (should-not (local-variable-p 'dir-locals-2-loaded))) Avoid `find-file` which is only for interactive use. Use `find-file-noselect` instead (in both tests). [ I know it's used in a few other tests, but it's a bad habit: tests shouldn't mess with windows unless they really mean it. ] While at it, replace "Test if" by "Ensure that" so as to make it clear which behavior is desired. Stefan
bug-gnu-emacs@HIDDEN
:bug#75890
; Package emacs
.
Full text available.Received: (at 75890) by debbugs.gnu.org; 16 Mar 2025 21:39:43 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 16 17:39:42 2025 Received: from localhost ([127.0.0.1]:51060 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1ttvht-0006nx-RL for submit <at> debbugs.gnu.org; Sun, 16 Mar 2025 17:39:42 -0400 Received: from mail-vk1-xa2b.google.com ([2607:f8b0:4864:20::a2b]:53256) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <shipmints@HIDDEN>) id 1ttvhr-0006n3-A8 for 75890 <at> debbugs.gnu.org; Sun, 16 Mar 2025 17:39:40 -0400 Received: by mail-vk1-xa2b.google.com with SMTP id 71dfb90a1353d-523de538206so1442219e0c.2 for <75890 <at> debbugs.gnu.org>; Sun, 16 Mar 2025 14:39:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742161173; x=1742765973; 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=pWqdN41UsyjN5/awmq/hDfFqBDNg68DxOSD6BbxaUMA=; b=gmrypCm6zpiOquYF3k8Y+0pfiPc+3BKsbogACxQl2d1GjC0R6XvQrR3rGnBiRcVfvm 5Dged/1UMvDmiBSt8Hkc5HJoElJiaJc44/ZRCvK8iNUCA3uNj8bxYY5hDCojF2lZbCLs zYf0AZQ/xcdfHHOsUwFtFkTlmweotqvDXYxZkaywW9r5r3LbytVuyC+G5LOPKNPDT7zN UGqdbLgjIzZgx6eitCtWg2ROA79Guld43QwHG+UNX/nn8n6Bk9Pvr7F8snxRUZQ1y0bP aFHi3aEDSlSfJ669PpXvEv1JPvx6a/zSlDiu4g9MXh4PJ940T/11Rdmj0db8WjP27H9P H7qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742161173; x=1742765973; 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=pWqdN41UsyjN5/awmq/hDfFqBDNg68DxOSD6BbxaUMA=; b=kWi+br/hImazTHyYZlK8jlrif5jkOVxWl2BpDOlIg/wz6IR0D1JSKimNL7/sHupKiT 3EiDQnni17AOiwTShJQ1/RrNq9lNUYhBQyPKQdbdvDFsci24w0QowumF55PrrpjZm1t0 gcu3yZ+ZknoFq/DRosc0Rg4kknuzLbKJ69065hno/oEpPJT/YpVlHiT95g7QuzHIPBmD 6tiI/Xoamnyao6YU+37awKFbQgFPs5MH8+29Cg1JBCNR1R1PTtY7i/32qz5fVm58fzg8 WGfNAPS7b/eu8ASt8qD7cDOyfftQ6Im/czwJJh+b/PR4gR5aI9dNlqVsnIJCdaTS7Sa/ SkvQ== X-Forwarded-Encrypted: i=1; AJvYcCUdrxucxW80u9+XFnrxMebm4fXHA/rklWTnFGPXmsGIaMQuYjQkyJrgFH6LKYzPO3iAyNafow==@debbugs.gnu.org X-Gm-Message-State: AOJu0YzlEdEzd+HbNWLhHiE6Ju6qOvxqnVrH47Em62+8jIyy4Pa63Gyc dXayijAW2PJ6qZAlSuQriQOM1DZsa+/SmDYp2Q3M3ZuLrZrlhNyLHtvLEaHHorOgEE+5CsishqQ WYMEb5RjEfJc6ZHG/hrhKnYQ0snM= X-Gm-Gg: ASbGncuqyTfL7A75D5+3jtoa5of+pg2olvua8AXIVSxksvE62RE3yN0DR1bu3CPDbnO 8fur9aGBdhGBBEhHbB7xHRyzzAdAQs/0J4CdARlyJmekq6ncbbOl671wIRGXGr4YLEYvE4oVxuX AwugnPKgl+dBhMdGExgDPDeQUysA== X-Google-Smtp-Source: AGHT+IFW1y/lIi61DTIyvRG31JdvieblnUR9B/KkuVJd8/MZ5RrWkYcU4Vxyows0hPJIz+XB4EAIV3fa5lHwdpR3v+A= X-Received: by 2002:a05:6102:b11:b0:4c1:abaa:ad93 with SMTP id ada2fe7eead31-4c38316102fmr5968237137.14.1742161173709; Sun, 16 Mar 2025 14:39:33 -0700 (PDT) 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> <CAN+1HbqRpn3eoO4D5guvmgTmqqEd0j77BDpF_RqtWqto7KsKjQ@HIDDEN> <CADwFkmk7KMfq98F3HC2rE7m+3YjxZi9GbNWdXe9iY832axRR+g@HIDDEN> <CAN+1HbrQruioCOZRsj9HCXi5OqELoSvK3P8RDTGAf=HqbtDSsA@HIDDEN> <CADwFkm=WTakj-1fRnerJ3bRdosznFkwdiWiBSbyrikxGZ447YQ@HIDDEN> <CAN+1HbroBBUJo7PRDFA75DtjqkjyB+um6Or1x0y4Ywbe8LreAg@HIDDEN> <CAN+1HbrSpyzisitWHWjxt0LG3bv4BM_tM5Zuc-LtWTUgTQwx9A@HIDDEN> In-Reply-To: <CAN+1HbrSpyzisitWHWjxt0LG3bv4BM_tM5Zuc-LtWTUgTQwx9A@HIDDEN> From: Ship Mints <shipmints@HIDDEN> Date: Sun, 16 Mar 2025 17:39:22 -0400 X-Gm-Features: AQ5f1Joi-zmtuy1v6yNGT_d4FEykgl2ew-Yxz5EaoOnO9yvZf1zYCZ0P3oa6xiQ Message-ID: <CAN+1HboPUoMoDAipUe7iKF=CewKzg+XwZG9pzMVUR+4THSxgxQ@HIDDEN> Subject: Re: bug#75890: 31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el To: Stefan Kangas <stefankangas@HIDDEN> Content-Type: multipart/alternative; boundary="000000000000e6aaf006307c81d6" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 75890 Cc: =?UTF-8?B?QmrDtnJuIEJpZGFy?= <bjorn.bidar@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>, 75890 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN> 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 (-) --000000000000e6aaf006307c81d6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Feb 16, 2025 at 2:37=E2=80=AFPM Ship Mints <shipmints@HIDDEN> wr= ote: > Patch attached, including tests. The other references to > 'dir-locals--all-files' around the code base do not use > 'locate-dominating-file', just the list from 'dir-locals--all-files', so > they should be fine as is, using the list from 'dir-locals--all-files', > which produces the base and -2 files only if found together. > > -Stephane > > On Sun, Feb 16, 2025 at 12:02=E2=80=AFPM Ship Mints <shipmints@HIDDEN>= wrote: > >> Let's do it in two steps, then. I'll first make the code and docs >> match. I leave it up to you and Eli to guide on -2 being exclusively >> coincident or can also be lower in the tree. >> >> On Sun, Feb 16, 2025 at 11:58=E2=80=AFAM Stefan Kangas <stefankangas@gma= il.com> >> wrote: >> >>> Ship Mints <shipmints@HIDDEN> writes: >>> >>> > The tested behavior is that -2 gets loaded instead of an up-the-tree >>> base >>> > file, so this is clearly wrong. When they are coincident, they are >>> both >>> > loaded with -2 overriding. The behavior should either be: >>> > >>> > 1. .dir-locals-2.el is ignored if no corresponding .dir-locals.el is >>> found >>> > in the same directory >>> > >>> > 2. .dir-locals-2.el is loaded iff there is a .dir-locals.el >>> coincidental >>> > with, or located further up the tree. >>> > >>> > Let's decide and I'll propose a patch. >>> >>> Thanks, I agree that the current behavior seems contrary to the spirit >>> and intention of the documentation. As for a fix, I think number 2 >>> makes more sense. >>> >> Anything else needed for this? --000000000000e6aaf006307c81d6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon= t-family:monospace"><span style=3D"font-family:Arial,Helvetica,sans-serif">= On Sun, Feb 16, 2025 at 2:37=E2=80=AFPM Ship Mints <<a href=3D"mailto:sh= ipmints@HIDDEN">shipmints@HIDDEN</a>> wrote:</span></div></div><di= v class=3D"gmail_quote gmail_quote_container"><blockquote class=3D"gmail_qu= ote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,20= 4);padding-left:1ex"><div dir=3D"ltr"><div style=3D"font-family:monospace">= Patch attached, including tests.=C2=A0 The other references to 'dir-loc= als--all-files' around the code base do not use 'locate-dominating-= file', just the list from 'dir-locals--all-files', so they shou= ld be fine as is, using the list from 'dir-locals--all-files', whic= h produces the base and -2 files only if found together.</div><div style=3D= "font-family:monospace"><br></div><div style=3D"font-family:monospace">-Ste= phane</div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"g= mail_attr">On Sun, Feb 16, 2025 at 12:02=E2=80=AFPM Ship Mints <<a href= =3D"mailto:shipmints@HIDDEN" target=3D"_blank">shipmints@HIDDEN</a>&g= t; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0p= x 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div d= ir=3D"ltr"><div style=3D"font-family:monospace">Let's do it in two step= s, then.=C2=A0 I'll first make the=C2=A0code and docs match.=C2=A0 I le= ave it up to you and Eli to guide on -2 being exclusively coincident=C2=A0o= r can also be lower=C2=A0in the tree.</div></div><br><div class=3D"gmail_qu= ote"><div dir=3D"ltr" class=3D"gmail_attr">On Sun, Feb 16, 2025 at 11:58=E2= =80=AFAM Stefan Kangas <<a href=3D"mailto:stefankangas@HIDDEN" target= =3D"_blank">stefankangas@HIDDEN</a>> wrote:<br></div><blockquote clas= s=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid r= gb(204,204,204);padding-left:1ex">Ship Mints <<a href=3D"mailto:shipmint= s@HIDDEN" target=3D"_blank">shipmints@HIDDEN</a>> writes:<br> <br> > The tested behavior is that -2 gets loaded instead of an up-the-tree b= ase<br> > file, so this is clearly wrong.=C2=A0 When they are coincident, they a= re both<br> > loaded with -2 overriding.=C2=A0 The behavior should either be:<br> ><br> > 1. .dir-locals-2.el is ignored if no corresponding .dir-locals.el is f= ound<br> > in the same directory<br> ><br> > 2. .dir-locals-2.el is loaded iff there is a .dir-locals.el coincident= al<br> > with, or located further up the tree.<br> ><br> > Let's decide and I'll propose a patch.<br> <br> Thanks, I agree that the current behavior seems contrary to the spirit<br> and intention of the documentation.=C2=A0 As for a fix, I think number 2<br= > makes more sense.<br></blockquote></div></blockquote></div></blockquote><di= v><br></div><div class=3D"gmail_default" style=3D"font-family:monospace">An= ything else needed for this?</div></div></div> --000000000000e6aaf006307c81d6--
bug-gnu-emacs@HIDDEN
:bug#75890
; Package emacs
.
Full text available.Received: (at 75890) by debbugs.gnu.org; 16 Feb 2025 19:38:16 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 16 14:38:16 2025 Received: from localhost ([127.0.0.1]:37649 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tjkT2-0002C6-4Z for submit <at> debbugs.gnu.org; Sun, 16 Feb 2025 14:38:16 -0500 Received: from mail-vk1-xa2b.google.com ([2607:f8b0:4864:20::a2b]:58729) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <shipmints@HIDDEN>) id 1tjkSz-0002BX-KM for 75890 <at> debbugs.gnu.org; Sun, 16 Feb 2025 14:38:14 -0500 Received: by mail-vk1-xa2b.google.com with SMTP id 71dfb90a1353d-51eb1a6ca1bso1057041e0c.1 for <75890 <at> debbugs.gnu.org>; Sun, 16 Feb 2025 11:38:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739734688; x=1740339488; 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=77DZyyF7iPpKRpuwE/yfpsjF2X9cdjNSPmUua4xBTOY=; b=alQyS1Uj/3HNtj4aeYjqHXRe3AyA/4bqQDHvBPtzsc7LSDr86wfuw0P91Iby2Rxl0j xZQ7SfZS0orURaNHoWkNTeN7Djzxozc65rKsZkArMa1r3WhbJJpGD5mEMieiwCkiLalB wthcenF0tYCwaDf4j5+5L4PFArfclh+RhkPHb6Lhlw3Gv7Vu0vMQ3ZoEqEvHzGkjqZzS ijttnI4hJO6xsoij6vNQ99Fit57SQmIVq7g2e49BrHkd1pbK/QWpeFdtkmhuiWQz52QQ UU54ph0d8na9JsMeh8wUC2n8opy6Nwt5XYxSiecWcuQIEmmX2nT4DLH19z5HfIlmump0 n5EQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739734688; x=1740339488; 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=77DZyyF7iPpKRpuwE/yfpsjF2X9cdjNSPmUua4xBTOY=; b=QxRs8dTPQuRpWurO1WjoB7/bYjR03hepPLZlFgfxQoWAoGwxr3CU4OA42DsSov2/YP v98fKs2N6kRc+Cbm7WA/er/z/qecPmQPhN3Mav0qQwDPgaojxz88RsV4/KGMLgzxFpAf n9Vej/fnX98el62DCd9jD/f4SSFQCx8fKYp/1wVI8Iu4uEd0YLzrO/+Pj+uyzkb74AlR fWI9Nyd4piWmo0nJ12wMlJCNvUzEOlVU78hApBq8Ha8gzw1n3u2R6NqOcHT1EaPBhLLn 7WQFgtgxXkFUepBuqfGrz+avOwHwbirUIRxjOFSM16jZ1yW5QW/SwH9tzCw/Ms8uKxSo urDw== X-Forwarded-Encrypted: i=1; AJvYcCWgK4xzeSKjsfnMrNGTzo3dP1zWoFjV4knbwBrCfu35NQHTBz5un0Gc9GBwehAGf7VUB54cfA==@debbugs.gnu.org X-Gm-Message-State: AOJu0YzjFl4aEOr/J8o0jPN1Ct0Hx62T/MOj1IkGyJBhYGI9MYo8azBQ laof0ZBOlhK4p0Yi9DEZl3wj7J4EyTRRySInOtW5U/UI5A7ZB43ovU1DeqkYQpD9PI/AGH1MX2w Z+alQLHMKaXf18ICMGPEMv2QE1IM= X-Gm-Gg: ASbGnctWj8f7vuZ32wMOfuUSwBcCfYyx2u3AEzf5DcsZUCTH/6gxKqmx2Bn1fbvaX0u NI+LXwhfUtddU7SLrngMhUeN+R8+WW2xTLkDOwBqNqAdEPoHz2evpqnpoO6C8X0xf/sJB2sut X-Google-Smtp-Source: AGHT+IHrhqde5ffreanf8DYD0FL9EmSYItK//8eq8+ttTHyQr/QQEfLtH6rmo7zoDfFWOQkpj5DVGJU+1x/n1NTo/cs= X-Received: by 2002:a05:6122:4210:b0:518:7ab7:afbb with SMTP id 71dfb90a1353d-5209dcd22famr2606258e0c.8.1739734687846; Sun, 16 Feb 2025 11:38:07 -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> <CAN+1HbqRpn3eoO4D5guvmgTmqqEd0j77BDpF_RqtWqto7KsKjQ@HIDDEN> <CADwFkmk7KMfq98F3HC2rE7m+3YjxZi9GbNWdXe9iY832axRR+g@HIDDEN> <CAN+1HbrQruioCOZRsj9HCXi5OqELoSvK3P8RDTGAf=HqbtDSsA@HIDDEN> <CADwFkm=WTakj-1fRnerJ3bRdosznFkwdiWiBSbyrikxGZ447YQ@HIDDEN> <CAN+1HbroBBUJo7PRDFA75DtjqkjyB+um6Or1x0y4Ywbe8LreAg@HIDDEN> In-Reply-To: <CAN+1HbroBBUJo7PRDFA75DtjqkjyB+um6Or1x0y4Ywbe8LreAg@HIDDEN> From: Ship Mints <shipmints@HIDDEN> Date: Sun, 16 Feb 2025 14:37:56 -0500 X-Gm-Features: AWEUYZkcPedmLOwwvXoVcTO9vPOQxY7Uuf6P5rjn3VOQaNRvzRzbOCn6UXbCWMI Message-ID: <CAN+1HbrSpyzisitWHWjxt0LG3bv4BM_tM5Zuc-LtWTUgTQwx9A@HIDDEN> Subject: Re: bug#75890: 31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el To: Stefan Kangas <stefankangas@HIDDEN> Content-Type: multipart/mixed; boundary="00000000000012ad62062e478c45" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 75890 Cc: =?UTF-8?B?QmrDtnJuIEJpZGFy?= <bjorn.bidar@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>, 75890 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN> 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 (-) --00000000000012ad62062e478c45 Content-Type: multipart/alternative; boundary="00000000000012ad5f062e478c43" --00000000000012ad5f062e478c43 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Patch attached, including tests. The other references to 'dir-locals--all-files' around the code base do not use 'locate-dominating-file', just the list from 'dir-locals--all-files', so they should be fine as is, using the list from 'dir-locals--all-files', which produces the base and -2 files only if found together. -Stephane On Sun, Feb 16, 2025 at 12:02=E2=80=AFPM Ship Mints <shipmints@HIDDEN> w= rote: > Let's do it in two steps, then. I'll first make the code and docs match. > I leave it up to you and Eli to guide on -2 being exclusively coincident = or > can also be lower in the tree. > > On Sun, Feb 16, 2025 at 11:58=E2=80=AFAM Stefan Kangas <stefankangas@gmai= l.com> > wrote: > >> Ship Mints <shipmints@HIDDEN> writes: >> >> > The tested behavior is that -2 gets loaded instead of an up-the-tree >> base >> > file, so this is clearly wrong. When they are coincident, they are bo= th >> > loaded with -2 overriding. The behavior should either be: >> > >> > 1. .dir-locals-2.el is ignored if no corresponding .dir-locals.el is >> found >> > in the same directory >> > >> > 2. .dir-locals-2.el is loaded iff there is a .dir-locals.el coincident= al >> > with, or located further up the tree. >> > >> > Let's decide and I'll propose a patch. >> >> Thanks, I agree that the current behavior seems contrary to the spirit >> and intention of the documentation. As for a fix, I think number 2 >> makes more sense. >> > --00000000000012ad5f062e478c43 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">Patch attached, including tests.=C2=A0 The other references to 'dir-= locals--all-files' around the code base do not use 'locate-dominati= ng-file', just the list from 'dir-locals--all-files', so they s= hould be fine as is, using the list from 'dir-locals--all-files', w= hich produces the base and -2 files only if found together.</div><div class= =3D"gmail_default" style=3D"font-family:monospace"><br></div><div class=3D"= gmail_default" style=3D"font-family:monospace">-Stephane</div></div><br><di= v class=3D"gmail_quote gmail_quote_container"><div dir=3D"ltr" class=3D"gma= il_attr">On Sun, Feb 16, 2025 at 12:02=E2=80=AFPM Ship Mints <<a href=3D= "mailto:shipmints@HIDDEN">shipmints@HIDDEN</a>> wrote:<br></div><b= lockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-le= ft:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div class= =3D"gmail_default" style=3D"font-family:monospace">Let's do it in two s= teps, then.=C2=A0 I'll first make the=C2=A0code and docs match.=C2=A0 I= leave it up to you and Eli to guide on -2 being exclusively coincident=C2= =A0or can also be lower=C2=A0in the tree.</div></div><br><div class=3D"gmai= l_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Sun, Feb 16, 2025 at 11:5= 8=E2=80=AFAM Stefan Kangas <<a href=3D"mailto:stefankangas@HIDDEN" ta= rget=3D"_blank">stefankangas@HIDDEN</a>> wrote:<br></div><blockquote = class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px sol= id rgb(204,204,204);padding-left:1ex">Ship Mints <<a href=3D"mailto:ship= mints@HIDDEN" target=3D"_blank">shipmints@HIDDEN</a>> writes:<br> <br> > The tested behavior is that -2 gets loaded instead of an up-the-tree b= ase<br> > file, so this is clearly wrong.=C2=A0 When they are coincident, they a= re both<br> > loaded with -2 overriding.=C2=A0 The behavior should either be:<br> ><br> > 1. .dir-locals-2.el is ignored if no corresponding .dir-locals.el is f= ound<br> > in the same directory<br> ><br> > 2. .dir-locals-2.el is loaded iff there is a .dir-locals.el coincident= al<br> > with, or located further up the tree.<br> ><br> > Let's decide and I'll propose a patch.<br> <br> Thanks, I agree that the current behavior seems contrary to the spirit<br> and intention of the documentation.=C2=A0 As for a fix, I think number 2<br= > makes more sense.<br> </blockquote></div> </blockquote></div> --00000000000012ad5f062e478c43-- --00000000000012ad62062e478c45 Content-Type: application/octet-stream; name="0001-Ensure-.dir-locals-2.el-behavior-as-documented-Bug-7.patch" Content-Disposition: attachment; filename="0001-Ensure-.dir-locals-2.el-behavior-as-documented-Bug-7.patch" Content-Transfer-Encoding: base64 Content-ID: <f_m780x0hp0> X-Attachment-Id: f_m780x0hp0 RnJvbSA1OGQ2NjdjMGUwMTFjYWU0Y2Q0MTlkMDcxM2ZkN2JjNDg4NmZkMTlkIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBzaGlwbWludHMgPHNoaXBtaW50c0BnbWFpbC5jb20+CkRhdGU6 IFN1biwgMTYgRmViIDIwMjUgMTQ6MzA6NDUgLTA1MDAKU3ViamVjdDogW1BBVENIXSBFbnN1cmUg LmRpci1sb2NhbHMtMi5lbCBiZWhhdmlvciBhcyBkb2N1bWVudGVkIChCdWcjNzU4OTApCgoqIGxp c3AvZmlsZXMuZWwKKGRpci1sb2NhbHMtLWJhc2UtZmlsZSk6IE5ldyBmdW5jdGlvbi4KKGRpci1s b2NhbHMtZmluZC1maWxlKTogbG9jYXRlLWRvbWluYXRpbmctZmlsZSBvbmx5IGZvciB0aGUgYmFz ZQouZGlyLWxvY2Fscy5lbC4KCiogdGVzdC9saXNwL2ZpbGVzLXRlc3QuZWwKKGZpbGVzLXRlc3Qt ZGlyLWxvY2Fscy0yLXNvbG8pOiBOZXcgdGVzdC4KKiB0ZXN0L2xpc3AvZmlsZXMtcmVzb3VyY2Vz L2Rpci1sb2NhbHMtMi1vbmx5OiBOZXcgdGVzdCBzdXBwb3J0LgooZmlsZXMtdGVzdC1kaXItbG9j YWxzLTItcGFpcmVkKTogTmV3IHRlc3QuCiogdGVzdC9saXNwL2ZpbGVzLXJlc291cmNlcy9kaXIt bG9jYWxzLWFuZC0yOiBOZXcgdGVzdCBzdXBwb3J0LgotLS0KIGxpc3AvZmlsZXMuZWwgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgMTcgKysrKysrKysrKysrKysrKy0KIC4uLi9k aXItbG9jYWxzLTItc29sby8uZGlyLWxvY2Fscy0yLmVsICAgICAgICAgIHwgIDEgKwogLi4uL2Rp ci1sb2NhbHMtMi1zb2xvL2Rpci1sb2NhbHMtMi1zb2xvLnR4dCAgICAgfCAgMyArKysKIC4uLi9k aXItbG9jYWxzLWFuZC0yLy5kaXItbG9jYWxzLTIuZWwgICAgICAgICAgIHwgIDEgKwogLi4uL2Rp ci1sb2NhbHMtYW5kLTIvLmRpci1sb2NhbHMuZWwgICAgICAgICAgICAgfCAgMSArCiAuLi4vZGly LWxvY2Fscy1hbmQtMi9kaXItbG9jYWxzLWFuZC0yLnR4dCAgICAgICB8ICA0ICsrKysKIHRlc3Qv bGlzcC9maWxlcy10ZXN0cy5lbCAgICAgICAgICAgICAgICAgICAgICAgIHwgMTIgKysrKysrKysr KysrCiA3IGZpbGVzIGNoYW5nZWQsIDM4IGluc2VydGlvbnMoKyksIDEgZGVsZXRpb24oLSkKIGNy ZWF0ZSBtb2RlIDEwMDY0NCB0ZXN0L2xpc3AvZmlsZXMtcmVzb3VyY2VzL2Rpci1sb2NhbHMtMi1z b2xvLy5kaXItbG9jYWxzLTIuZWwKIGNyZWF0ZSBtb2RlIDEwMDY0NCB0ZXN0L2xpc3AvZmlsZXMt cmVzb3VyY2VzL2Rpci1sb2NhbHMtMi1zb2xvL2Rpci1sb2NhbHMtMi1zb2xvLnR4dAogY3JlYXRl IG1vZGUgMTAwNjQ0IHRlc3QvbGlzcC9maWxlcy1yZXNvdXJjZXMvZGlyLWxvY2Fscy1hbmQtMi8u ZGlyLWxvY2Fscy0yLmVsCiBjcmVhdGUgbW9kZSAxMDA2NDQgdGVzdC9saXNwL2ZpbGVzLXJlc291 cmNlcy9kaXItbG9jYWxzLWFuZC0yLy5kaXItbG9jYWxzLmVsCiBjcmVhdGUgbW9kZSAxMDA2NDQg dGVzdC9saXNwL2ZpbGVzLXJlc291cmNlcy9kaXItbG9jYWxzLWFuZC0yL2Rpci1sb2NhbHMtYW5k LTIudHh0CgpkaWZmIC0tZ2l0IGEvbGlzcC9maWxlcy5lbCBiL2xpc3AvZmlsZXMuZWwKaW5kZXgg YTcxZDBjNWM5ZDAuLjk3MjVkMjUwYTI1IDEwMDY0NAotLS0gYS9saXNwL2ZpbGVzLmVsCisrKyBi L2xpc3AvZmlsZXMuZWwKQEAgLTQ3MTIsNiArNDcxMiwyMSBAQCBkaXItbG9jYWxzLS1hbGwtZmls ZXMKICAgICAgICAgICAocHVzaCBmIG91dCkpKQogICAgICAgb3V0KSkpCiAKKyhkZWZ1biBkaXIt bG9jYWxzLS1iYXNlLWZpbGUgKGRpcmVjdG9yeSkKKyAgIlJldHVybiByZWFkYWJsZSBgZGlyLWxv Y2Fscy1maWxlJyBpbiBESVJFQ1RPUlksIG9yIG5pbC4iCisgICh3aGVuIChmaWxlLXJlYWRhYmxl LXAgZGlyZWN0b3J5KQorICAgIChsZXQqICgoZiAoZXhwYW5kLWZpbGUtbmFtZSAoaWYgKGVxIHN5 c3RlbS10eXBlICdtcy1kb3MpCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAo ZG9zaWZpZWQtZmlsZS1uYW1lIGRpci1sb2NhbHMtZmlsZSkKKyAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICBkaXItbG9jYWxzLWZpbGUpCisgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgIGRpcmVjdG9yeSkpKQorICAgICAgKHdoZW4gKGFuZCBmCisgICAgICAgICAgICAgICAg IChmaWxlLXJlYWRhYmxlLXAgZikKKyAgICAgICAgICAgICAgICAgOzsgRklYTUU6IEFyZW4ndCBm aWxlLXJlZ3VsYXItcCBhbmQKKyAgICAgICAgICAgICAgICAgOzsgZmlsZS1kaXJlY3RvcnktcCBt dXR1YWxseSBleGNsdXNpdmU/CisgICAgICAgICAgICAgICAgIChmaWxlLXJlZ3VsYXItcCBmKQor ICAgICAgICAgICAgICAgICAobm90IChmaWxlLWRpcmVjdG9yeS1wIGYpKSkKKyAgICAgICAgZikp KSkKKwogKGRlZnVuIGRpci1sb2NhbHMtZmluZC1maWxlIChmaWxlKQogICAiRmluZCB0aGUgZGly ZWN0b3J5LWxvY2FsIHZhcmlhYmxlcyBmb3IgRklMRS4KIFRoaXMgc2VhcmNoZXMgdXB3YXJkIGlu IHRoZSBkaXJlY3RvcnkgdHJlZSBmcm9tIEZJTEUuCkBAIC00NzMzLDcgKzQ3NDgsNyBAQCBkaXIt bG9jYWxzLWZpbmQtZmlsZQogICAgIGVudHJ5LiIKICAgKHNldHEgZmlsZSAoZXhwYW5kLWZpbGUt bmFtZSBmaWxlKSkKICAgKGxldCogKChsb2NhbHMtZGlyIChsb2NhdGUtZG9taW5hdGluZy1maWxl IChmaWxlLW5hbWUtZGlyZWN0b3J5IGZpbGUpCi0gICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAjJ2Rpci1sb2NhbHMtLWFsbC1maWxlcykpCisgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAjJ2Rpci1sb2NhbHMtLWJhc2UtZmlsZSkp CiAgICAgICAgICBkaXItZWx0KQogICAgIDs7IGBsb2NhdGUtZG9taW5hdGluZy1maWxlJyBtYXkg aGF2ZSBhYmJyZXZpYXRlZCB0aGUgbmFtZS4KICAgICAod2hlbiBsb2NhbHMtZGlyCmRpZmYgLS1n aXQgYS90ZXN0L2xpc3AvZmlsZXMtcmVzb3VyY2VzL2Rpci1sb2NhbHMtMi1zb2xvLy5kaXItbG9j YWxzLTIuZWwgYi90ZXN0L2xpc3AvZmlsZXMtcmVzb3VyY2VzL2Rpci1sb2NhbHMtMi1zb2xvLy5k aXItbG9jYWxzLTIuZWwKbmV3IGZpbGUgbW9kZSAxMDA2NDQKaW5kZXggMDAwMDAwMDAwMDAuLjA4 NTg0OTMzYzQxCi0tLSAvZGV2L251bGwKKysrIGIvdGVzdC9saXNwL2ZpbGVzLXJlc291cmNlcy9k aXItbG9jYWxzLTItc29sby8uZGlyLWxvY2Fscy0yLmVsCkBAIC0wLDAgKzEgQEAKKygobmlsIC4g KChkaXItbG9jYWxzLTItbG9hZGVkIC4gdCkpKSkKZGlmZiAtLWdpdCBhL3Rlc3QvbGlzcC9maWxl cy1yZXNvdXJjZXMvZGlyLWxvY2Fscy0yLXNvbG8vZGlyLWxvY2Fscy0yLXNvbG8udHh0IGIvdGVz dC9saXNwL2ZpbGVzLXJlc291cmNlcy9kaXItbG9jYWxzLTItc29sby9kaXItbG9jYWxzLTItc29s by50eHQKbmV3IGZpbGUgbW9kZSAxMDA2NDQKaW5kZXggMDAwMDAwMDAwMDAuLjgzZWQ2NDgyZTA2 Ci0tLSAvZGV2L251bGwKKysrIGIvdGVzdC9saXNwL2ZpbGVzLXJlc291cmNlcy9kaXItbG9jYWxz LTItc29sby9kaXItbG9jYWxzLTItc29sby50eHQKQEAgLTAsMCArMSwzIEBACisjIFVzZWQgYnkg ZmlsZXMtdGVzdC5lbC4KKyMgRHVlIHRvIHNvbG8gLmRpci1sb2NhbHMtMi5lbCwgdGhlIGxvY2Fs IHZhcmlhYmxlIGBkaXItbG9jYWxzLTItbG9hZGVkJworIyBzaG91bGQgYmUgdW5kZWZpbmVkLgpk aWZmIC0tZ2l0IGEvdGVzdC9saXNwL2ZpbGVzLXJlc291cmNlcy9kaXItbG9jYWxzLWFuZC0yLy5k aXItbG9jYWxzLTIuZWwgYi90ZXN0L2xpc3AvZmlsZXMtcmVzb3VyY2VzL2Rpci1sb2NhbHMtYW5k LTIvLmRpci1sb2NhbHMtMi5lbApuZXcgZmlsZSBtb2RlIDEwMDY0NAppbmRleCAwMDAwMDAwMDAw MC4uMDg1ODQ5MzNjNDEKLS0tIC9kZXYvbnVsbAorKysgYi90ZXN0L2xpc3AvZmlsZXMtcmVzb3Vy Y2VzL2Rpci1sb2NhbHMtYW5kLTIvLmRpci1sb2NhbHMtMi5lbApAQCAtMCwwICsxIEBACisoKG5p bCAuICgoZGlyLWxvY2Fscy0yLWxvYWRlZCAuIHQpKSkpCmRpZmYgLS1naXQgYS90ZXN0L2xpc3Av ZmlsZXMtcmVzb3VyY2VzL2Rpci1sb2NhbHMtYW5kLTIvLmRpci1sb2NhbHMuZWwgYi90ZXN0L2xp c3AvZmlsZXMtcmVzb3VyY2VzL2Rpci1sb2NhbHMtYW5kLTIvLmRpci1sb2NhbHMuZWwKbmV3IGZp bGUgbW9kZSAxMDA2NDQKaW5kZXggMDAwMDAwMDAwMDAuLjJiNTdiZjllN2MwCi0tLSAvZGV2L251 bGwKKysrIGIvdGVzdC9saXNwL2ZpbGVzLXJlc291cmNlcy9kaXItbG9jYWxzLWFuZC0yLy5kaXIt bG9jYWxzLmVsCkBAIC0wLDAgKzEgQEAKKygobmlsIC4gKChkaXItbG9jYWxzLWxvYWRlZCAuIHQp KSkpCmRpZmYgLS1naXQgYS90ZXN0L2xpc3AvZmlsZXMtcmVzb3VyY2VzL2Rpci1sb2NhbHMtYW5k LTIvZGlyLWxvY2Fscy1hbmQtMi50eHQgYi90ZXN0L2xpc3AvZmlsZXMtcmVzb3VyY2VzL2Rpci1s b2NhbHMtYW5kLTIvZGlyLWxvY2Fscy1hbmQtMi50eHQKbmV3IGZpbGUgbW9kZSAxMDA2NDQKaW5k ZXggMDAwMDAwMDAwMDAuLmJiOGEzMWNhMTQ3Ci0tLSAvZGV2L251bGwKKysrIGIvdGVzdC9saXNw L2ZpbGVzLXJlc291cmNlcy9kaXItbG9jYWxzLWFuZC0yL2Rpci1sb2NhbHMtYW5kLTIudHh0CkBA IC0wLDAgKzEsNCBAQAorIyBVc2VkIGJ5IGZpbGVzLXRlc3QuZWwuCisjIC5kaXItbG9jYWxzLmVs IGFuZCAuZGlyLWxvY2Fscy0yLmVsIHNob3VsZCBkZWZpbmU6CisjIGxvY2FsIHZhcmlhYmxlIGBk aXItbG9jYWxzLWxvYWRlZCcKKyMgbG9jYWwgdmFyaWFibGUgYGRpci1sb2NhbHMtMi1sb2FkZWQn CmRpZmYgLS1naXQgYS90ZXN0L2xpc3AvZmlsZXMtdGVzdHMuZWwgYi90ZXN0L2xpc3AvZmlsZXMt dGVzdHMuZWwKaW5kZXggNWUyYzRlYjI2NjkuLjQ2OTYyYTUwNjRmIDEwMDY0NAotLS0gYS90ZXN0 L2xpc3AvZmlsZXMtdGVzdHMuZWwKKysrIGIvdGVzdC9saXNwL2ZpbGVzLXRlc3RzLmVsCkBAIC0x NzIyLDYgKzE3MjIsMTggQEAgZmlsZXMtdGVzdHMtYXV0by1tb2RlLWludGVycHJldGVyCiAgIDs7 IEludm9jYXRpb24gdGhyb3VnaCBlbnYsIHdpdGggbW9kaWZpZWQgZW52aXJvbm1lbnQuCiAgIChm aWxlcy10ZXN0cy0tY2hlY2stc2hlYmFuZyAiIyEvdXNyL2Jpbi9lbnYgLVMgUFlUSE9OUEFUSD0v Li4uOiR7UFlUSE9OUEFUSH0gcHl0aG9uIiAncHl0aG9uLWJhc2UtbW9kZSkpCiAKKyhlcnQtZGVm dGVzdCBmaWxlcy10ZXN0LWRpci1sb2NhbHMtMi1zb2xvICgpCisgICJUZXN0IGlmIHNvbG8gYC5k aXItbG9jYWxzLTIuZWwnIGlzIGlnbm9yZWQuIgorICAoZmluZC1maWxlIChlcnQtcmVzb3VyY2Ut ZmlsZSAoY29uY2F0ICJkaXItbG9jYWxzLTItc29sby9kaXItbG9jYWxzLTItc29sby50eHQiKSkp CisgIChzaG91bGQtbm90IChsb2NhbC12YXJpYWJsZS1wICdkaXItbG9jYWxzLTItbG9hZGVkKSkp CisKKyhlcnQtZGVmdGVzdCBmaWxlcy10ZXN0LWRpci1sb2NhbHMtMi1wYWlyZWQgKCkKKyAgIlRl c3QgaWYgYC5kaXItbG9jYWxzLTIuZWwnIGlzIGxvYWRlZCBpZiBwYWlyZWQuIgorICAobGV0ICgo ZW5hYmxlLWxvY2FsLXZhcmlhYmxlcyA6YWxsKSkKKyAgICAoZmluZC1maWxlIChlcnQtcmVzb3Vy Y2UtZmlsZSAoY29uY2F0ICJkaXItbG9jYWxzLWFuZC0yL2Rpci1sb2NhbHMtYW5kLTIudHh0Iikp KQorICAgIChzaG91bGQgKGxvY2FsLXZhcmlhYmxlLXAgJ2Rpci1sb2NhbHMtbG9hZGVkKSkKKyAg ICAoc2hvdWxkIChsb2NhbC12YXJpYWJsZS1wICdkaXItbG9jYWxzLTItbG9hZGVkKSkpKQorCiAo ZXJ0LWRlZnRlc3QgZmlsZXMtdGVzdC1kaXItbG9jYWxzLWF1dG8tbW9kZS1hbGlzdCAoKQogICAi VGVzdCBhbiBgYXV0by1tb2RlLWFsaXN0JyBlbnRyeSBpbiBgLmRpci1sb2NhbHMuZWwnIgogICAo ZmluZC1maWxlIChlcnQtcmVzb3VyY2UtZmlsZSAid2hhdGV2ZXIucXV1eCIpKQotLSAKMi40Ny4x Cgo= --00000000000012ad62062e478c45--
bug-gnu-emacs@HIDDEN
:bug#75890
; Package emacs
.
Full text available.Received: (at 75890) by debbugs.gnu.org; 16 Feb 2025 17:02:27 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 16 12:02:27 2025 Received: from localhost ([127.0.0.1]:36649 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tji2E-0003kk-VL for submit <at> debbugs.gnu.org; Sun, 16 Feb 2025 12:02:27 -0500 Received: from mail-vk1-xa29.google.com ([2607:f8b0:4864:20::a29]:58518) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <shipmints@HIDDEN>) id 1tji2C-0003kS-Bw for 75890 <at> debbugs.gnu.org; Sun, 16 Feb 2025 12:02:25 -0500 Received: by mail-vk1-xa29.google.com with SMTP id 71dfb90a1353d-520aede8ae3so127733e0c.0 for <75890 <at> debbugs.gnu.org>; Sun, 16 Feb 2025 09:02:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739725339; x=1740330139; 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=Pl1q7Fs3CXT8ILyzpkWX3pzf/Bw+dHZZ7E/42VCKeTg=; b=DBcCLTOE8XzRdnumo7Py7/R6WKGEIN78hvWsyoNY/xeA/W1jI0wrymwiyg2HAeiUvK NS55Ot2FBb65+Ttq8S2EHmPWFwh1HF/CIwWPF+G8+qUC3vqX1g70/hkS0x2zD9feQr9K 6uCv5JxEL7HEMTp+xwp2TJJf7iMZUwhe/ROzKEnP+m043z0KuOJWbgBMXsR9PMa+OxZ7 PPTMv1yyfXtfVjCpuX/C+6eRK0dJhZ3D5U2IQDNz7CZEOQTT6weQHLp2J2IcU4oByKgg 1fPA33Y0u5QjI4UPTe+WhsxR/qnv5lQ2StaKNFERusQHzC9i3NcB37sFi6p0rEB1N9wq RVDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739725339; x=1740330139; 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=Pl1q7Fs3CXT8ILyzpkWX3pzf/Bw+dHZZ7E/42VCKeTg=; b=EbGquEoU5mKqPWim1yVSm2I6jWrgGj8erwj+09K5tqUNMVgijE1wzrCe+xxqYfqVQs H1FZ+1ncIASN3At+dXEHdFj95NUjw8AtH5+calX9zsEmdXLtzPt2H32jRPIoFcAXJY9W vEUSa4Ws1Q1sSeUev8GMuBHFmby+Q4oWcVmX8YQbKcnNrdOzJkivm+Oao1GstOj2kQYD hmj0jAs5Yx9MmUzTf9mXy/qrGK/tc36R+zjX5uemy99pgMaubZNUd+T7SklhmGphdz0S axIbgffQuYNJlM2JSTVTv16UpC9WdyJLSDERwRScFlaH8emG4zmbEmKTNk8HJPZo1m+c Lw2g== X-Forwarded-Encrypted: i=1; AJvYcCVFA2av2lfETuF0mnnhcHxpGZNmynK9+yih9sh6DTGjQOcbYROiDrni7dulQ88dkhahzinmLQ==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yxwfkp3m2/V7F1et7An8ZREuQYXn3x9q2x0eBwZAJN3C1LVtjoE 5hb4yDLMuhrNcJHu+tJhRAUKWXUX14aD4jbgz+za2PNFQ6w/D+RNnVB1obpp9E1d4pn/6uQub01 0isQv6paUHoOTwWVQVCQgKJmuLsE= X-Gm-Gg: ASbGncvlLhXyU4E6Lbl4BoJRzjcqABL1X33K3qZm7ha6d/O3z8El3I5uz7zIM3m6/Om 093m9VyIcI/HyKzGb4u4GUPzgjInTlTT2bYvL2N7sZ0dcHUUCaN16YofuVn9Een4VeCOmx2W8 X-Google-Smtp-Source: AGHT+IEKFwBz1jfxV/ws3COo8aJuySLnEcNQq40lGx5G7mAQ7P8n2u2NQEBC9UqSQhgc0Y1TbY0JMRk5vQFCKj0yvgM= X-Received: by 2002:a05:6122:4210:b0:518:7ab7:afbb with SMTP id 71dfb90a1353d-5209dcd22famr2436737e0c.8.1739725338678; Sun, 16 Feb 2025 09:02:18 -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> <CAN+1HbqRpn3eoO4D5guvmgTmqqEd0j77BDpF_RqtWqto7KsKjQ@HIDDEN> <CADwFkmk7KMfq98F3HC2rE7m+3YjxZi9GbNWdXe9iY832axRR+g@HIDDEN> <CAN+1HbrQruioCOZRsj9HCXi5OqELoSvK3P8RDTGAf=HqbtDSsA@HIDDEN> <CADwFkm=WTakj-1fRnerJ3bRdosznFkwdiWiBSbyrikxGZ447YQ@HIDDEN> In-Reply-To: <CADwFkm=WTakj-1fRnerJ3bRdosznFkwdiWiBSbyrikxGZ447YQ@HIDDEN> From: Ship Mints <shipmints@HIDDEN> Date: Sun, 16 Feb 2025 12:02:07 -0500 X-Gm-Features: AWEUYZkoSS7CCynDvpPBYZU8ccevaYdA2K7tKz7DCfe82IbJMuFjHQWPzamDsA4 Message-ID: <CAN+1HbroBBUJo7PRDFA75DtjqkjyB+um6Or1x0y4Ywbe8LreAg@HIDDEN> Subject: Re: bug#75890: 31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el To: Stefan Kangas <stefankangas@HIDDEN> Content-Type: multipart/alternative; boundary="000000000000d19d27062e455e10" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 75890 Cc: =?UTF-8?B?QmrDtnJuIEJpZGFy?= <bjorn.bidar@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>, 75890 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN> 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 (-) --000000000000d19d27062e455e10 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Let's do it in two steps, then. I'll first make the code and docs match. I leave it up to you and Eli to guide on -2 being exclusively coincident or can also be lower in the tree. On Sun, Feb 16, 2025 at 11:58=E2=80=AFAM Stefan Kangas <stefankangas@gmail.= com> wrote: > Ship Mints <shipmints@HIDDEN> writes: > > > The tested behavior is that -2 gets loaded instead of an up-the-tree ba= se > > file, so this is clearly wrong. When they are coincident, they are bot= h > > loaded with -2 overriding. The behavior should either be: > > > > 1. .dir-locals-2.el is ignored if no corresponding .dir-locals.el is > found > > in the same directory > > > > 2. .dir-locals-2.el is loaded iff there is a .dir-locals.el coincidenta= l > > with, or located further up the tree. > > > > Let's decide and I'll propose a patch. > > Thanks, I agree that the current behavior seems contrary to the spirit > and intention of the documentation. As for a fix, I think number 2 > makes more sense. > --000000000000d19d27062e455e10 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">Let's do it in two steps, then.=C2=A0 I'll first make the=C2=A0c= ode and docs match.=C2=A0 I leave it up to you and Eli to guide on -2 being= exclusively coincident=C2=A0or can also be lower=C2=A0in the tree.</div></= div><br><div class=3D"gmail_quote gmail_quote_container"><div dir=3D"ltr" c= lass=3D"gmail_attr">On Sun, Feb 16, 2025 at 11:58=E2=80=AFAM Stefan Kangas = <<a href=3D"mailto:stefankangas@HIDDEN">stefankangas@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 Mi= nts <<a href=3D"mailto:shipmints@HIDDEN" target=3D"_blank">shipmints@= gmail.com</a>> writes:<br> <br> > The tested behavior is that -2 gets loaded instead of an up-the-tree b= ase<br> > file, so this is clearly wrong.=C2=A0 When they are coincident, they a= re both<br> > loaded with -2 overriding.=C2=A0 The behavior should either be:<br> ><br> > 1. .dir-locals-2.el is ignored if no corresponding .dir-locals.el is f= ound<br> > in the same directory<br> ><br> > 2. .dir-locals-2.el is loaded iff there is a .dir-locals.el coincident= al<br> > with, or located further up the tree.<br> ><br> > Let's decide and I'll propose a patch.<br> <br> Thanks, I agree that the current behavior seems contrary to the spirit<br> and intention of the documentation.=C2=A0 As for a fix, I think number 2<br= > makes more sense.<br> </blockquote></div> --000000000000d19d27062e455e10--
bug-gnu-emacs@HIDDEN
:bug#75890
; Package emacs
.
Full text available.Received: (at 75890) by debbugs.gnu.org; 16 Feb 2025 16:58:52 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 16 11:58:51 2025 Received: from localhost ([127.0.0.1]:36637 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tjhyl-0003X7-LU for submit <at> debbugs.gnu.org; Sun, 16 Feb 2025 11:58:51 -0500 Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]:45257) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>) id 1tjhyj-0003Ws-El for 75890 <at> debbugs.gnu.org; Sun, 16 Feb 2025 11:58:50 -0500 Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-5e04cb346eeso1372013a12.2 for <75890 <at> debbugs.gnu.org>; Sun, 16 Feb 2025 08:58:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739725123; x=1740329923; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=5IeuQNdeE2hEUz8UFG43KEXpCLm2mBUwbIgqXk4cD+0=; b=YTzSMayAhbf3S6bA6IjXMRg8eI7MuquktnUTwlFv/ozSmSlYf8yCzCfls1x9ggg7x9 FOirwVn2unfqZt6czbheN0X4w7zjtbS7K04wuihsVxQqCoomefbqFsC3qSvAqSk8zExO 8Cbnbqzl053J047vPteMJTRnGmfC39RkRxbmdjoxipQu5tIqf2j7vAnTksUL79vzLopw R5WoQFahdadl7w3yz1wNpOr0UOeHQy5byQXBbGBy6u6rIo3oHAg0TggJ1XGfVD4qTffj KCOsTIyrF8+IcmpqKaFrAHEWweeilGI9JCXUZ4TCtDKcUJZUPcHbaSXgEv5FnwANCpUH sddg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739725123; x=1740329923; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=5IeuQNdeE2hEUz8UFG43KEXpCLm2mBUwbIgqXk4cD+0=; b=UDdzzC86WaDRpEJRftaDAh60evQLKp+A1PJIn/jjUGktSDKuKBocc2NtCrK8fKeg4Z kQLxBkqjPrv4yVpSmvb0iC7Od5TpcaQZe4aVZEQObPSVQMKY6tSjwZWBwPf92okXEDTd VI2ZTEC5nno/J+z3X77owwNAgPy2RQZz3cTRexfROJ4k9hXe6S0+A/RXDBWxZ27hvp/J mHMGzNSc63S8j+WEHDkHn8qhJqyXbscVomnGS8kLoUVWc/zTVSxU3lr1xSsD3fYtBEc3 zHYcqo3xlHfs0aTg9SWwKmktDHnykh3s+SKBcNAF3riX2xIkaEEtj8i7fSapgsg9QYcD Vs/g== X-Forwarded-Encrypted: i=1; AJvYcCXxpk/UeeVP6DU8EaFGo4PLcu+H7dm4kRXk7hcrSCWY2I9FI3tkExRYwgZv7bmDP36jwOoNRw==@debbugs.gnu.org X-Gm-Message-State: AOJu0YwSTmP3eRrqhOLyPb7mHLcRsu0r5cxCXohY8OtxKrAuOgzzFVVZ /ZoV7LylbDXM1ADhMHPTLEUYAa7N8Wy9SwZ4d7fYdImlqY/G9OLudmLIl/dmRXUIZ0JHVAVBIlm 3ry4va2b8REAiZ88+CoP3KsicT7I= X-Gm-Gg: ASbGncuKcP8b+BxJ8FA7ewZqi6SHR998A/+oGDAC6sbVSmQW0PL/MCE8FGaWAZ0HTcp b/dHQG0x0gQTpHsOVoFZd0Uv0vZvTlunUGulTDCgeUKArq9C4xRWVvOyBW4oiAIpuQ6PvoYa5G+ Q= X-Google-Smtp-Source: AGHT+IH+Xatq84kMeWEpFCcZkjVaAqvTCZuqqM2g0hC1MkdzddWP+8IX7Epzg9Wb8i1TQOQKaR6HS1rkRtygsmXbhww= X-Received: by 2002:a05:6402:1ec5:b0:5db:e7eb:1b34 with SMTP id 4fb4d7f45d1cf-5e0360d18bfmr7153335a12.13.1739725122750; Sun, 16 Feb 2025 08:58:42 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 16 Feb 2025 16:58:42 +0000 From: Stefan Kangas <stefankangas@HIDDEN> In-Reply-To: <CAN+1HbrQruioCOZRsj9HCXi5OqELoSvK3P8RDTGAf=HqbtDSsA@HIDDEN> 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> <CAN+1HbqRpn3eoO4D5guvmgTmqqEd0j77BDpF_RqtWqto7KsKjQ@HIDDEN> <CADwFkmk7KMfq98F3HC2rE7m+3YjxZi9GbNWdXe9iY832axRR+g@HIDDEN> <CAN+1HbrQruioCOZRsj9HCXi5OqELoSvK3P8RDTGAf=HqbtDSsA@HIDDEN> MIME-Version: 1.0 Date: Sun, 16 Feb 2025 16:58:42 +0000 X-Gm-Features: AWEUYZlv3Yf9EVHIAha0dbE7bT73Qefgp33oRk-kmEaYk5ujI94eUwwCR37oD4I Message-ID: <CADwFkm=WTakj-1fRnerJ3bRdosznFkwdiWiBSbyrikxGZ447YQ@HIDDEN> Subject: Re: bug#75890: 31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el To: Ship Mints <shipmints@HIDDEN> Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 75890 Cc: =?UTF-8?B?QmrDtnJuIEJpZGFy?= <bjorn.bidar@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>, 75890 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN> 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 (-) Ship Mints <shipmints@HIDDEN> writes: > The tested behavior is that -2 gets loaded instead of an up-the-tree base > file, so this is clearly wrong. When they are coincident, they are both > loaded with -2 overriding. The behavior should either be: > > 1. .dir-locals-2.el is ignored if no corresponding .dir-locals.el is found > in the same directory > > 2. .dir-locals-2.el is loaded iff there is a .dir-locals.el coincidental > with, or located further up the tree. > > Let's decide and I'll propose a patch. Thanks, I agree that the current behavior seems contrary to the spirit and intention of the documentation. As for a fix, I think number 2 makes more sense.
bug-gnu-emacs@HIDDEN
:bug#75890
; Package emacs
.
Full text available.Received: (at 75890) by debbugs.gnu.org; 16 Feb 2025 16:50:33 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 16 11:50:33 2025 Received: from localhost ([127.0.0.1]:36607 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tjhqj-0003Cu-EV for submit <at> debbugs.gnu.org; Sun, 16 Feb 2025 11:50:33 -0500 Received: from mail-vk1-xa29.google.com ([2607:f8b0:4864:20::a29]:55391) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <shipmints@HIDDEN>) id 1tjhqg-0003Cb-F9 for 75890 <at> debbugs.gnu.org; Sun, 16 Feb 2025 11:50:31 -0500 Received: by mail-vk1-xa29.google.com with SMTP id 71dfb90a1353d-5205d9da0d7so978798e0c.2 for <75890 <at> debbugs.gnu.org>; Sun, 16 Feb 2025 08:50:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739724625; x=1740329425; 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=ElYJLpMACHM881Ata6C09W5n0FjQASA8r/SCzX8ZEho=; b=WhilBT/ss7BrIzS+vPfpwZGiVzj+5dLrg2oOzSj9pSbHj3lher2KKnbh+uuwf/n7dY BGfiE47YoiLIDDoiBBnjQUPOy6YkRKFeqjW4f37VHDfnhuh5ezDtm3coZ55+nLOr6HjC RCCDmriYY2MsNJ1+1tMyKuJNy8OsYelXzTCtTgLm5VY2KJBoNPcQPPffineT6RZQpC9U nb3V1N2BHwIn+lwlTTbZg1NdiYa1gg7kFOP+l+0Rc4iH8HLs4Nz7aNcbvgQKCl0MyGtQ S1GUvvvCaG37VwJ5aJyrkbf86ex1wF6ZulOK58t5lfSIpIc3fQ0Z/waK4gV7DprYDupa VVLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739724625; x=1740329425; 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=ElYJLpMACHM881Ata6C09W5n0FjQASA8r/SCzX8ZEho=; b=MI0dx9BE+MGX14/xGYB6hKCR9bxKHRufoWol7i2+RZvG4LtFiPExC8qpEae+2OvFql q/tqR6nPBciLihHPeXoXMJ6n3HCL9D0yC89rV1YUc//KWohHci+C5q9n/IvWzCLx/50s bjWHAkon35glP8p7k1xcc48O4kaieZnTeT8doBbj3to0YEY2Yo4kpyzOxNA2YGVEk8Bd ER1qM4hEb5blLeknefM8oQWF1lKVlAO+A4Q7FYkIEVjOHnPRKn+61NIyhL17tqJ/FCP/ cZaw/pGgi6d1PD/gg5KQzW84nEPNj1iM3P9h0i7P2lIL/vlay3QPAN2cn/F2a2qR25f9 0ivQ== X-Forwarded-Encrypted: i=1; AJvYcCXnRsM/FtR5/l9f7URIromfjEaVisM3NYUWTRKOP+cdpMJG5tbMzvsYlj5PxRHNnBaEgNK2dA==@debbugs.gnu.org X-Gm-Message-State: AOJu0YzWmuxTdsXsiYvXyp7VLurgoW2YN/bd8gbZaPW8JffbDzj8zBNN Wnrtm+iIzxGP4zSBclZAL2EoEJiy6UNNkOY5gaea/p0u6vrHk2+rU/2JyrvUSulZVK1803ggUb+ xe6WQC3RugVzwsl8SizpKe2KFDw8= X-Gm-Gg: ASbGncsQ4OOXGxb/02OnmUSmoyHng+qybmFePByELzcmc0drBmrzjJWQwJ3VB0DqjKl KvvrDYIKLTtUY0Fs2NirNtp7Pjb5bTSZgJ5wm6ulgdzFseeRPowMKlVgNSrMzzEzBECs+KvkM X-Google-Smtp-Source: AGHT+IE6c7hwSBEK5DhiGqq90hwqOw+uRxohlpCQ2MJpRTO/I7WDEBqAW2XXjd2blnQLmltmzaW0TlV4QTSNmbZmzWY= X-Received: by 2002:a05:6122:658b:b0:520:420a:a07a with SMTP id 71dfb90a1353d-5209dde2362mr2458615e0c.8.1739724624778; Sun, 16 Feb 2025 08:50:24 -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> <CAN+1HbqRpn3eoO4D5guvmgTmqqEd0j77BDpF_RqtWqto7KsKjQ@HIDDEN> <86r03yarpn.fsf@HIDDEN> <CAN+1Hbr==CZTs-L9nhaTuKVAC+rjie3kC-PCAx1+_G1Q8pFHrA@HIDDEN> <86pljhc0rh.fsf@HIDDEN> In-Reply-To: <86pljhc0rh.fsf@HIDDEN> From: Ship Mints <shipmints@HIDDEN> Date: Sun, 16 Feb 2025 11:50:13 -0500 X-Gm-Features: AWEUYZn6kGozjfmpA3jSEcy5sSA1UkrvGWmAB_ZGVXYRbBkm7K9gLUqsguCWrhA Message-ID: <CAN+1HbrnuSoX5azsK53gL+ZDm8nYzR6fw_+v6Uq7c5af1ZzJ-w@HIDDEN> Subject: Re: bug#75890: 31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el To: Eli Zaretskii <eliz@HIDDEN> Content-Type: multipart/alternative; boundary="000000000000445d90062e45343e" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 75890 Cc: bjorn.bidar@HIDDEN, 75890 <at> debbugs.gnu.org, monnier@HIDDEN 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 (-) --000000000000445d90062e45343e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable And that's what I'll do. On Sun, Feb 16, 2025 at 11:28=E2=80=AFAM Eli Zaretskii <eliz@HIDDEN> wrote= : > > From: Ship Mints <shipmints@HIDDEN> > > Date: Sun, 16 Feb 2025 11:23:13 -0500 > > Cc: bjorn.bidar@HIDDEN, monnier@HIDDEN, > 75890 <at> debbugs.gnu.org > > > > I think the documented behavior makes a lot of sense, we just need to > > make sure the ode behaves as documented. > > > > The tested behavior is that -2 gets loaded instead of an up-the-tree > base file, so this is clearly wrong. When > > they are coincident, they are both loaded with -2 overriding. > > Which is why I said that the _documented_ behavior makes sense, not > the actual one. The actual behavior we should IMO fix so it matches > the documentation. > --000000000000445d90062e45343e 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">And that's what I'll do.</div></div><br><div class=3D"gmail_quot= e gmail_quote_container"><div dir=3D"ltr" class=3D"gmail_attr">On Sun, Feb = 16, 2025 at 11:28=E2=80=AFAM Eli Zaretskii <<a href=3D"mailto:eliz@HIDDEN= rg">eliz@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);pa= dding-left:1ex">> From: Ship Mints <<a href=3D"mailto:shipmints@gmail= .com" target=3D"_blank">shipmints@HIDDEN</a>><br> > Date: Sun, 16 Feb 2025 11:23:13 -0500<br> > Cc: <a href=3D"mailto:bjorn.bidar@HIDDEN" target=3D"_blank">bjorn.= bidar@HIDDEN</a>, <a href=3D"mailto:monnier@HIDDEN" target=3D= "_blank">monnier@HIDDEN</a>, <a href=3D"mailto:75890@HIDDEN= org" target=3D"_blank">75890 <at> debbugs.gnu.org</a><br> > <br> >=C2=A0 I think the documented behavior makes a lot of sense, we just ne= ed to<br> >=C2=A0 make sure the ode behaves as documented.<br> > <br> > The tested behavior is that -2 gets loaded instead of an up-the-tree b= ase file, so this is clearly wrong.=C2=A0 When<br> > they are coincident, they are both loaded with -2 overriding.<br> <br> Which is why I said that the _documented_ behavior makes sense, not<br> the actual one.=C2=A0 The actual behavior we should IMO fix so it matches<b= r> the documentation.<br> </blockquote></div> --000000000000445d90062e45343e--
bug-gnu-emacs@HIDDEN
:bug#75890
; Package emacs
.
Full text available.Received: (at 75890) by debbugs.gnu.org; 16 Feb 2025 16:28:29 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 16 11:28:29 2025 Received: from localhost ([127.0.0.1]:36528 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tjhVN-000275-4V for submit <at> debbugs.gnu.org; Sun, 16 Feb 2025 11:28:29 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40724) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tjhVL-00026p-92 for 75890 <at> debbugs.gnu.org; Sun, 16 Feb 2025 11:28:28 -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 1tjhVF-00079m-6F; Sun, 16 Feb 2025 11:28:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=uEFvfgCkZzP9TivUs+nTFZyhpRILMH4S6uZwLyZDK30=; b=KkQ7SzoiDBv/ ShutCKDVcj2v7+M/E/gmVdMUcw6qNKM/CM0YCh+ERbC+KMoZGwTL/wpUKwB2JTlN9nvAmpHkBmLg9 zv8Dr8N1NpotBpEujaLs2d6Jua59N3fG50oJfb7pLFf9ODVaXJbQTh9ouPWlIDYf6vVgIReFnux1M Qy0RfGrkV7cqMXhYileLsoB2zJQ6QNRZicxxNZFF4OJ/jdaE2hW5m504eNRrCD+f2H1+8m1minT5X BmM/KtzJ28yGH5QZ5SoJ7L4Qbk8VEtWjp5hJQi2dji7zV9gwOQGPvStVnmJzS+hkdo+34iySsmgMs FomzqdwLubYr2mWk+62PlQ==; Date: Sun, 16 Feb 2025 18:28:18 +0200 Message-Id: <86pljhc0rh.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Ship Mints <shipmints@HIDDEN> In-Reply-To: <CAN+1Hbr==CZTs-L9nhaTuKVAC+rjie3kC-PCAx1+_G1Q8pFHrA@HIDDEN> (message from Ship Mints on Sun, 16 Feb 2025 11:23:13 -0500) Subject: Re: bug#75890: 31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el 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> <CAN+1HbqRpn3eoO4D5guvmgTmqqEd0j77BDpF_RqtWqto7KsKjQ@HIDDEN> <86r03yarpn.fsf@HIDDEN> <CAN+1Hbr==CZTs-L9nhaTuKVAC+rjie3kC-PCAx1+_G1Q8pFHrA@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 75890 Cc: bjorn.bidar@HIDDEN, 75890 <at> debbugs.gnu.org, monnier@HIDDEN 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: Ship Mints <shipmints@HIDDEN> > Date: Sun, 16 Feb 2025 11:23:13 -0500 > Cc: bjorn.bidar@HIDDEN, monnier@HIDDEN, 75890 <at> debbugs.gnu.org > > I think the documented behavior makes a lot of sense, we just need to > make sure the ode behaves as documented. > > The tested behavior is that -2 gets loaded instead of an up-the-tree base file, so this is clearly wrong. When > they are coincident, they are both loaded with -2 overriding. Which is why I said that the _documented_ behavior makes sense, not the actual one. The actual behavior we should IMO fix so it matches the documentation.
bug-gnu-emacs@HIDDEN
:bug#75890
; Package emacs
.
Full text available.Received: (at 75890) by debbugs.gnu.org; 16 Feb 2025 16:25:27 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 16 11:25:27 2025 Received: from localhost ([127.0.0.1]:36522 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tjhSR-00021p-2z for submit <at> debbugs.gnu.org; Sun, 16 Feb 2025 11:25:27 -0500 Received: from mail-vs1-xe33.google.com ([2607:f8b0:4864:20::e33]:50671) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <shipmints@HIDDEN>) id 1tjhSN-00021V-Ev for 75890 <at> debbugs.gnu.org; Sun, 16 Feb 2025 11:25:24 -0500 Received: by mail-vs1-xe33.google.com with SMTP id ada2fe7eead31-4be4d72bceaso151750137.1 for <75890 <at> debbugs.gnu.org>; Sun, 16 Feb 2025 08:25:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739723117; x=1740327917; 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=38eTqTiCmurWEbVa5MUR9sLGWxG0pKk0NXjdpLI7u0M=; b=XgKdFOlnvdqHgUvwM+Ygemtrj1eX3HZqNmCsbyxW3MrysehyiuzlgYB6xGOxjG54NH Kg8mW3849F/mC6txP7cQpSPTVrMQt6ShFT1nJawnCCxphl0n39PfM9PQ/4uWw3CJBM6F e5EwS1a5eKrRsx4PZ0SAHbWTX0F4jYE+hMLgbCWikxA7wK5+wc9us7f/YiElUyrqR/hm 96Tn9z1vabvxSdxG1adCf9CczxlSJz2L1XItaSPFb0c7eAnNMo1LWAt2wC4vZWgkQ3DW v0sW8bdDZ1rLQt7wfzwpgKaeIVR+MIkKNhyO/ebVtwTpM8aey8enzNpr1T7b8YuDR0+K +U0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739723117; x=1740327917; 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=38eTqTiCmurWEbVa5MUR9sLGWxG0pKk0NXjdpLI7u0M=; b=qIGo0VxIsQGSSNE4FdM7/k4lYx4Wkl1ghjOVdLMKt3JTZ5drvdwjPjNXuF6lifRs7h u2LYUe6N95HYFeC4+sJn8S4SDq0VSkL36cfg/UNw/Zp0CELwg54MTbktZf4Efw0etkgH g4gLW879Ykai+8aIJwzkHmvtg6fOP9x1tsLRW+UCMmya6pduV6kPXg8lfyQy5TszIIBy S5LwtpB+oJMP0TzhV9UInsh+TVhAttf5NAXkhFdnR5C9Lbd5T1HwF8TZadOtFnqSY8iK XtZYyccpVrg4kvRXqhj0n1SajNqCh5oDx321lutWC7RxsO97BayXH2SFglZDvPcZWgj4 Y4Yw== X-Forwarded-Encrypted: i=1; AJvYcCVduhj+X6OZnfJnr5Z9lYzvbIA9CxClpUFdTC1PQh8cxYLs5kxOlVi1lP74IMPhAeeroeXQsw==@debbugs.gnu.org X-Gm-Message-State: AOJu0YzxxM+tbHawBzEp9gzRaAJMWzlIXP7snEWvfHlLaO0ocgxcw+oY dIa1dRl1E6BKKbjcFfxcdEuaHY8r8VMHCu6EoXYI4RmwwdPWTg5Z1ERtfcqzmv+ivUcu4CYRvxa k4zYJab/RymUJprs5WzjuJPucr4s= X-Gm-Gg: ASbGncuTDscHIjjieqv6GnTyzr1xtHsDAwIdzHX6VGlwZcfKJgBfGDWsC+9JkyGVxt8 NDc+2v+Z94tchzpW11+7W2rIYsY2GV/veWtC6r0XVqJmh7FspveMA8sbR1LusoQedT7biR8m1 X-Google-Smtp-Source: AGHT+IF05kc9Oh/0t7X+9eoD1nGI+WqaQDs3rhYVuDoPp8AMNL8l4j00ON+iZFZ3biGtDGk9S4sp4HF6YdoRa3hPOIQ= X-Received: by 2002:a05:6102:d8e:b0:4ba:eb24:fb06 with SMTP id ada2fe7eead31-4bd3fcac20emr2697186137.6.1739723117744; Sun, 16 Feb 2025 08:25:17 -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> <CAN+1HbqRpn3eoO4D5guvmgTmqqEd0j77BDpF_RqtWqto7KsKjQ@HIDDEN> <CADwFkmk7KMfq98F3HC2rE7m+3YjxZi9GbNWdXe9iY832axRR+g@HIDDEN> In-Reply-To: <CADwFkmk7KMfq98F3HC2rE7m+3YjxZi9GbNWdXe9iY832axRR+g@HIDDEN> From: Ship Mints <shipmints@HIDDEN> Date: Sun, 16 Feb 2025 11:25:06 -0500 X-Gm-Features: AWEUYZm5_9iXjoOpKfMUOh0_OiorOxV2tg_GUjFcGT8hwuyXshbZHgUtMLbBMTI Message-ID: <CAN+1HbrQruioCOZRsj9HCXi5OqELoSvK3P8RDTGAf=HqbtDSsA@HIDDEN> Subject: Re: bug#75890: 31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el To: Stefan Kangas <stefankangas@HIDDEN> Content-Type: multipart/alternative; boundary="00000000000070dc73062e44da70" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 75890 Cc: =?UTF-8?B?QmrDtnJuIEJpZGFy?= <bjorn.bidar@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>, 75890 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN> 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 (-) --00000000000070dc73062e44da70 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable The tested behavior is that -2 gets loaded instead of an up-the-tree base file, so this is clearly wrong. When they are coincident, they are both loaded with -2 overriding. The behavior should either be: 1. .dir-locals-2.el is ignored if no corresponding .dir-locals.el is found in the same directory 2. .dir-locals-2.el is loaded iff there is a .dir-locals.el coincidental with, or located further up the tree. Let's decide and I'll propose a patch. On Sun, Feb 16, 2025 at 9:37=E2=80=AFAM Stefan Kangas <stefankangas@HIDDEN= om> wrote: > Ship Mints <shipmints@HIDDEN> writes: > > > 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 n= ot > > mean replace, as I thought. > > There is a better explanation in the manual: > > You can also use =E2=80=98.dir-locals-2.el=E2=80=99; if found in the = same directory > as =E2=80=98.dir-locals.el=E2=80=99, Emacs loads it in addition to = =E2=80=98.dir-locals.el=E2=80=99. > > I think we should improve the docstring; patches welcome. > > > The implementation of 'dir-locals-read-from-dir' does indeed overlay th= e > > values, with -2 values taking precedence. It seems that this is the > > intended behavior. > > Yes. > > > My inclination is to correct the behavior to have -2 take precedence wh= en > > 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. > > And the .dir-locals.el is still loaded, right? If so, I think this > makes sense, but the manual also has to be updated. > --00000000000070dc73062e44da70 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 tested behavior is that -2 gets loaded instead of an up-the-tree bas= e file, so this is clearly wrong.=C2=A0 When they are coincident, they are = both loaded with -2 overriding.=C2=A0 The behavior should either=C2=A0be:</= div><div class=3D"gmail_default" style=3D"font-family:monospace"><br></div>= <div class=3D"gmail_default" style=3D"font-family:monospace">1. .dir-locals= -2.el is ignored if no corresponding .dir-locals.el is found in the same di= rectory</div><div class=3D"gmail_default" style=3D"font-family:monospace"><= br></div><div class=3D"gmail_default" style=3D"font-family:monospace">2. .d= ir-locals-2.el is loaded iff there is a .dir-locals.el coincidental with, o= r located further up the tree.</div><div class=3D"gmail_default" style=3D"f= ont-family:monospace"><br></div><div class=3D"gmail_default" style=3D"font-= family:monospace">Let's decide and I'll propose a patch.</div></div= ><br><div class=3D"gmail_quote gmail_quote_container"><div dir=3D"ltr" clas= s=3D"gmail_attr">On Sun, Feb 16, 2025 at 9:37=E2=80=AFAM Stefan Kangas <= <a href=3D"mailto:stefankangas@HIDDEN">stefankangas@HIDDEN</a>> wr= ote:<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 Mints = <<a href=3D"mailto:shipmints@HIDDEN" target=3D"_blank">shipmints@gmai= l.com</a>> writes:<br> <br> > Looking deeper and gaining some clarity on this.<br> ><br> > The docstring for (defconst dir-locals-file definitely says the -local= s and<br> > -locals-2 files "in the same directory will override".=C2=A0= But this does not<br> > mean replace, as I thought.<br> <br> There is a better explanation in the manual:<br> <br> =C2=A0 =C2=A0 You can also use =E2=80=98.dir-locals-2.el=E2=80=99; if found= in the same directory<br> =C2=A0 =C2=A0 as =E2=80=98.dir-locals.el=E2=80=99, Emacs loads it in additi= on to =E2=80=98.dir-locals.el=E2=80=99.<br> <br> I think we should improve the docstring; patches welcome.<br> <br> > The implementation of 'dir-locals-read-from-dir' does indeed o= verlay the<br> > values, with -2 values taking precedence.=C2=A0 It seems that this is = the<br> > intended behavior.<br> <br> Yes.<br> <br> > My inclination is to correct the behavior to have -2 take precedence w= hen<br> > one is found at a level equal to or lower in the tree than .dir-locals= .el,<br> > overriding variables as implemented, and change the dir-locals-file<br= > > docstring.<br> <br> And the .dir-locals.el is still loaded, right?=C2=A0 If so, I think this<br= > makes sense, but the manual also has to be updated.<br> </blockquote></div> --00000000000070dc73062e44da70--
bug-gnu-emacs@HIDDEN
:bug#75890
; Package emacs
.
Full text available.Received: (at 75890) by debbugs.gnu.org; 16 Feb 2025 16:23:35 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 16 11:23:35 2025 Received: from localhost ([127.0.0.1]:36515 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tjhQd-0001sS-17 for submit <at> debbugs.gnu.org; Sun, 16 Feb 2025 11:23:35 -0500 Received: from mail-vk1-xa2e.google.com ([2607:f8b0:4864:20::a2e]:58674) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <shipmints@HIDDEN>) id 1tjhQY-0001s7-N4 for 75890 <at> debbugs.gnu.org; Sun, 16 Feb 2025 11:23:32 -0500 Received: by mail-vk1-xa2e.google.com with SMTP id 71dfb90a1353d-51eb1a6ca1bso1026662e0c.1 for <75890 <at> debbugs.gnu.org>; Sun, 16 Feb 2025 08:23:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739723005; x=1740327805; 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=4MmFnpz/4yMgP50W2xW9JtZ1ZM5gsxmBP9e5bCiq1vI=; b=niTvgmET6fBvx9wUEgoDVHCmMXqmU6XeBHb6u2Q+td59EfBsemrATzPeX/szoUvofa LKkZ+Lf6qdv+6Pl6cOt7U/CwsfB84QaK6K2Pb8VquLbbuIX6mdZqrGng6q6ebYSkcIAv vq4iVSgKGC3mK2gFH2t8YalS39+aeSm70xC3GnUc4yt7B+IOfAVI8qkv13FjVVuNQgUK 6jutDYlyLysBHuZBfZsO0xKJdi/Li6inFHB1aSGRrjAiACiq9EGhAcF+PkniDMnkey9m zT9U2KZXXR+bUvvvf5cCdLSr4BxT6jf0CNl5JT4dx92HNAZ6ySkULH3EdmaqjpA8fYu/ ShWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739723005; x=1740327805; 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=4MmFnpz/4yMgP50W2xW9JtZ1ZM5gsxmBP9e5bCiq1vI=; b=AU/KH/hpdra6vwB6LAydX/Qegvzv5xZQMmgAenXxWYbv5kwVzZVq30D9rcEMsgkZjw UIb4zjxlfRK79yrYjCTc4g03u49JTor25O62Kus+Cy0cHHMgEs6Sw01qreNH2F067RjN VXIqlgXE71N+BSw/DbFKLifzllp3X4sTCy/USMS8YmTxrEewzEBmMPyCv69HewDa7noX FowLybtE9ALE0SUL1xjFf1O3SZE2C2ETmsKzO83HvSnYC4YyUzLbyhOuJaX6ru297ncF tyF23IGZIcr/ety92/BruTpJDXk8W9cM0qSF0RdZhyvT+/ZqQKurRIVd7gnzPyFQLgn3 Ha5Q== X-Forwarded-Encrypted: i=1; AJvYcCWYjjbupvi77dkan9qvnIiSp+fNs77QpEjXhuzSdJE+oiz31RDcTWEZ8IenErEbnermPbvnBw==@debbugs.gnu.org X-Gm-Message-State: AOJu0YxcjFGFtV7/gtBn9pxMjy4JacdVhWZ6/O9NgwRDxxogKU65VSMg l1OqHnnNpZoNzbqGuhIcYcG79bmrDAQqWHZUSUKXTTgfGipf2ww/fl6F85gFIfAfhZKgWrTtedT W8z/DrtIbnuGGpM1yMcwJu5W61m8= X-Gm-Gg: ASbGncv/i41fCz7SdjxOmrTqiOYmYOvRN44HoHB6L8KCbZt0ybtSojLlDnKsuSegjUL Fdm49ra8zzM5kE5mcCyvcknVKZjuEHKQn7ISuIF0y4vmZ4jlg5ZmS1FcJdYRFHyy3V+FwTx7R X-Google-Smtp-Source: AGHT+IFfvcxTABKHOQhBmypQwriOJbP6V7YKOJWESs7n4fSjGVppGXfZmf/DHjyJMQMyVlGrks2+2zaHqN6/nACVVyE= X-Received: by 2002:a05:6122:2701:b0:520:6773:e5bf with SMTP id 71dfb90a1353d-5209da6c034mr1990716e0c.1.1739723004937; Sun, 16 Feb 2025 08:23:24 -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> <CAN+1HbqRpn3eoO4D5guvmgTmqqEd0j77BDpF_RqtWqto7KsKjQ@HIDDEN> <86r03yarpn.fsf@HIDDEN> In-Reply-To: <86r03yarpn.fsf@HIDDEN> From: Ship Mints <shipmints@HIDDEN> Date: Sun, 16 Feb 2025 11:23:13 -0500 X-Gm-Features: AWEUYZkiHJGH1tByTRB4-acJ1yvE31xXBxi9wSgNCEh623527KNYIdSrmvebBG4 Message-ID: <CAN+1Hbr==CZTs-L9nhaTuKVAC+rjie3kC-PCAx1+_G1Q8pFHrA@HIDDEN> Subject: Re: bug#75890: 31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el To: Eli Zaretskii <eliz@HIDDEN> Content-Type: multipart/alternative; boundary="000000000000b79338062e44d3d7" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 75890 Cc: bjorn.bidar@HIDDEN, 75890 <at> debbugs.gnu.org, monnier@HIDDEN 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 (-) --000000000000b79338062e44d3d7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Feb 16, 2025 at 9:29=E2=80=AFAM Eli Zaretskii <eliz@HIDDEN> wrote: > > From: Ship Mints <shipmints@HIDDEN> > > Date: Sun, 16 Feb 2025 09:09:58 -0500 > > Cc: Eli Zaretskii <eliz@HIDDEN>, Stefan Monnier < > monnier@HIDDEN>, 75890 <at> debbugs.gnu.org > > > > 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 th= e > 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? > > Ignoring .dir-locals.el because there's .dir-locals-2.el in the same > directory makes little sense to me, and its definitely a change in > behavior and contrary to the intent. > > I think the documented behavior makes a lot of sense, we just need to > make sure the ode behaves as documented. > The tested behavior is that -2 gets loaded instead of an up-the-tree base file, so this is clearly wrong. When they are coincident, they are both loaded with -2 overriding. --000000000000b79338062e44d3d7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon= t-family:monospace"><span style=3D"font-family:Arial,Helvetica,sans-serif">= On Sun, Feb 16, 2025 at 9:29=E2=80=AFAM Eli Zaretskii <<a href=3D"mailto= :eliz@HIDDEN">eliz@HIDDEN</a>> wrote:</span></div></div><div class=3D"= gmail_quote gmail_quote_container"><blockquote class=3D"gmail_quote" style= =3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding= -left:1ex">> From: Ship Mints <<a href=3D"mailto:shipmints@HIDDEN"= target=3D"_blank">shipmints@HIDDEN</a>><br> > Date: Sun, 16 Feb 2025 09:09:58 -0500<br> > Cc: Eli Zaretskii <<a href=3D"mailto:eliz@HIDDEN" target=3D"_blank= ">eliz@HIDDEN</a>>, Stefan Monnier <<a href=3D"mailto:monnier@HIDDEN= ontreal.ca" target=3D"_blank">monnier@HIDDEN</a>>, <a href=3D"= mailto:75890 <at> debbugs.gnu.org" target=3D"_blank">75890 <at> debbugs.gnu.org</a><b= r> > <br> > The docstring for (defconst dir-locals-file definitely says the -local= s and -locals-2 files "in the same directory<br> > will override".=C2=A0 But this does not mean replace, as I though= t.<br> > <br> > The implementation of 'dir-locals-read-from-dir' does indeed o= verlay the values, with -2 values taking<br> > precedence.=C2=A0 It seems that this is the intended behavior.<br> > <br> > The docstring for dir-locals-file is incorrect both in spirit and the = code in implementation.<br> > <br> > My inclination is to correct the behavior to have -2 take precedence w= hen one is found at a level equal to or<br> > lower in the tree than .dir-locals.el, overriding variables as impleme= nted, and change the dir-locals-file<br> > docstring.<br> > <br> > Thoughts?<br> <br> Ignoring .dir-locals.el because there's .dir-locals-2.el in the same<br= > directory makes little sense to me, and its definitely a change in<br> behavior and contrary to the intent.<br> <br> I think the documented behavior makes a lot of sense, we just need to<br> make sure the ode behaves as documented.<br></blockquote><div><br></div><di= v class=3D"gmail_default" style=3D"font-family:monospace">The tested behavi= or is that -2 gets loaded instead of an up-the-tree base file, so this is c= learly wrong.=C2=A0 When they are coincident, they are both loaded with -2 = overriding.</div></div></div> --000000000000b79338062e44d3d7--
bug-gnu-emacs@HIDDEN
:bug#75890
; Package emacs
.
Full text available.Received: (at 75890) by debbugs.gnu.org; 16 Feb 2025 14:37:52 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 16 09:37:52 2025 Received: from localhost ([127.0.0.1]:33053 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tjfmK-0001dq-16 for submit <at> debbugs.gnu.org; Sun, 16 Feb 2025 09:37:52 -0500 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]:49283) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>) id 1tjfmG-0001da-SW for 75890 <at> debbugs.gnu.org; Sun, 16 Feb 2025 09:37:49 -0500 Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-5deb1266031so6226824a12.2 for <75890 <at> debbugs.gnu.org>; Sun, 16 Feb 2025 06:37:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739716662; x=1740321462; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:from:to:cc:subject:date :message-id:reply-to; bh=w8rpbmEqXRpkOfy9ezOYOe4+TIigsvwIfKCQfc7ZfG4=; b=f3T6dyf1eWpPAZjF8CmAgrcHJetXLjwru0pq9hg1m8mW09Dp1GpKM+W5fUN7R6+css FxMbW3phEiKsRflpNjukqCu6rgc0vamYm98rY0VWWIXcd7QUFslvienu81G74bhA8DqK 9/ARkojGpIutmBpnoDPSf5pPflUHlgPGk0I8xN8JrSVtxOcszz8sX+tF0R5zsXF+3bmJ +MhojpS57xV6jzXe/PfGOekJivgbSC/lklW7bdp5wynFcfYEUSfn/jvq43X6WRJVPwvQ zv8BvstSnXE6B0dWQOTY4vF30+E+bwtL4lDtCxig+F4zlOhyRrzLYomQCaPtU16SDton Xa+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739716662; x=1740321462; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=w8rpbmEqXRpkOfy9ezOYOe4+TIigsvwIfKCQfc7ZfG4=; b=mi8gcBdQzSFPr1A0nuQvZglCsGPIpgPKWTBgLDL3HKllvbIsvDjZl8KauvGAdMwywM 0nYuULE0S6Hc/ATlun9Q0U8N0kGgPMJRwsm6+Qa3pKyrrvBWh5uZc23bzTgYfbTHGSv2 hvL+bnXd7hpb7+6tiuO4dLcA0OwxavjGFUYeEXIJObzj1RUNOibqCwobHKyG2cArz18F KgkmeJFu34mddj7W5kywySR5qCUayPL2OssX7bibVjNryEAdMAhiUsAZE0No/s4WP5BX Pe/Asg6YZeohtiXT6c19ojl3/qw2HygXXgYwdEadtfEkFzdal0wnYCdH5onSmrYSdgj5 NpRw== X-Forwarded-Encrypted: i=1; AJvYcCUmfnERaMqFpD7yBcVGKmZ/uDZu64iutrFVSv4bn/iAJj2ueVMUjGTwrmD15ct5N+2oorLGtQ==@debbugs.gnu.org X-Gm-Message-State: AOJu0YwCJnXk+YrwHKi4QwTqVl86300vc99Jx0wZ+X9V+oStJBdLSdMU RgTecm8v226VPbto/cFVWby0tqU3j0av+LXsc1m0liiV9EgIb/+hw56Rr7ZZ1V7i4EfDZvnGwaN ewy12LoU363yYzDBcgfCZio5FHNU= X-Gm-Gg: ASbGnct2uwrwYha1TG2wo/FChoQ+kDoQVZLKz/x/toeGWYo1enLe7uPugxyP85xNLw5 FCC95LFHhTh3aMUTAoswb0WCwQFjjPGYlSIaFM9pTlkqcCkvtmkrbB0brZXjK1qBVGH/7QKru38 k= X-Google-Smtp-Source: AGHT+IH4DycDjSN+goGrlr/TgHinldMX0ThzR0dVziUozJnbXHW325Ibbag3zMWhA9p/dJJ0nL2vhy7GRsOlvJRJUA0= X-Received: by 2002:a05:6402:13cb:b0:5de:a7db:3a7c with SMTP id 4fb4d7f45d1cf-5e03610c9bamr6201611a12.17.1739716662370; Sun, 16 Feb 2025 06:37:42 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 16 Feb 2025 14:37:42 +0000 From: Stefan Kangas <stefankangas@HIDDEN> In-Reply-To: <CAN+1HbqRpn3eoO4D5guvmgTmqqEd0j77BDpF_RqtWqto7KsKjQ@HIDDEN> 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> <CAN+1HbqRpn3eoO4D5guvmgTmqqEd0j77BDpF_RqtWqto7KsKjQ@HIDDEN> MIME-Version: 1.0 Date: Sun, 16 Feb 2025 14:37:42 +0000 X-Gm-Features: AWEUYZlPUYcKlwlqW8iVPtWwalIG1ePiA2ofhnXKGiKum9E5zN35ORFUCqI5jTo Message-ID: <CADwFkmk7KMfq98F3HC2rE7m+3YjxZi9GbNWdXe9iY832axRR+g@HIDDEN> Subject: Re: bug#75890: 31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el To: Ship Mints <shipmints@HIDDEN>, =?UTF-8?B?QmrDtnJuIEJpZGFy?= <bjorn.bidar@HIDDEN> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 75890 Cc: Eli Zaretskii <eliz@HIDDEN>, 75890 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN> 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 (-) Ship Mints <shipmints@HIDDEN> writes: > Looking deeper and gaining some clarity on this. > > The docstring for (defconst dir-locals-file definitely says the -locals a= nd > -locals-2 files "in the same directory will override". But this does not > mean replace, as I thought. There is a better explanation in the manual: You can also use =E2=80=98.dir-locals-2.el=E2=80=99; if found in the sa= me directory as =E2=80=98.dir-locals.el=E2=80=99, Emacs loads it in addition to =E2= =80=98.dir-locals.el=E2=80=99. I think we should improve the docstring; patches welcome. > 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. Yes. > 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. And the .dir-locals.el is still loaded, right? If so, I think this makes sense, but the manual also has to be updated.
bug-gnu-emacs@HIDDEN
:bug#75890
; Package emacs
.
Full text available.Received: (at 75890) by debbugs.gnu.org; 16 Feb 2025 14:29:23 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 16 09:29:23 2025 Received: from localhost ([127.0.0.1]:33010 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1tjfe7-00019U-34 for submit <at> debbugs.gnu.org; Sun, 16 Feb 2025 09:29:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59606) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tjfe4-00019E-G8 for 75890 <at> debbugs.gnu.org; Sun, 16 Feb 2025 09:29:21 -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 1tjfdz-00051I-0R; Sun, 16 Feb 2025 09:29:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=fWIn2kN59BPe4tcAqfXWlDPJYEVTDT6b6W5dE053BR0=; b=Bsy1Cazxmn6D 0wCgBUTk3UkjNuUUhmPVakq9yG6FxIAEBCwuxkNomhpsA1GsqE/ghcpxupei/NRjGu1lfJ8s3m9LM CIlFMSxWnU2PwW3s5QQy1kOoBXiaLTGjTZtFbeIy0VrYnEtaEvvzj9qQ0KbfhfQmOvTbFaI1qCqSz YU0qW/rm/syjGpDXwNbfxVFxPndKxCSQ3GpIrvTmjwpQXl+mocpsHp4rXOclVNqUXoDnOwpldp0lg NDkTSVQEzy9SRUZ2ElAvopbpiTLnQLkHmBGb53GDaOHI3W86ElIPm/XbQciA2Cj4eMINxTrAUG+4P mZsxO6gHqwT2mM3ZUL/1Ww==; Date: Sun, 16 Feb 2025 16:29:08 +0200 Message-Id: <86r03yarpn.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Ship Mints <shipmints@HIDDEN> In-Reply-To: <CAN+1HbqRpn3eoO4D5guvmgTmqqEd0j77BDpF_RqtWqto7KsKjQ@HIDDEN> (message from Ship Mints on Sun, 16 Feb 2025 09:09:58 -0500) Subject: Re: bug#75890: 31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el 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> <CAN+1HbqRpn3eoO4D5guvmgTmqqEd0j77BDpF_RqtWqto7KsKjQ@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 75890 Cc: bjorn.bidar@HIDDEN, 75890 <at> debbugs.gnu.org, monnier@HIDDEN 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: Ship Mints <shipmints@HIDDEN> > Date: Sun, 16 Feb 2025 09:09:58 -0500 > Cc: Eli Zaretskii <eliz@HIDDEN>, Stefan Monnier <monnier@HIDDEN>, 75890 <at> debbugs.gnu.org > > 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? Ignoring .dir-locals.el because there's .dir-locals-2.el in the same directory makes little sense to me, and its definitely a change in behavior and contrary to the intent. I think the documented behavior makes a lot of sense, we just need to make sure the ode behaves as documented.
bug-gnu-emacs@HIDDEN
:bug#75890
; Package emacs
.
Full text available.Received: (at 75890) by debbugs.gnu.org; 16 Feb 2025 14:10:18 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 16 09:10:18 2025 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> Subject: Re: bug#75890: 31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el To: =?UTF-8?B?QmrDtnJuIEJpZGFy?= <bjorn.bidar@HIDDEN> Content-Type: multipart/alternative; boundary="000000000000228368062e42f706" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 75890 Cc: Eli Zaretskii <eliz@HIDDEN>, 75890 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN> 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--
bug-gnu-emacs@HIDDEN
:bug#75890
; Package emacs
.
Full text available.Received: (at 75890) by debbugs.gnu.org; 16 Feb 2025 11:39:36 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 16 06:39:36 2025 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> Subject: Re: bug#75890: 31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el To: =?UTF-8?B?QmrDtnJuIEJpZGFy?= <bjorn.bidar@HIDDEN> Content-Type: multipart/alternative; boundary="0000000000001ea289062e40dc8e" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 75890 Cc: Eli Zaretskii <eliz@HIDDEN>, 75890 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN> 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--
bug-gnu-emacs@HIDDEN
:bug#75890
; Package emacs
.
Full text available.Received: (at 75890) by debbugs.gnu.org; 16 Feb 2025 00:18:28 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 15 19:18:28 2025 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> To: Ship Mints <shipmints@HIDDEN> Subject: Re: bug#75890: 31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el 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-Debbugs-Envelope-To: 75890 Cc: Eli Zaretskii <eliz@HIDDEN>, 75890 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN> 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.
bug-gnu-emacs@HIDDEN
:bug#75890
; Package emacs
.
Full text available.Received: (at 75890) by debbugs.gnu.org; 15 Feb 2025 11:45:32 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 15 06:45:32 2025 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> Subject: Re: bug#75890: 31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el To: Eli Zaretskii <eliz@HIDDEN> Content-Type: multipart/alternative; boundary="0000000000008ca114062e2cd3e8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 75890 Cc: bjorn.bidar@HIDDEN, 75890 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN> 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--
bug-gnu-emacs@HIDDEN
:bug#75890
; Package emacs
.
Full text available.Received: (at 75890) by debbugs.gnu.org; 15 Feb 2025 10:24:31 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sat Feb 15 05:24:31 2025 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> To: Stefan Monnier <monnier@HIDDEN> In-Reply-To: <jwvtt9fp9hc.fsf-monnier+emacs@HIDDEN> (message from Stefan Monnier on Fri, 31 Jan 2025 05:26:47 -0500) Subject: Re: bug#75890: 31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el 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-Debbugs-Envelope-To: 75890 Cc: bjorn.bidar@HIDDEN, 75890 <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 (---) > 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?
bug-gnu-emacs@HIDDEN
:bug#75890
; Package emacs
.
Full text available.Received: (at 75890) by debbugs.gnu.org; 31 Jan 2025 10:27:01 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 31 05:27:01 2025 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> To: Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#75890: 31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el 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-Debbugs-Envelope-To: 75890 Cc: =?windows-1252?Q?Bj=F6rn?= Bidar <bjorn.bidar@HIDDEN>, 75890 <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 (---) > 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
bug-gnu-emacs@HIDDEN
:bug#75890
; Package emacs
.
Full text available.Received: (at 75890) by debbugs.gnu.org; 30 Jan 2025 11:55:49 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 30 06:55:49 2025 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> To: =?utf-8?Q?Bj=C3=B6rn?= Bidar <bjorn.bidar@HIDDEN>, Stefan Monnier <monnier@HIDDEN> In-Reply-To: <87a5bb82oj.fsf@> (message from =?utf-8?Q?Bj=C3=B6rn?= Bidar on Tue, 28 Jan 2025 15:53:48 +0200) Subject: Re: bug#75890: 31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el 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-Debbugs-Envelope-To: 75890 Cc: 75890 <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 (---) > 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?
bug-gnu-emacs@HIDDEN
:bug#75890
; Package emacs
.
Full text available.Received: (at 75890) by debbugs.gnu.org; 28 Jan 2025 13:54:00 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 28 08:54:00 2025 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> To: Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#75890: 31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el 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: 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 [...] 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-Debbugs-Envelope-To: 75890 Cc: 75890 <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: 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.
bug-gnu-emacs@HIDDEN
:bug#75890
; Package emacs
.
Full text available.Received: (at 75890) by debbugs.gnu.org; 28 Jan 2025 12:32:44 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 28 07:32:43 2025 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> To: =?iso-8859-1?Q?Bj=F6rn?= Bidar <bjorn.bidar@HIDDEN> In-Reply-To: <874j1jvmoj.fsf@HIDDEN> (message from =?iso-8859-1?Q?Bj?= =?iso-8859-1?Q?=F6rn?= Bidar on Tue, 28 Jan 2025 01:53:16 +0200) Subject: Re: bug#75890: 31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el 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-Debbugs-Envelope-To: 75890 Cc: 75890 <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 (---) > 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.
bug-gnu-emacs@HIDDEN
:bug#75890
; Package emacs
.
Full text available.Received: (at 75890-done) by debbugs.gnu.org; 27 Jan 2025 23:53:29 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 27 18:53:29 2025 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> To: Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#75890: 31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el 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-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: -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.
bug-gnu-emacs@HIDDEN
:bug#75890
; Package emacs
.
Full text available.Received: (at 75890-done) by debbugs.gnu.org; 27 Jan 2025 23:47:57 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 27 18:47:57 2025 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> To: Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#75890: 31.0.50; dir-locals{-2}.el is only found in directory containing dir-locals.el 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-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: -1.0 (-) Oh that was fast, thanks.
bug-gnu-emacs@HIDDEN
:bug#75890
; Package emacs
.
Full text available.Received: (at 75890-done) by debbugs.gnu.org; 27 Jan 2025 13:20:54 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 27 08:20:54 2025 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.
Björn Bidar <bjorn.bidar@HIDDEN>
:Eli Zaretskii <eliz@HIDDEN>
:Received: (at submit) by debbugs.gnu.org; 27 Jan 2025 09:47:30 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 27 04:47:29 2025 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
Björn Bidar <bjorn.bidar@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#75890
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.