all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tsdh@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Richard Stallman <rms@gnu.org>, emacs-devel@gnu.org
Subject: Re: Possible defvar bug
Date: Wed, 20 Feb 2013 09:09:02 +0100	[thread overview]
Message-ID: <87liajxv8h.fsf@thinkpad.tsdh.de> (raw)
In-Reply-To: <jwvr4kb4zni.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Tue, 19 Feb 2013 19:08:49 -0500")

Stefan Monnier <monnier@iro.umontreal.ca> writes:

> Another option is to change defvar so that it changes the specpdl
> entry when the var is let-bound (i.e. so that the default is set when
> we leave the let, as if it had been set before).

That would be fine with me if it would apply not only to `defvar' but
also to `defcustom'.

The reason for the problematic code in AUCTeX was that the loading of
crm should be deferred up to the point when it's actually used, e.g.,
when just viewing some LaTeX file there's no need to have crm loaded.
Thus, it was required only in some lower-level completion function
that's actually using it, but some of its higher-level (indirect)
callers let-bound crm-separator as they needed.

The alternative is to require crm at any caller binding `crm-separator',
or to eagerly require it top-level.  I do the latter now, and with crm
which is rather small and doesn't require anything else, that's no big
deal, but there are probably other packages where let-binding a variable
makes sense and requiring the package triggers a cascading load of other
packages.

Bye,
Tassilo



  reply	other threads:[~2013-02-20  8:09 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-18 14:40 Possible defvar bug Tassilo Horn
2013-02-18 14:47 ` Jambunathan K
2013-02-18 14:58   ` Tassilo Horn
2013-02-18 15:00   ` Didier Verna
2013-02-18 15:09     ` Alan Mackenzie
2013-02-18 15:41       ` Thierry Volpiatto
2013-02-18 16:15         ` Drew Adams
2013-02-18 16:26           ` Thierry Volpiatto
2013-02-18 16:40             ` Drew Adams
2013-02-18 16:29           ` Lawrence Mitchell
2013-02-18 15:42       ` Tassilo Horn
2013-02-18 16:19       ` Didier Verna
2013-02-19  1:40 ` Glenn Morris
2013-02-19 15:25   ` Richard Stallman
2013-02-19 17:28     ` Stefan Monnier
2013-02-19 23:29       ` Richard Stallman
2013-02-20  0:08         ` Stefan Monnier
2013-02-20  8:09           ` Tassilo Horn [this message]
2013-02-20 14:05             ` Stefan Monnier
2013-02-20 21:36           ` Richard Stallman

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=87liajxv8h.fsf@thinkpad.tsdh.de \
    --to=tsdh@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=rms@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.