all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: "Roland Winkler" <winkler@gnu.org>
Cc: Uwe Siart <uwe.siart@tum.de>, 10254@debbugs.gnu.org
Subject: bug#10254: 24.0.92; Local variable bibtex-dialect has no effect
Date: Tue, 17 Jan 2012 09:04:32 -0500	[thread overview]
Message-ID: <jwv39bev36c.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <20244.41728.921399.487290@gargle.gargle.HOWL> (Roland Winkler's message of "Mon, 16 Jan 2012 16:21:52 -0600")

>> > +(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





  parent reply	other threads:[~2012-01-17 14:04 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-09  7:29 bug#10254: 24.0.92; Local variable bibtex-dialect has no effect Uwe Siart
2011-12-10  7:43 ` Glenn Morris
2011-12-10  9:12   ` Uwe Siart
2012-01-10  1:24     ` Glenn Morris
2012-01-10 18:33       ` Roland Winkler
2012-01-11  6:41         ` Uwe Siart
2012-01-11 10:46           ` Roland Winkler
2012-01-11 14:57             ` Uwe Siart
2012-01-15  9:04       ` Roland Winkler
2012-01-16 14:14         ` Stefan Monnier
2012-01-16 22:21           ` Roland Winkler
2012-01-17  5:44             ` Uwe Siart
2012-01-17 14:04             ` Stefan Monnier [this message]
2012-01-17 20:45               ` Roland Winkler
2012-01-17 21:21                 ` Stefan Monnier
2012-01-28  8:17                   ` Roland Winkler
2012-01-28 14:05                     ` Chong Yidong
2012-01-28 18:13                       ` Roland Winkler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwv39bev36c.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=10254@debbugs.gnu.org \
    --cc=uwe.siart@tum.de \
    --cc=winkler@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.