From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: Re: require inside functions. Date: Fri, 8 Apr 2005 11:09:37 +0900 Message-ID: References: <87hdimzou0.fsf@xs4all.nl> <87ll7uwy6m.fsf_-_@xs4all.nl> <87sm22gm8p.fsf@tc-1-100.kawasaki.gol.ne.jp> <87vf6y6qso.fsf-monnier+emacs@gnu.org> Reply-To: snogglethorpe@gmail.com, miles@gnu.org NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1112926142 31499 80.91.229.2 (8 Apr 2005 02:09:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 8 Apr 2005 02:09:02 +0000 (UTC) Cc: emacs-devel@gnu.org, ding@gnus.org, Miles Bader Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 08 04:08:57 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DJivJ-0003Nw-HR for ged-emacs-devel@m.gmane.org; Fri, 08 Apr 2005 04:08:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DJiUj-0008I2-By for ged-emacs-devel@m.gmane.org; Thu, 07 Apr 2005 21:41:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DJiUb-0008Hi-Ga for emacs-devel@gnu.org; Thu, 07 Apr 2005 21:41:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DJiUZ-0008G9-Cn for emacs-devel@gnu.org; Thu, 07 Apr 2005 21:41:04 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DJiUX-0008Ev-AR for emacs-devel@gnu.org; Thu, 07 Apr 2005 21:41:01 -0400 Original-Received: from [64.233.184.193] (helo=wproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DJiwy-0005FP-AO for emacs-devel@gnu.org; Thu, 07 Apr 2005 22:10:24 -0400 Original-Received: by wproxy.gmail.com with SMTP id 40so615610wri for ; Thu, 07 Apr 2005 19:09:37 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=if30Jyi7Du5yJW87w+0G8q1M1FL8/+w+tXUIY/tqXksEZY+Sk8lrFYYZQSM7PurW6DAhKwacH7nHP6wh0s9r65a00rW29D8h6m5KkxL+dIZIW4qXtekqyjQx+6H4iX6cXUO+gXHM6f23T91u5BVtVbVZ8bpH5VzWsGUCmPWQeXE= Original-Received: by 10.54.20.77 with SMTP id 77mr1263494wrt; Thu, 07 Apr 2005 19:09:37 -0700 (PDT) Original-Received: by 10.54.19.32 with HTTP; Thu, 7 Apr 2005 19:09:37 -0700 (PDT) Original-To: Stefan Monnier In-Reply-To: <87vf6y6qso.fsf-monnier+emacs@gnu.org> X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:35728 gmane.emacs.gnus.general:60119 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35728 On Apr 8, 2005 9:45 AM, Stefan Monnier wrote: > > I don't understand it either, but ... if require doesn't actually load > > the file, surely nothing at all should be added to `current-load-list'? > > current-load-list is used to build load-history and it was recently > discovered that the (require . foo) entries should be added there, whether > the require did cause a load or not. Can you give a pointer to the discussion where it was discovered? I find it quite counter-intuitive (my intuition says "require should be a nop for an already-loaded feature"). -Miles -- Do not taunt Happy Fun Ball.