From: Lars Magne Ingebrigtsen <larsi@gnus.org>
Subject: Re: gnus-display-mime-function undefined -- resolved!
Date: 13 Nov 1998 19:56:33 +0100 [thread overview]
Message-ID: <m3iugjpgkd.fsf@sparky.gnus.org> (raw)
In-Reply-To: Hrvoje Niksic's message of "11 Nov 1998 20:38:33 +0100"
Hrvoje Niksic <hniksic@srce.hr> writes:
> This example is quite scary, since it proves that you have to be very
> careful about binding variables also defined in other files that are
> autoloaded at various inopportune moments. The scary part is that the
> buggy code looks quite innocuous, and yet it can mulfunction is some
> rarely repeated circumstances.
Yup. And, indeed, the same function has bitten us before:
;; We have to require this here to make sure that the following
;; dynamic binding isn't shadowed by autoloading.
(require 'gnus-async)
Which I'd forgotten all about. I've now required `gnus-art' as well.
I do wonder, though, whether this is a reasonable way for a Lisp to
work. I think
(progn
(let (var)
...
(load "file-where-var-is-defvarred"))
(boundp 'var))
=> nil
is somewhat wierd, although totally understandable.
--
(domestic pets only, the antidote for overdose, milk.)
larsi@gnus.org * Lars Magne Ingebrigtsen
next prev parent reply other threads:[~1998-11-13 18:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-11-11 19:38 Hrvoje Niksic
1998-11-13 18:56 ` Lars Magne Ingebrigtsen [this message]
1998-11-14 0:58 ` Hrvoje Niksic
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=m3iugjpgkd.fsf@sparky.gnus.org \
--to=larsi@gnus.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).