From unknown Sat Sep 13 13:16:20 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#37957 <37957@debbugs.gnu.org> To: bug#37957 <37957@debbugs.gnu.org> Subject: Status: BibTeX dialect not set if local variables disabled Reply-To: bug#37957 <37957@debbugs.gnu.org> Date: Sat, 13 Sep 2025 20:16:20 +0000 retitle 37957 BibTeX dialect not set if local variables disabled reassign 37957 emacs submitter 37957 Richard Copley severity 37957 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 28 05:46:27 2019 Received: (at submit) by debbugs.gnu.org; 28 Oct 2019 09:46:27 +0000 Received: from localhost ([127.0.0.1]:43843 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iP1bW-0001xn-I3 for submit@debbugs.gnu.org; Mon, 28 Oct 2019 05:46:26 -0400 Received: from lists.gnu.org ([209.51.188.17]:35565) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iP1bU-0001xb-R5 for submit@debbugs.gnu.org; Mon, 28 Oct 2019 05:46:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33142) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iP1bR-0002yh-KA for bug-gnu-emacs@gnu.org; Mon, 28 Oct 2019 05:46:23 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iP1bO-0002tV-Sg for bug-gnu-emacs@gnu.org; Mon, 28 Oct 2019 05:46:21 -0400 Received: from mail-ot1-x32c.google.com ([2607:f8b0:4864:20::32c]:35303) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iP1Zr-00020U-Kw; Mon, 28 Oct 2019 05:46:18 -0400 Received: by mail-ot1-x32c.google.com with SMTP id z6so6218232otb.2; Mon, 28 Oct 2019 02:44:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=eLNBdsaU105TYmSyXCieCR3lBxOMuRHxCCbGvQ8aTP8=; b=oUc3quGEJBnBGbnf0+aIFCo9bqoZaxOzFNU8mKkdZK+Az2uz1VS6tma/AqLqOrlboZ PsvLeCHn1VsBngPP7UeDJtArjvxmIRaw+0K0zC02uvoxc7yzw1LXRV9XszyhYDg6wLbs GTNO2SC+DQGjT5F2nxOMh6/8t/9vLkUuikWN5ZGACnyaP87t4VyMxbSh1QxE1umar5l3 vc4kra1M+toxqxrycCEhU25S2Zbq8i1Fp+hVrDUkHHkKf1qZkVyIJS59s316DYekWkZZ owT1ePZRco73x3QzbOIDyMOZ2K2LA72zDSuAKpjWzgRuJynWqMWwGIzELG6F+nQk2Rdw uOZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=eLNBdsaU105TYmSyXCieCR3lBxOMuRHxCCbGvQ8aTP8=; b=SCCVHuf/aNKAl/x2TvAWMysZc69iLZXQsotBKNl6cb5NeQn29EPMFUD4jN6l5UGF4G aJE/4erW3cgo1HWUm89fDU2fVta8n26yYav1gEGaEULELl5Pnvzr0e97O3NvaqG/k6es L77YdLIRSyL8Mzd61bRdDpLHw56MKo+fqHlyr+gof+jZn0T1ASVLDywceyCGpPxsY3o5 6Ocqg1frcGzN7sUSaqO3BsmRoGtyRFIhP+u9woXmF1HTJb5x9Za3Z4La6vkgJmbQBMKd Tb84ZTadEA2+vB8ezpaiO3FLodWNaxQJz4iT6UlkWhED/rWEfM0OqsioWDIwZ0SzEjez N2OA== X-Gm-Message-State: APjAAAUdmCue3VsHgQqMdnSs6naeQu8Uk06c9U6BKHYfzKEbu4IOe0vn crnahw8ibOfUQzCr5t1JOQ97T0+SOyCoMI04ZgSa94v2ZGQ= X-Google-Smtp-Source: APXvYqzTvjlkHgCZKb0QoK+66OvBwokDQefyPGIfl6AmYe8lBEpz5JTUV2f+FhP1ZTk/QKoebKyNcZ5rFwous5gMy1s= X-Received: by 2002:a05:6830:1b6d:: with SMTP id d13mr8036349ote.294.1572255881408; Mon, 28 Oct 2019 02:44:41 -0700 (PDT) MIME-Version: 1.0 From: Richard Copley Date: Mon, 28 Oct 2019 09:44:15 +0000 Message-ID: Subject: BibTeX dialect not set if local variables disabled To: bug-gnu-emacs@gnu.org, Roland Winkler Content-Type: multipart/alternative; boundary="0000000000004eb5de0595f559fc" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::32c X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --0000000000004eb5de0595f559fc Content-Type: text/plain; charset="UTF-8" >From "emacs -Q", * Set the variable 'enable-local-variables' to nil. * Visit a BibTeX (*.bib) file. * Wait one minute or eval (bibtex-parse-buffers-stealthily). Lisp error: (wrong-type-argument number-or-marker-p nil) Backtrace: 1+(nil) (buffer-substring-no-properties (1+ (match-beginning bibtex-type-in-head)) (match-end bibtex-type-in-head)) bibtex-type-in-head() (assoc-string (bibtex-type-in-head) bibtex-entry-alist t) [...] bibtex-parse-keys(t) bibtex-parse-buffers-stealthily() [...] On visiting a BibTeX file, if enable-local-variables is nil, 'bibtex-set-dialect' doesn't get called. This causes errors later on. For example, when 'bibtex-parse-buffers-stealthily' is called, we get the above error, because 'bibtex-entry-head' has not been set. Glancing at the history of 'bibtex-major-mode', this commit seems a likely candidate: ace88aa20f32b298e7f2e8e6115b5661504f8724 Author: Roland Winkler AuthorDate: Sat Jan 28 12:06:10 2012 -0600 lisp/textmodes/bibtex.el: allow bibtex-dialect as file-local variable (Bug#10254) --0000000000004eb5de0595f559fc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
From "emacs -Q",
* Set the variable 'enab= le-local-variables' to nil.
* Visit a BibTeX (*.bib) file.
* Wait= one minute or eval (bibtex-parse-buffers-stealthily).

Lisp error: (= wrong-type-argument number-or-marker-p nil)
Backtrace:
=C2=A0 1+(nil)=
=C2=A0 (buffer-substring-no-properties (1+ (match-beginning bibtex-type= -in-head)) (match-end bibtex-type-in-head))
=C2=A0 bibtex-type-in-head()=
=C2=A0 (assoc-string (bibtex-type-in-head) bibtex-entry-alist t)
=C2= =A0 [...]
=C2=A0 bibtex-parse-keys(t)
=C2=A0 bibtex-parse-buffers-ste= althily()
=C2=A0 [...]

On visiting a BibTeX file, if enable-local= -variables is nil, 'bibtex-set-dialect' doesn't get called. Thi= s causes errors later on. For example, when 'bibtex-parse-buffers-steal= thily' is called, we get the above error, because 'bibtex-entry-hea= d' has not been set. Glancing at the history of=C2=A0 'bibtex-major= -mode', this commit seems a likely candidate:

ace88aa20f32b298e7= f2e8e6115b5661504f8724
Author: Roland Winkler <winkler@gnu.org>
AuthorDate: Sat Jan 28 12:06:10 201= 2 -0600

lisp/textmodes/bibtex.el: allow bibtex-dialect as file-= local variable (Bug#10254)

--0000000000004eb5de0595f559fc-- From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 28 11:16:08 2019 Received: (at 37957) by debbugs.gnu.org; 28 Oct 2019 15:16:08 +0000 Received: from localhost ([127.0.0.1]:46163 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iP6kY-0007GK-Va for submit@debbugs.gnu.org; Mon, 28 Oct 2019 11:16:07 -0400 Received: from quimby.gnus.org ([80.91.231.51]:41856) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iP6kW-0007Dc-Ea for 37957@debbugs.gnu.org; Mon, 28 Oct 2019 11:16:04 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iP6kS-0000ND-LJ; Mon, 28 Oct 2019 16:16:03 +0100 From: Lars Ingebrigtsen To: Richard Copley Subject: Re: bug#37957: BibTeX dialect not set if local variables disabled References: Date: Mon, 28 Oct 2019 16:16:00 +0100 In-Reply-To: (Richard Copley's message of "Mon, 28 Oct 2019 09:44:15 +0000") Message-ID: <87ftjcaojz.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Richard Copley writes: > From "emacs -Q", > * Set the variable 'enable-local-variables' to nil. > * Visit a BibTeX (*.bib) file. > * Wait one minute or eval (bibtex-parse-buffers-stealthily). > > Lisp error: (wrong-type-arg [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 37957 Cc: 37957@debbugs.gnu.org, winkler@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Richard Copley writes: > From "emacs -Q", > * Set the variable 'enable-local-variables' to nil. > * Visit a BibTeX (*.bib) file. > * Wait one minute or eval (bibtex-parse-buffers-stealthily). > > Lisp error: (wrong-type-argument number-or-marker-p nil) > Backtrace: > 1+(nil) > (buffer-substring-no-properties (1+ (match-beginning bibtex-type-in-head)) > (match-end bibtex-type-in-head)) > bibtex-type-in-head() Do you have an example .bib file that can be used to reproduce this bug? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 28 12:21:31 2019 Received: (at 37957) by debbugs.gnu.org; 28 Oct 2019 16:21:31 +0000 Received: from localhost ([127.0.0.1]:46267 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iP7lr-0005dl-00 for submit@debbugs.gnu.org; Mon, 28 Oct 2019 12:21:31 -0400 Received: from quimby.gnus.org ([80.91.231.51]:42650) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iP7lo-0005da-R4 for 37957@debbugs.gnu.org; Mon, 28 Oct 2019 12:21:29 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iP7lk-00011k-Qf; Mon, 28 Oct 2019 17:21:27 +0100 From: Lars Ingebrigtsen To: Richard Copley Subject: Re: bug#37957: BibTeX dialect not set if local variables disabled References: <87ftjcaojz.fsf@gnus.org> Date: Mon, 28 Oct 2019 17:21:24 +0100 In-Reply-To: (Richard Copley's message of "Mon, 28 Oct 2019 16:14:48 +0000") Message-ID: <87ftjc96yj.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Richard Copley writes: > An empty file or scratch buffer, or the first BibTeX sample file you > can find on the web, will work fine. The contents aren't relevant. I was unable to reproduce the bug with an empty buffer, so if you could include one in the bug report, that would make things easier. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 37957 Cc: 37957@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Richard Copley writes: > An empty file or scratch buffer, or the first BibTeX sample file you > can find on the web, will work fine. The contents aren't relevant. I was unable to reproduce the bug with an empty buffer, so if you could include one in the bug report, that would make things easier. (And don't drop the debbugs address from the Cc -- otherwise the mail won't make it to the bug tracker.) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 28 12:33:37 2019 Received: (at 37957) by debbugs.gnu.org; 28 Oct 2019 16:33:37 +0000 Received: from localhost ([127.0.0.1]:46272 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iP7xZ-0005yR-6T for submit@debbugs.gnu.org; Mon, 28 Oct 2019 12:33:37 -0400 Received: from mail-oi1-f179.google.com ([209.85.167.179]:40688) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iP7xX-0005yA-Mb for 37957@debbugs.gnu.org; Mon, 28 Oct 2019 12:33:36 -0400 Received: by mail-oi1-f179.google.com with SMTP id r27so230109oij.7 for <37957@debbugs.gnu.org>; Mon, 28 Oct 2019 09:33:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XOoUJPVDlftmbIIyl6/7brKw5223p17W67gFZ4dBIoU=; b=hhnfdEnol/WrUCnageqXZiPyhOiK5zmBKXPxUwErpmS0DrdBaNjFHDJ2Le2RBLMLqT lHmNVtBuiw/XNgRM0gpXDHk0hiSXva9+NMtPooBjkqnqb4dLlmSCjij5sWIStD6/oDHb 3wSi2wB6vJHNkNhYJQ+yClPzIgr9LqjmdUuMUaPDnJBgqMNF6xg0u5jrtjLuPVW4FjWh IVlcfBFlsR07d0LMJE1NKxkXWoE+FxWB7uIvDdpgxtTYaA7dde1zzurffK4uz4+XPyb0 gZgmtCW/rdq/Zi8Ikl2/kI1SG6e1hMWKbG5ZuxoTMbpHhu+8Rk6jVJiUFIiaUfANOJHY kl/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XOoUJPVDlftmbIIyl6/7brKw5223p17W67gFZ4dBIoU=; b=fInAIU6yrvsaA1pDsOoUl3kOT1slNYF5T9H7yrSI8bgTnwWQ6Vg1wMdzd9zzmoJ1Fa kaOfeZh9D+zLeYo87cKGRX2ta2w26ZT24BzWp1gsWhxoDVdA5uP7kv2nLtekS7vdR16d AqExSJ46SbSx8tLA2lyXmvuiCf1Tq/VN/QhcIRKt8ufvHzFZxqccHB6U9n1XFQ361/Wl KpOqqh3JUMa3xy5RRDlIdq+zo8U9F7YJnFWoxqvjYjZCGBKKzLhz2/LAS9l+CfzqWnue vnHP6YMJTqGhWkHxD5GPCXHp5gK9pIbwz/kOJD+7ICjz5tO8rfPzSOYxdXDsNIh9Scf6 f+iQ== X-Gm-Message-State: APjAAAX5e6pDmXVcQoBQNl3ilhqSB8GbblRMb9eLlEgQmWrfs5Ae4X/5 VzAGwgXux126q6Vbh5+j57Sv+QM41jRy5RtmXnk= X-Google-Smtp-Source: APXvYqw4RWW4V4bChh+o85VCI81u2hFXa9TwKdvmiTpZ8KDLO3hTgndtE65FeEbMk4wt17e8IVrqYHE3LMX7I3gA0go= X-Received: by 2002:aca:df84:: with SMTP id w126mr116719oig.79.1572280409787; Mon, 28 Oct 2019 09:33:29 -0700 (PDT) MIME-Version: 1.0 References: <87ftjcaojz.fsf@gnus.org> <87ftjc96yj.fsf@gnus.org> In-Reply-To: <87ftjc96yj.fsf@gnus.org> From: Richard Copley Date: Mon, 28 Oct 2019 16:33:04 +0000 Message-ID: Subject: Re: bug#37957: BibTeX dialect not set if local variables disabled To: Lars Ingebrigtsen Content-Type: multipart/alternative; boundary="00000000000050124e0595fb0f26" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 37957 Cc: 37957@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --00000000000050124e0595fb0f26 Content-Type: text/plain; charset="UTF-8" On Mon, 28 Oct 2019 at 16:21, Lars Ingebrigtsen wrote: > Richard Copley writes: > > > An empty file or scratch buffer, or the first BibTeX sample file you > > can find on the web, will work fine. The contents aren't relevant. > > I was unable to reproduce the bug with an empty buffer, so if you could > include one in the bug report, that would make things easier. > No, it would be a waste of everybody's time. Try this one liner: emacs -Q -eval "(with-current-buffer \"*empty*\" (setq enable-local-variables nil) (bibtex-mode) (bibtex-parse-buffers-stealthily))" --00000000000050124e0595fb0f26 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Mon, 28 Oct 2019 at 16:21, Lars Ingebrigtsen <larsi@gnus.org> wrote:
Richard Copley <rcopley@gmail.com> writes:

> An empty file or scratch buffer, or the first BibTeX sample file you > can find on the web, will work fine. The contents aren't relevant.=

I was unable to reproduce the bug with an empty buffer, so if you could
include one in the bug report, that would make things easier.

No, it would be a waste of everybod= y's time. Try this one liner:

emacs -Q -eval "(with-current-buffer \&quo= t;*empty*\" (setq enable-local-variables nil) (bibtex-mode) (bibtex-pa= rse-buffers-stealthily))"

--00000000000050124e0595fb0f26-- From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 28 12:42:44 2019 Received: (at 37957) by debbugs.gnu.org; 28 Oct 2019 16:42:44 +0000 Received: from localhost ([127.0.0.1]:46281 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iP86O-0006Em-E2 for submit@debbugs.gnu.org; Mon, 28 Oct 2019 12:42:44 -0400 Received: from quimby.gnus.org ([80.91.231.51]:42980) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iP86M-0006Eb-BP for 37957@debbugs.gnu.org; Mon, 28 Oct 2019 12:42:42 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iP86I-0001JB-2j; Mon, 28 Oct 2019 17:42:40 +0100 From: Lars Ingebrigtsen To: Richard Copley Subject: Re: bug#37957: BibTeX dialect not set if local variables disabled References: <87ftjcaojz.fsf@gnus.org> <87ftjc96yj.fsf@gnus.org> Date: Mon, 28 Oct 2019 17:42:37 +0100 In-Reply-To: (Richard Copley's message of "Mon, 28 Oct 2019 16:33:04 +0000") Message-ID: <87blu095z6.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Richard Copley writes: > No, it would be a waste of everybody's time. Try this one liner: > > emacs -Q -eval "(with-current-buffer \"*empty*\" (setq enable-local-variables nil) > (bibtex-mode) (bibtex-parse-buffers-stealthi [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 37957 Cc: 37957@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Richard Copley writes: > No, it would be a waste of everybody's time. Try this one liner: > > emacs -Q -eval "(with-current-buffer \"*empty*\" (setq enable-local-variables nil) > (bibtex-mode) (bibtex-parse-buffers-stealthily))" "No buffer named *empty*" But even if I fix the expression, I'm still not able to reproduce the bug in Emacs 27. You didn't include the Emacs version in your bug report, unfortunately. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 28 13:56:12 2019 Received: (at 37957) by debbugs.gnu.org; 28 Oct 2019 17:56:13 +0000 Received: from localhost ([127.0.0.1]:46337 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iP9FS-0008J1-NQ for submit@debbugs.gnu.org; Mon, 28 Oct 2019 13:56:12 -0400 Received: from mail-oi1-f173.google.com ([209.85.167.173]:45719) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iP9FR-0008Ik-79 for 37957@debbugs.gnu.org; Mon, 28 Oct 2019 13:56:09 -0400 Received: by mail-oi1-f173.google.com with SMTP id k2so1530476oij.12 for <37957@debbugs.gnu.org>; Mon, 28 Oct 2019 10:56:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OmwLkew6Qyb8jTQCuH1+Tjk7YhWpue/KLCLvn3PF98M=; b=Yi0IDAz0QFcgQ3R/s+D3JMlFZh6syF/LEAwpnGAvaBEYDuttxVmrxrtwDOX0b8SIui ZT7w/am171WgO0fpTp+gXtUsRhYAHhs42rvpYuJQcqDdb+d6OAWh9nbDkRmCPFe+VDVj 2fxOkIr6vv9VbzTVdpzXS/oNZFlrGbGQj+bqtBEd4Tn/0QuRdz9BuPnaZirN6gGmOBip IvLpB2ENM1SluQOsM0UyIoUnoMLy2HaDJMq2wC8W+GxNFWErw2VBtNsvZAImpZkcjYyd aAM8lv3dP+EXOmn2xftJ2Cz1nQSvY4e/g4v2UPIuLNQSm/aPPRj4hIYI5lAsoC9YTAx7 r69A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OmwLkew6Qyb8jTQCuH1+Tjk7YhWpue/KLCLvn3PF98M=; b=oF5b5FvJF07nsEJJzVyBAZOnthbdBT5yZSLqoYnJyOcfeipJaTNpZ1lgtJ7HBOO3Fx qhRd+8QSg63JkU30h7nN4CHFF74my4G6hgdjDxw1C+qkpZ6KiRpVf1BvY8SYVQtcNMtP 1hF/NS8mkIhOw6hrefHuxxGeJXEmSI5xbHRPGdlzrjbbB6X/djDPYnQH0BAaPAxzXZqx zqDx9f0kI/00f4Q9GnzSBHsEvbT87jix7vHox4VkWplkTIfvf/gi2w1jZvST7LmZUIVy EkzSgfno21RPUMeDzFF2om414FfaR6c5mzA6DKUNCZjIGjVCz+Hda+e45GqN4MvjMEDK fLwA== X-Gm-Message-State: APjAAAVR2pTb9yOM0XrI5CCO+JZ97QYy6DVN3IaXxsVMqOm4NqKKJUFy y8I7P/g+FR4pJMyQ/KFENT4zMXvIFCfg2F2XAHQ= X-Google-Smtp-Source: APXvYqw8vdEQHRNHd54DAX9XYOUx0/lWglFuqFYQe7rBwb/Qne/k2LrSNNCRmjrgmrTSa0+xdApNg1Z7Fw9GeXkmxRU= X-Received: by 2002:aca:df84:: with SMTP id w126mr413250oig.79.1572285363154; Mon, 28 Oct 2019 10:56:03 -0700 (PDT) MIME-Version: 1.0 References: <87ftjcaojz.fsf@gnus.org> <87ftjc96yj.fsf@gnus.org> <87blu095z6.fsf@gnus.org> In-Reply-To: <87blu095z6.fsf@gnus.org> From: Richard Copley Date: Mon, 28 Oct 2019 17:55:37 +0000 Message-ID: Subject: Re: bug#37957: BibTeX dialect not set if local variables disabled To: Lars Ingebrigtsen Content-Type: multipart/alternative; boundary="0000000000008e74c00595fc362c" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 37957 Cc: 37957@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --0000000000008e74c00595fc362c Content-Type: text/plain; charset="UTF-8" On Mon, 28 Oct 2019 at 16:42, Lars Ingebrigtsen wrote: > Richard Copley writes: > > > No, it would be a waste of everybody's time. Try this one liner: > > > > emacs -Q -eval "(with-current-buffer \"*empty*\" (setq enable-local-variables nil) > > (bibtex-mode) (bibtex-parse-buffers-stealthily))" > > "No buffer named *empty*" emacs -Q -eval "(with-current-buffer \"*scratch*\" (setq enable-local-variables nil) (bibtex-mode) (bibtex-parse-buffers-stealthily))" > But even if I fix the expression, I'm still not able to reproduce the > bug in Emacs 27. You didn't include the Emacs version in your bug > report, unfortunately. Curious! Works for me on current master (built from a fresh checkout just now) and the FSF builds of Emacs 24.5 (i686) and Emacs 26.3 (x86_64), on Windows. Ah hah, but not on Debian (on Emacs built from master a few months ago). That's a surprise. Just to be sure, here's an unambiguous specification of a recipe that does work, for me, in all of those environments. From 'emacs -Q', M-x set-variable RET enable-local-variables RET nil RET M-x bibtex-mode RET M-: (bibtex-parse-buffers-stealthily) RET --0000000000008e74c00595fc362c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, 28 Oct 2019 at 16:42, Lars Ingebrigtsen <larsi@gnus.org> wrote:=
> Richard Copley <rcopley@gmail.com> writes:
>
> > No, it would= be a waste of everybody's time. Try this one liner:
> >
&g= t; > emacs -Q -eval "(with-current-buffer \"*empty*\" (se= tq enable-local-variables nil)
> > (bibtex-mode) (bibtex-parse-buf= fers-stealthily))"
>
> "No buffer named *empty*"=

emacs -Q -eval "(with-current-buffer \"*scratch*\" (= setq enable-local-variables nil) (bibtex-mode) (bibtex-parse-buffers-stealt= hily))"

> But even if I fix the expression, I'm still no= t able to reproduce the
> bug in Emacs 27. You didn't include the= Emacs version in your bug
> report, unfortunately.

Curious! W= orks for me on current master (built from a fresh checkout just now) and th= e FSF builds of Emacs 24.5 (i686) and Emacs 26.3 (x86_64), on Windows.
A= h hah, but not on Debian (on Emacs built from master a few months ago). Tha= t's a surprise.

Just to be sure, here's an unambiguous = specification of a recipe that does work, for me, in all of those environme= nts. From 'emacs -Q',

M-x set-variable RET enable-local-va= riables RET nil RET
M-x bibtex-mode RET
M-: (bibtex-parse-buff= ers-stealthily) RET

--0000000000008e74c00595fc362c-- From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 28 14:54:43 2019 Received: (at 37957) by debbugs.gnu.org; 28 Oct 2019 18:54:43 +0000 Received: from localhost ([127.0.0.1]:46351 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iPAA6-0001TA-Vm for submit@debbugs.gnu.org; Mon, 28 Oct 2019 14:54:43 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53809) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iPAA4-0001Sw-KA for 37957@debbugs.gnu.org; Mon, 28 Oct 2019 14:54:41 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52050) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iPA9z-00054F-CF; Mon, 28 Oct 2019 14:54:35 -0400 Received: from [176.228.60.248] (port=1868 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iPA9y-00069w-MS; Mon, 28 Oct 2019 14:54:35 -0400 Date: Mon, 28 Oct 2019 20:54:29 +0200 Message-Id: <83pnigr996.fsf@gnu.org> From: Eli Zaretskii To: Lars Ingebrigtsen In-reply-to: <87blu095z6.fsf@gnus.org> (message from Lars Ingebrigtsen on Mon, 28 Oct 2019 17:42:37 +0100) Subject: Re: bug#37957: BibTeX dialect not set if local variables disabled References: <87ftjcaojz.fsf@gnus.org> <87ftjc96yj.fsf@gnus.org> <87blu095z6.fsf@gnus.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 37957 Cc: rcopley@gmail.com, 37957@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Lars Ingebrigtsen > Date: Mon, 28 Oct 2019 17:42:37 +0100 > Cc: 37957@debbugs.gnu.org > > Richard Copley writes: > > > No, it would be a waste of everybody's time. Try this one liner: > > > > emacs -Q -eval "(with-current-buffer \"*empty*\" (setq enable-local-variables nil) > > (bibtex-mode) (bibtex-parse-buffers-stealthily))" > > "No buffer named *empty*" > > But even if I fix the expression, I'm still not able to reproduce the > bug in Emacs 27. You didn't include the Emacs version in your bug > report, unfortunately. FWIW, reproduces fine here, both with Emacs 26.3 and Emacs 27, both on MS-Windows and on GNU/Linux. From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 28 21:52:40 2019 Received: (at 37957) by debbugs.gnu.org; 29 Oct 2019 01:52:40 +0000 Received: from localhost ([127.0.0.1]:46650 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iPGgZ-0004R2-8M for submit@debbugs.gnu.org; Mon, 28 Oct 2019 21:52:40 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42144) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iPGgW-0004Qp-Bm for 37957@debbugs.gnu.org; Mon, 28 Oct 2019 21:52:37 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59367) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iPGgR-0008H3-2W; Mon, 28 Oct 2019 21:52:31 -0400 Received: from [2601:240:8300:d3d0:248b:bf11:be2e:5309] (port=38366 helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1iPGgN-0001U9-P5; Mon, 28 Oct 2019 21:52:29 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <39771.36515.154463.23991@gargle.gargle.HOWL> Date: Mon, 28 Oct 2019 20:52:27 -0500 From: "Roland Winkler" To: Lars Ingebrigtsen Subject: Re: bug#37957: BibTeX dialect not set if local variables disabled In-Reply-To: <87ftjcaojz.fsf@gnus.org> References: <87ftjcaojz.fsf@gnus.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 37957 Cc: Richard Copley , 37957@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) On Mon Oct 28 2019 Lars Ingebrigtsen wrote: > Do you have an example .bib file that can be used to reproduce this bug? I can, indeed, reproduce this with `emacs -Q', setting enable-local-variables to nil and then loading any BibTeX file. Yet it is not clear to me what is the proper solution for this. Currently, bibtex-mode makes bibtex-set-dialect an element of hack-local-variables-hook. This hook is called only if enable-local-variables is non-nil. Of course, bibtex-mode could call bibtex-set-dialect directly if enable-local-variables is nil. Yet I guess that enable-local-variables being nil may break more things if hack-local-variables-hook is not called. If nothing else, we could mention in the docstring of hack-local-variables-hook that this hook is not called if enable-local-variables is nil. Roland From debbugs-submit-bounces@debbugs.gnu.org Tue Oct 29 07:24:37 2019 Received: (at 37957) by debbugs.gnu.org; 29 Oct 2019 11:24:38 +0000 Received: from localhost ([127.0.0.1]:46954 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iPPc5-00044I-JS for submit@debbugs.gnu.org; Tue, 29 Oct 2019 07:24:37 -0400 Received: from quimby.gnus.org ([80.91.231.51]:54970) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iPPc3-000446-Ry for 37957@debbugs.gnu.org; Tue, 29 Oct 2019 07:24:36 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iPPc0-0007rn-HT; Tue, 29 Oct 2019 12:24:34 +0100 From: Lars Ingebrigtsen To: Richard Copley Subject: Re: bug#37957: BibTeX dialect not set if local variables disabled References: <87ftjcaojz.fsf@gnus.org> <87ftjc96yj.fsf@gnus.org> <87blu095z6.fsf@gnus.org> Date: Tue, 29 Oct 2019 12:24:32 +0100 In-Reply-To: (Richard Copley's message of "Mon, 28 Oct 2019 17:55:37 +0000") Message-ID: <87sgnb23rj.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Richard Copley writes: >> But even if I fix the expression, I'm still not able to reproduce the >> bug in Emacs 27. You didn't include the Emacs version in your bug >> report, unfortunately. > > Curious! Works for me on cur [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 37957 Cc: 37957@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Richard Copley writes: >> But even if I fix the expression, I'm still not able to reproduce the >> bug in Emacs 27. You didn't include the Emacs version in your bug >> report, unfortunately. > > Curious! Works for me on current master (built from a fresh checkout just now) > and the FSF builds of Emacs 24.5 (i686) and Emacs 26.3 (x86_64), on Windows. > Ah hah, but not on Debian (on Emacs built from master a few months ago). > That's a surprise. How odd. I am indeed using Debian, and the test case doesn't fail on the trunk, nor on Emacs 26.1 included in the distribution. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 30 12:33:04 2019 Received: (at 37957) by debbugs.gnu.org; 30 Oct 2019 16:33:04 +0000 Received: from localhost ([127.0.0.1]:51365 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iPqu8-0005HK-Do for submit@debbugs.gnu.org; Wed, 30 Oct 2019 12:33:04 -0400 Received: from mail-ot1-f45.google.com ([209.85.210.45]:34248) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iPqu6-0005Gn-5o for 37957@debbugs.gnu.org; Wed, 30 Oct 2019 12:33:03 -0400 Received: by mail-ot1-f45.google.com with SMTP id m19so2706146otp.1 for <37957@debbugs.gnu.org>; Wed, 30 Oct 2019 09:33:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=+ZQCQELtxFeIblNkbmg8Im6UXl0JpoE9JqaJdNBxUlw=; b=ON3lpZAoZgIfzoLwcH7EN5Kr3o7c4eHll0Th5ivpZ9wLTTd/hiRtRCm16rUDbay5mD 6rOpy9SJbwmLIYNcZEAPXYKuTIMnHu1Bo+dQ/b9nu+lAdkDTxz6aYf4e2FCx3RI++ooP o4umjFSeVJRgExX/TSWCUyhfXRgEqpSoGo1O+w0EXNI49hf3wKHUXUnA0RKEc91G9kuI JmIruSnnsP0F9bsjFbj3sg91ud6r4YAV3cxBd/XwngEdOeXX+ZWmrfavuh3XQ9OKbnSa fReGMiM3TEByg6GSMK+heN62BWfneXyt7py9bw9mYFNrPc0l1uFy6VnpYHgzdpAoBKjX lDqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=+ZQCQELtxFeIblNkbmg8Im6UXl0JpoE9JqaJdNBxUlw=; b=AeArp6KMC7v69YzTAlsdQSzPNJU7oNyJsyF7WRPsRzAVw4dnnu8HvUH/+EDb3DFiKJ t8I3D3vyOnZa0Hh/cLB8UFEJHdxLwE8PlGFtz76BGpCC3vFylmSSDaJaSEJQWUPaMIK9 L7AhiynpbYgqWI3qJVTr9TTV3Od0O7uJSQcjUmakC612da/gcTuHLf8jNN9EqLKcZSDO MWCkj4fH9lrBV5RwnweJ5zyHrr6uiUyFdF8/yFeqGmydiJgrmsuBNJbmPRjuX0MmQ6U0 mZzv25mpA4DsDiTmfeT0dfxH/N7kLehmBS0z9LJGWyMEsyiUNufmvZjWa+GaIbCCYJJK jkww== X-Gm-Message-State: APjAAAUdkhMknVA7jGLvpjoOS6dQNw//6kR0/MzoRjcdtwrotFl0rSm4 k3ZM2Zt4KzazD0aRZWmF9WvFjOnIexiJ0kW3fEcOtV+8bT8= X-Google-Smtp-Source: APXvYqyoJvA4m5wXjpthhLlNmk+KLxAcINjaot6kRf3qmvEJV24JOI22ctmUADG8HGQJ4SOEhI+qh7sXJ/0fEzxux+Y= X-Received: by 2002:a9d:286:: with SMTP id 6mr665381otl.192.1572453176298; Wed, 30 Oct 2019 09:32:56 -0700 (PDT) MIME-Version: 1.0 References: <87ftjcaojz.fsf@gnus.org> <39771.36515.154463.23991@gargle.gargle.HOWL> In-Reply-To: <39771.36515.154463.23991@gargle.gargle.HOWL> From: Richard Copley Date: Wed, 30 Oct 2019 16:32:30 +0000 Message-ID: Subject: Re: bug#37957: BibTeX dialect not set if local variables disabled To: Roland Winkler Content-Type: multipart/alternative; boundary="000000000000ffcfe90596234867" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 37957 Cc: Lars Ingebrigtsen , 37957@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --000000000000ffcfe90596234867 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 29 Oct 2019 at 01:52, Roland Winkler wrote: > On Mon Oct 28 2019 Lars Ingebrigtsen wrote: > > Do you have an example .bib file that can be used to reproduce this bug= ? > > I can, indeed, reproduce this with `emacs -Q', setting > enable-local-variables to nil and then loading any BibTeX file. > > Yet it is not clear to me what is the proper solution for this. > > Currently, bibtex-mode makes bibtex-set-dialect an element of > hack-local-variables-hook. This hook is called only if > enable-local-variables is non-nil. Of course, bibtex-mode could > call bibtex-set-dialect directly if enable-local-variables is nil. > Yet I guess that enable-local-variables being nil may break more > things if hack-local-variables-hook is not called. Did you have something in mind? I don't see how it might break anything for BibTeX mode. If it breaks something elsewhere, that is a separate bug. > If nothing else, we could mention in the docstring of > hack-local-variables-hook that this hook is not called if > enable-local-variables is nil. Perhaps, but it is clear from the existing docstring ("[...] run after processing a file=E2=80=99s local variables specs"), in my opinion. --000000000000ffcfe90596234867 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, 29 Oct 2019 at 01:52, Roland Winkler <winkler@gnu.org> wrote:
> On Mon O= ct 28 2019 Lars Ingebrigtsen wrote:
> > Do you have an example .bi= b file that can be used to reproduce this bug?
>
> I can, indee= d, reproduce this with `emacs -Q', setting
> enable-local-variabl= es to nil and then loading any BibTeX file.
>
> Yet it is not c= lear to me what is the proper solution for this.
>
> Currently,= bibtex-mode makes bibtex-set-dialect an element of
> hack-local-vari= ables-hook.=C2=A0 This hook is called only if
> enable-local-variable= s is non-nil.=C2=A0 Of course, bibtex-mode could
> call bibtex-set-di= alect directly if enable-local-variables is nil.
> Yet I guess that e= nable-local-variables being nil may break more
> things if hack-local= -variables-hook is not called.

Did you have something in mind? I don= 't see how it might break anything for BibTeX mode. If it breaks someth= ing elsewhere, that is a separate bug.

> If nothing else, we coul= d mention in the docstring of
> hack-local-variables-hook that this h= ook is not called if
> enable-local-variables is nil.

Per= haps, but it is clear from the existing docstring ("[...] run after pr= ocessing a file=E2=80=99s local variables specs"), in my opinion.

--000000000000ffcfe90596234867-- From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 30 14:21:57 2019 Received: (at 37957) by debbugs.gnu.org; 30 Oct 2019 18:21:57 +0000 Received: from localhost ([127.0.0.1]:51441 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iPsbV-0001en-0M for submit@debbugs.gnu.org; Wed, 30 Oct 2019 14:21:57 -0400 Received: from eggs.gnu.org ([209.51.188.92]:40859) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iPsbT-0001ec-TG for 37957@debbugs.gnu.org; Wed, 30 Oct 2019 14:21:56 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:38029) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iPsbO-0003ro-Ng; Wed, 30 Oct 2019 14:21:50 -0400 Received: from [2601:240:8300:d3d0:248b:bf11:be2e:5309] (port=45448 helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1iPsbN-0003Yn-SU; Wed, 30 Oct 2019 14:21:50 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-ID: <54460.90500.904332.23993@gargle.gargle.HOWL> Date: Wed, 30 Oct 2019 13:21:48 -0500 From: "Roland Winkler" To: Richard Copley Subject: Re: bug#37957: BibTeX dialect not set if local variables disabled In-Reply-To: References: <87ftjcaojz.fsf@gnus.org> <39771.36515.154463.23991@gargle.gargle.HOWL> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 37957 Cc: Lars Ingebrigtsen , 37957@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) On Wed Oct 30 2019 Richard Copley wrote: > On Tue, 29 Oct 2019 at 01:52, Roland Winkler wrote: > > Yet I guess that enable-local-variables being nil may break more > > things if hack-local-variables-hook is not called. >=20 > Did you have something in mind? I don't see how it might break > anything for BibTeX mode. If it breaks something elsewhere, that > is a separate bug. I was thinking of other packages using hack-local-variables-hook. Yet I just checked that for the packages distributed with emacs, this hook appears to be not overly popular. So maybe my worries are not justified. > > If nothing else, we could mention in the docstring of > > hack-local-variables-hook that this hook is not called if > > enable-local-variables is nil. >=20 > Perhaps, but it is clear from the existing docstring ("[...] run after > processing a file=E2=80=99s local variables specs"), in my opinion. When I added bibtex-set-dialect to hack-local-variables-hook, I did not even anticipate the existence of a user variable enable-local-variables that could make this patch go wrong. I see no damage if this point gets mentioned in the docstring of hack-local-variables-hook. Roland From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 02 14:54:11 2020 Received: (at 37957-done) by debbugs.gnu.org; 2 Dec 2020 19:54:11 +0000 Received: from localhost ([127.0.0.1]:37447 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kkYCZ-0008CM-9b for submit@debbugs.gnu.org; Wed, 02 Dec 2020 14:54:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50770) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kkYCW-0008C3-JX for 37957-done@debbugs.gnu.org; Wed, 02 Dec 2020 14:54:10 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:56403) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkYCR-0002yL-5G; Wed, 02 Dec 2020 14:54:03 -0500 Received: from [2602:30a:2e52:d720:65b7:1416:12e7:8bfb] (port=45372 helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1kkYCQ-0000oE-A6; Wed, 02 Dec 2020 14:54:02 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <61656.7703.604711.24519@gargle.gargle.HOWL> Date: Wed, 2 Dec 2020 13:54:00 -0600 From: "Roland Winkler" To: Richard Copley , Lars Ingebrigtsen , 37957-done@debbugs.gnu.org Subject: Re: bug#37957: BibTeX dialect not set if local variables disabled In-Reply-To: <54460.90500.904332.23993@gargle.gargle.HOWL> References: <87ftjcaojz.fsf@gnus.org> <39771.36515.154463.23991@gargle.gargle.HOWL> <54460.90500.904332.23993@gargle.gargle.HOWL> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 37957-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Fixed with commit 40f42945ed1ee76c16ee4c58c7f37a412a3aa407. From unknown Sat Sep 13 13:16:20 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 31 Dec 2020 12:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator