From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lute Kamstra Newsgroups: gmane.emacs.gnus.general,gmane.emacs.devel Subject: Re: require inside functions. Date: Fri, 15 Apr 2005 11:23:26 +0200 Message-ID: <87y8bko0kx.fsf@xs4all.nl> References: <871x9w9dkn.fsf@xs4all.nl> <87mzsezu5f.fsf@xs4all.nl> <87hdimzou0.fsf@xs4all.nl> <87ll7uwy6m.fsf_-_@xs4all.nl> <87zmw311om.fsf@xs4all.nl> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1113557170 1499 80.91.229.2 (15 Apr 2005 09:26:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 15 Apr 2005 09:26:10 +0000 (UTC) Cc: storm@cua.dk, reiner.steib@gmx.de, ding@gnus.org, emacs-devel@gnu.org, snogglethorpe@gmail.com, miles@gnu.org Original-X-From: ding-owner+M8687@lists.math.uh.edu Fri Apr 15 11:26:07 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DMN4m-0003GM-KV for ding-account@gmane.org; Fri, 15 Apr 2005 11:25:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1DMN3H-0008I5-00; Fri, 15 Apr 2005 04:23:51 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1DMN34-0008Hx-00 for ding@lists.math.uh.edu; Fri, 15 Apr 2005 04:23:38 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1DMN34-0004Zd-4x for ding@lists.math.uh.edu; Fri, 15 Apr 2005 04:23:38 -0500 Original-Received: from smtp-vbr13.xs4all.nl ([194.109.24.33]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1DMN33-00043y-00 for ; Fri, 15 Apr 2005 11:23:37 +0200 Original-Received: from pijl (a80-127-67-124.adsl.xs4all.nl [80.127.67.124]) by smtp-vbr13.xs4all.nl (8.12.11/8.12.11) with ESMTP id j3F9NWqj029304; Fri, 15 Apr 2005 11:23:32 +0200 (CEST) (envelope-from Lute.Kamstra@xs4all.nl) Original-Received: from lute by pijl with local (Exim 3.36 #1 (Debian)) id 1DMN2s-0001w5-00; Fri, 15 Apr 2005 11:23:26 +0200 Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Thu, 14 Apr 2005 22:44:47 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Original-Lines: 22 X-Virus-Scanned: by XS4ALL Virus Scanner X-Spam-Score: -4.9 (----) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:60160 gmane.emacs.devel:36015 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36015 Richard Stallman writes: > Did you perhaps mean to use load_in_progress instead of Vloads_in_progress? > > I meant to use Vloads_in_progress. Would load_in_progress do the same > job better? If so, I don't mind changing it. I browsed src/lread.c a bit and they seem equivalent in that you can use both of them to check if a load is in progress, which is the goal in Frequire. It's just that with load_in_progress the check is simpler. Using load_in_progress is also clearer due to the documentation/purpose of both variables: /* non-zero if inside `load' */ int load_in_progress; /* A list of file names for files being loaded in Fload. Used to check for recursive loads. */ static Lisp_Object Vloads_in_progress; Lute.