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 18:01:34 -0800 (PST) Organization: http://groups.google.com Message-ID: <4d5089aa-a682-4e8d-b7eb-9970b57dc715@17g2000prr.googlegroups.com> References: <87bp1ptwn6.fsf@kuiper.lan.informatimago.com> <87r5alb4b2.fsf@rapttech.com.au> <2700f0cc-7c2a-46a3-a2d2-c2a34f3ddae9@z27g2000prz.googlegroups.com> <4f3a474e-c076-4a50-ba71-07b7ae0823b8@v11g2000prb.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 7180 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:42 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-000463-TZ for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Mar 2011 03:40:41 +0100 Original-Received: from localhost ([127.0.0.1]:42675 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pwmqm-0005s9-Dy for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Mar 2011 21:40:40 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!17g2000prr.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 41 Original-NNTP-Posting-Host: 116.73.35.230 Original-X-Trace: posting.google.com 1299549694 26098 127.0.0.1 (8 Mar 2011 02:01:34 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 8 Mar 2011 02:01:34 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 17g2000prr.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:185717 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:79871 Archived-At: On Mar 8, 6:57=A0am, rusi wrote: > 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 t= o 'clean > > > =A0 =A0 the slate' and then load. IOW everything -- variable, functio= n, type > > > =A0 =A0 -- that was defined in this module is first 'makunbounded' an= d then > > > =A0 =A0 the module is loaded. > > > > =A0 =A0 It would certainly be worthwhile to have such a feature in em= acs. =A0I > > > =A0 =A0 guess its not easy to do unless one has available the pair-li= st of the > > > =A0 =A0 form: ((var defined-in-file)...). > > > =A0 =A0 Another problem that would probably muddy the waters are macr= os... > > > 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. =A0When? Ok looked at loadhist.el and find that the list I was earlier asking for is load-history. So now if I have thrown some random elisp into a file (no require, provides) how do I unload it? I can assoc the file's alist in load-history. After that??