From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: rusi Newsgroups: gmane.emacs.help Subject: Re: re-loading an elisp file Date: Mon, 7 Mar 2011 17:57:40 -0800 (PST) Organization: http://groups.google.com Message-ID: <4f3a474e-c076-4a50-ba71-07b7ae0823b8@v11g2000prb.googlegroups.com> References: <87bp1ptwn6.fsf@kuiper.lan.informatimago.com> <87r5alb4b2.fsf@rapttech.com.au> <2700f0cc-7c2a-46a3-a2d2-c2a34f3ddae9@z27g2000prz.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1299552047 7178 80.91.229.12 (8 Mar 2011 02:40:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 8 Mar 2011 02:40:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 08 03:40:41 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pwmqm-000454-8h for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Mar 2011 03:40:40 +0100 Original-Received: from localhost ([127.0.0.1]:42670 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pwmql-0005rn-JX for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Mar 2011 21:40:39 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!v11g2000prb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-NNTP-Posting-Host: 116.73.35.230 Original-X-Trace: posting.google.com 1299549460 25182 127.0.0.1 (8 Mar 2011 01:57:40 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 8 Mar 2011 01:57:40 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: v11g2000prb.googlegroups.com; posting-host=116.73.35.230; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:185716 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:79870 Archived-At: On Mar 8, 6:18=A0am, Kevin Rodgers wrote: > On 3/6/11 1:36 AM, Le Wang wrote: > > > On Sun, Mar 6, 2011 at 1:32 PM, rusi > > wrote: > ... > > =A0 =A0 This points out the real problem -- elisp is not a functional > > =A0 =A0 language. > > =A0 =A0 In (pure) functional languages the pattern (for loading) is to = 'clean > > =A0 =A0 the slate' and then load. IOW everything -- variable, function,= type > > =A0 =A0 -- that was defined in this module is first 'makunbounded' and = then > > =A0 =A0 the module is loaded. > > > =A0 =A0 It would certainly be worthwhile to have such a feature in emac= s. =A0I > > =A0 =A0 guess its not easy to do unless one has available the pair-list= of the > > =A0 =A0 form: ((var defined-in-file)...). > > =A0 =A0 Another problem that would probably muddy the waters are macros= ... > > Does M-x unload-feature meet the goals? Thanks -- looks interesting. But a first glance at it shows that it uses unload-function-defs-list and that is nil. Guess it must get populated at the appropriate time. When?