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, 10 Jan 2012 12:33:25 -0600 Message-ID: <20236.33909.640904.783097@gargle.gargle.HOWL> References: <844nxakxtd.fsf@tum.de> <4EE32275.26106.E38FFC3@uwe.siart.tum.de> <2rfwfoz6w2.fsf@fencepost.gnu.org> 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 1326220437 25766 80.91.229.12 (10 Jan 2012 18:33:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 10 Jan 2012 18:33:57 +0000 (UTC) Cc: Uwe Siart , 10254@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 10 19:33:51 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 1RkgW6-0007Mo-Eb for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Jan 2012 19:33:50 +0100 Original-Received: from localhost ([::1]:33419 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkgW6-0003Og-1r for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Jan 2012 13:33:50 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:32918) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkgW2-0003HI-Dg for bug-gnu-emacs@gnu.org; Tue, 10 Jan 2012 13:33:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RkgVy-0006qd-6q for bug-gnu-emacs@gnu.org; Tue, 10 Jan 2012 13:33:46 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58069) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RkgVy-0006qQ-4g for bug-gnu-emacs@gnu.org; Tue, 10 Jan 2012 13:33:42 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RkgWI-0002F4-EX for bug-gnu-emacs@gnu.org; Tue, 10 Jan 2012 13:34: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, 10 Jan 2012 18:34: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.13262204338601 (code B ref 10254); Tue, 10 Jan 2012 18:34:02 +0000 Original-Received: (at 10254) by debbugs.gnu.org; 10 Jan 2012 18:33:53 +0000 Original-Received: from localhost ([127.0.0.1]:52742 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RkgW8-0002Ef-DB for submit@debbugs.gnu.org; Tue, 10 Jan 2012 13:33:52 -0500 Original-Received: from essmail.ess.niu.edu ([131.156.1.18]:44826) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RkgW5-0002EV-KG for 10254@debbugs.gnu.org; Tue, 10 Jan 2012 13:33:50 -0500 Original-Received: from regnitz (lukas.physics.niu.edu [131.156.85.221]) by essmail.ess.niu.edu (8.14.3/8.14.3) with ESMTP id q0AIXPvR005966; Tue, 10 Jan 2012 12:33:26 -0600 (CST) In-Reply-To: <2rfwfoz6w2.fsf@fencepost.gnu.org> 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:55613 Archived-At: On Mon Jan 9 2012 Glenn Morris wrote: > > A better solution would be something like the following. However, it > seems that at present bibtex.el is simply not set up to handle a > buffer-local dialect. Eg none of the variables set by bibtex-set-dialect > (bibtex-entry-type etc) are buffer-local. So it won't work right if you > open multiple buffers with different dialects. To clarify the circumstances of the original bug report: Do you want to use buffer-local values of bibtex-dialect because you do have multiple BibTeX files, some of which use one BibTeX dialect, others use another dialect? -- Such a scenario is somewhat orthogonal to the general notion of BibTeX that should provide one database that is used for all LaTeX documents. That's why the current code was not set up to support such a scenario. Yet when I think about it now, I can imagine more rare cases that would benefit from buffer-local values of bibtex-dialect. In any case, buffer-local calls of bibtex-set-dialect are not enough to solve this problem but one also needs buffer-local values of the variables set by bibtex-set-dialect. Also, I do not consider this a bug. In my opinion, it's more a missing feature. So with Emacs 24 being already in pretest I am tempted to say it would be more appropriate to provide a proper fix in the next release of Emacs. I'll look into this. Roland