From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#10254: 24.0.92; Local variable bibtex-dialect has no effect Date: Tue, 17 Jan 2012 09:04:32 -0500 Message-ID: References: <844nxakxtd.fsf@tum.de> <4EE32275.26106.E38FFC3@uwe.siart.tum.de> <2rfwfoz6w2.fsf@fencepost.gnu.org> <20242.38530.735318.867329@gargle.gargle.HOWL> <20244.41728.921399.487290@gargle.gargle.HOWL> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1326809131 19896 80.91.229.12 (17 Jan 2012 14:05:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 17 Jan 2012 14:05:31 +0000 (UTC) Cc: Uwe Siart , 10254@debbugs.gnu.org To: "Roland Winkler" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 17 15:05:27 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rn9fC-0008Uk-Oi for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Jan 2012 15:05:26 +0100 Original-Received: from localhost ([::1]:33062 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rn9fC-0005kL-8n for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Jan 2012 09:05:26 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:45392) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rn9f8-0005j2-N9 for bug-gnu-emacs@gnu.org; Tue, 17 Jan 2012 09:05:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rn9ey-0000Ea-RH for bug-gnu-emacs@gnu.org; Tue, 17 Jan 2012 09:05:22 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38477) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rn9ey-00009n-Po for bug-gnu-emacs@gnu.org; Tue, 17 Jan 2012 09:05:12 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Rn9fm-0001eW-0C for bug-gnu-emacs@gnu.org; Tue, 17 Jan 2012 09:06:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Jan 2012 14:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10254 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10254-submit@debbugs.gnu.org id=B10254.13268091436322 (code B ref 10254); Tue, 17 Jan 2012 14:06:01 +0000 Original-Received: (at 10254) by debbugs.gnu.org; 17 Jan 2012 14:05:43 +0000 Original-Received: from localhost ([127.0.0.1]:33148 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rn9fS-0001du-HZ for submit@debbugs.gnu.org; Tue, 17 Jan 2012 09:05:42 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:22802) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rn9fO-0001dd-R8; Tue, 17 Jan 2012 09:05:40 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EAAd/FU9FxKkV/2dsb2JhbABEqxqBJYEFgQaBcgEBBAFWIwULCzQSFBgNJIgNtlOJXQIBAQgCDBEDCQEBBgEFHgoEAQIBAQUDAQEBAQKCeAEGAgMHAQQBAQEBKoNjBIg7mmOEUg X-IronPort-AV: E=Sophos;i="4.71,523,1320642000"; d="scan'208";a="157122587" Original-Received: from 69-196-169-21.dsl.teksavvy.com (HELO pastel.home) ([69.196.169.21]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 17 Jan 2012 09:04:32 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 61C92590AC; Tue, 17 Jan 2012 09:04:32 -0500 (EST) In-Reply-To: <20244.41728.921399.487290@gargle.gargle.HOWL> (Roland Winkler's message of "Mon, 16 Jan 2012 16:21:52 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:55815 Archived-At: >> > +(make-variable-buffer-local 'bibtex-dialect) >> I don't think you should force it to be buffer-local. Just leave it as >> a global setting by default, and just change the code so that if the >> user decides to make it local to some buffer, the rest of the code >> handles it properly. > This variable (and everything going with it) is new in Emacs 24. So > to some extent we have to speculate about "typical usage patterns" > of this variable. I'd expect one "typical" usage is to have (setq bibtex-dialect 'biblatex) in the .emacs file somewhere. With your new code, the effect of this setq will depend on whether bibtex.el is loaded before or after executing the setq. That's my main source of worry. > value of this variable in their init file. Yet when they want to set > this variable interactively (via the menu bar or the command I have no opinion on whether the interactive commands set it globally or buffer-locally, but that choice is orthogonal to the use of make-variable-buffer-local (just call make-local-variable in those commands if that's the behavior you're after). Stefan