From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: re-loading an elisp file Date: Mon, 07 Mar 2011 18:18:05 -0700 Message-ID: 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; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1299547124 18165 80.91.229.12 (8 Mar 2011 01:18:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 8 Mar 2011 01:18:44 +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 02:18:40 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 1PwlZQ-0004fE-8V for geh-help-gnu-emacs@m.gmane.org; Tue, 08 Mar 2011 02:18:40 +0100 Original-Received: from localhost ([127.0.0.1]:58298 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PwlZP-0003dJ-Ed for geh-help-gnu-emacs@m.gmane.org; Mon, 07 Mar 2011 20:18:39 -0500 Original-Received: from [140.186.70.92] (port=59867 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PwlZ4-0003dD-D7 for help-gnu-emacs@gnu.org; Mon, 07 Mar 2011 20:18:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PwlZ3-0000ZW-8a for help-gnu-emacs@gnu.org; Mon, 07 Mar 2011 20:18:18 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:44405) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PwlZ2-0000ZO-TU for help-gnu-emacs@gnu.org; Mon, 07 Mar 2011 20:18:17 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PwlZ1-0004XZ-0k for help-gnu-emacs@gnu.org; Tue, 08 Mar 2011 02:18:15 +0100 Original-Received: from c-24-8-96-241.hsd1.co.comcast.net ([24.8.96.241]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Mar 2011 02:18:15 +0100 Original-Received: from kevin.d.rodgers by c-24-8-96-241.hsd1.co.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Mar 2011 02:18:15 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 21 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-24-8-96-241.hsd1.co.comcast.net User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 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:79867 Archived-At: On 3/6/11 1:36 AM, Le Wang wrote: > On Sun, Mar 6, 2011 at 1:32 PM, rusi > wrote: ... > This points out the real problem -- elisp is not a functional > language. > In (pure) functional languages the pattern (for loading) is to 'clean > the slate' and then load. IOW everything -- variable, function, type > -- that was defined in this module is first 'makunbounded' and then > the module is loaded. > > It would certainly be worthwhile to have such a feature in emacs. I > guess its not easy to do unless one has available the pair-list of the > form: ((var defined-in-file)...). > Another problem that would probably muddy the waters are macros... Does M-x unload-feature meet the goals? -- Kevin Rodgers Denver, Colorado, USA