From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Roland Winkler" Newsgroups: gmane.emacs.bugs Subject: bug#10254: 24.0.92; Local variable bibtex-dialect has no effect Date: Tue, 17 Jan 2012 14:45:15 -0600 Message-ID: <20245.56795.932415.683301@gargle.gargle.HOWL> 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; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1326833177 17661 80.91.229.12 (17 Jan 2012 20:46:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 17 Jan 2012 20:46:17 +0000 (UTC) Cc: Uwe Siart , 10254@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 17 21:46:13 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 1RnFv2-0003bE-Le for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Jan 2012 21:46:12 +0100 Original-Received: from localhost ([::1]:40128 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RnFv2-0001ea-5f for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Jan 2012 15:46:12 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:38256) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RnFuv-0001df-IY for bug-gnu-emacs@gnu.org; Tue, 17 Jan 2012 15:46:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RnFur-0006kP-8d for bug-gnu-emacs@gnu.org; Tue, 17 Jan 2012 15:46:05 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39191) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RnFur-0006k5-3U for bug-gnu-emacs@gnu.org; Tue, 17 Jan 2012 15:46:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RnFvq-0003UF-9n for bug-gnu-emacs@gnu.org; Tue, 17 Jan 2012 15:47:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Roland Winkler" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Jan 2012 20:47:02 +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.132683319913366 (code B ref 10254); Tue, 17 Jan 2012 20:47:02 +0000 Original-Received: (at 10254) by debbugs.gnu.org; 17 Jan 2012 20:46:39 +0000 Original-Received: from localhost ([127.0.0.1]:33864 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RnFvR-0003TW-Tj for submit@debbugs.gnu.org; Tue, 17 Jan 2012 15:46:38 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:36297) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RnFvO-0003TO-W0 for 10254@debbugs.gnu.org; Tue, 17 Jan 2012 15:46:36 -0500 Original-Received: from 82.red-80-32-229.staticip.rima-tde.net ([80.32.229.82]:52094 helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1RnFuH-0006ai-Md; Tue, 17 Jan 2012 15:45:31 -0500 In-Reply-To: X-Mailer: VM 8.2 trial under 24.0.92.1 (x86_64-unknown-linux-gnu) 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:55825 Archived-At: On Tue Jan 17 2012 Stefan Monnier wrote: > 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. I don't see a "normal" usage of bibtex.el where something in the init file could result in an early loading of this file such that it could matter where in the init file this variable is set. (The code has only three autoload cookies.) In other words: under "normal" circumstances the init file should be fully processed before bibtex.el is loaded. Also, like other packages the existing code of bibtex.el has more internal variables that would aquire wrong values if user variables are somehow set too late after loading. That's hard to avoid. Kind of (un)related: just a few days ago I rearranged my init file because it called appt-activate too early giving me rather strange side effects. (I have not debugged details.) > > 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). I'll modify the patch such that one can choose whether one gets local bindings or not. In any case, I want to provide a command that *can* bind bibtex-dialect buffer-locally because it's not completely trivial that the global / local value of this user variable matches the global / local values of various derived internal variables. Roland