From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: "Roland Winkler" Newsgroups: gmane.emacs.bugs Subject: bug#37957: BibTeX dialect not set if local variables disabled Date: Mon, 28 Oct 2019 20:52:27 -0500 Message-ID: <39771.36515.154463.23991@gargle.gargle.HOWL> References: <87ftjcaojz.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="107656"; mail-complaints-to="usenet@blaine.gmane.org" Cc: Richard Copley , 37957@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 29 02:53:13 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iPGh5-000Rtb-SU for geb-bug-gnu-emacs@m.gmane.org; Tue, 29 Oct 2019 02:53:11 +0100 Original-Received: from localhost ([::1]:48400 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPGh4-0006iR-Oe for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Oct 2019 21:53:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51269) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPGgx-0006ht-MC for bug-gnu-emacs@gnu.org; Mon, 28 Oct 2019 21:53:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iPGgw-0008Rd-Nn for bug-gnu-emacs@gnu.org; Mon, 28 Oct 2019 21:53:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37829) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iPGgw-0008RZ-KJ for bug-gnu-emacs@gnu.org; Mon, 28 Oct 2019 21:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iPGgw-0004Rp-Hb for bug-gnu-emacs@gnu.org; Mon, 28 Oct 2019 21:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Roland Winkler" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Oct 2019 01:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37957 X-GNU-PR-Package: emacs Original-Received: via spool by 37957-submit@debbugs.gnu.org id=B37957.157231396017057 (code B ref 37957); Tue, 29 Oct 2019 01:53:02 +0000 Original-Received: (at 37957) by debbugs.gnu.org; 29 Oct 2019 01:52:40 +0000 Original-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 Original-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 Original-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 Original-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 In-Reply-To: <87ftjcaojz.fsf@gnus.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:170339 Archived-At: 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