From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lawrence Mitchell Newsgroups: gmane.emacs.devel Subject: Re: Possible defvar bug Date: Mon, 18 Feb 2013 16:29:02 +0000 Message-ID: <87zjz18u29.fsf@gmx.li> References: <87d2vxr8h6.fsf@thinkpad.tsdh.de> <87obfhy8zc.fsf@gmail.com> <20130218150954.GA4583@acm.acm> <8738wty6hz.fsf@gmail.com> <340816FB6EB446BFBBCCCA6551E851E9@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1361204959 17207 80.91.229.3 (18 Feb 2013 16:29:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Feb 2013 16:29:19 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 18 17:29:42 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U7Tb3-0005fN-2z for ged-emacs-devel@m.gmane.org; Mon, 18 Feb 2013 17:29:41 +0100 Original-Received: from localhost ([::1]:36179 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7Taj-0000lH-4D for ged-emacs-devel@m.gmane.org; Mon, 18 Feb 2013 11:29:21 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44299) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7Tad-0000ky-Co for emacs-devel@gnu.org; Mon, 18 Feb 2013 11:29:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U7Tab-0008Jw-4Y for emacs-devel@gnu.org; Mon, 18 Feb 2013 11:29:15 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:47253) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7Taa-0008JZ-Ut for emacs-devel@gnu.org; Mon, 18 Feb 2013 11:29:13 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1U7Tar-0005Zl-AT for emacs-devel@gnu.org; Mon, 18 Feb 2013 17:29:29 +0100 Original-Received: from e4300lm.epcc.ed.ac.uk ([129.215.63.156]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 Feb 2013 17:29:29 +0100 Original-Received: from wence by e4300lm.epcc.ed.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 Feb 2013 17:29:29 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: e4300lm.epcc.ed.ac.uk User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:msOXiFa2VRSGxlodprQ33ne5g/Q= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:157137 Archived-At: Drew Adams wrote: >> See also documentation of `require' which should not be used inside >> `let' bindings for same reasons. > Hm. What doc of `require' mentions this? I looked at the doc string and > (elisp) `Named Features', but I didn't notice anything about this. It's in the discussion, rather than in the documentation of the individual functions on that page but: | (Note that it is important that the `require' statement be | outside the body of the `let'. Loading a library while its | variables are let-bound can have unintended consequences, | namely the variables becoming unbound after the let exits.) > I hope that the doc for this, wherever it might be, is more > specific than what you said, because I cannot imagine that such > a blanket statement is correct. Presumably, any potential > problem would depend on what variables the `let' binds? Indeed. I think that is what the paragraph is warning of. Lawrence -- Lawrence Mitchell