From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Richard Copley Newsgroups: gmane.emacs.bugs Subject: bug#37957: BibTeX dialect not set if local variables disabled Date: Mon, 28 Oct 2019 17:55:37 +0000 Message-ID: References: <87ftjcaojz.fsf@gnus.org> <87ftjc96yj.fsf@gnus.org> <87blu095z6.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000008e74c00595fc362c" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="94993"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 37957@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 28 20:19:51 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 1iPAYQ-000OaR-7B for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Oct 2019 20:19:50 +0100 Original-Received: from localhost ([::1]:54006 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iPAYN-0000Va-Dj for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Oct 2019 15:19:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53570) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iP9GJ-0006As-KF for bug-gnu-emacs@gnu.org; Mon, 28 Oct 2019 13:57:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iP9GI-0007mQ-C3 for bug-gnu-emacs@gnu.org; Mon, 28 Oct 2019 13:57:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37516) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iP9GI-0007m7-7N for bug-gnu-emacs@gnu.org; Mon, 28 Oct 2019 13:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iP9GH-0008KO-Vq for bug-gnu-emacs@gnu.org; Mon, 28 Oct 2019 13:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Richard Copley Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Oct 2019 17:57:01 +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.157228537331937 (code B ref 37957); Mon, 28 Oct 2019 17:57:01 +0000 Original-Received: (at 37957) by debbugs.gnu.org; 28 Oct 2019 17:56:13 +0000 Original-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 Original-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 Original-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) In-Reply-To: <87blu095z6.fsf@gnus.org> 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:170320 Archived-At: --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--