From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Tury Newsgroups: gmane.emacs.help Subject: Re: unload/rollback question Date: Mon, 06 Mar 2006 09:11:36 GMT Organization: Nokia Message-ID: References: <82vhcp9oqxbo.11nn42d6jle3d.dlg@40tude.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1141687431 12239 80.91.229.2 (6 Mar 2006 23:23:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 6 Mar 2006 23:23:51 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 07 00:23:51 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FGP3K-0000sv-P7 for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Mar 2006 00:23:47 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FGP3J-0004wH-SC for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Mar 2006 18:23:45 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.bahnhof.se!195.197.54.117.MISMATCH!feeder1.news.jippii.net!nntp.inet.fi!inet.fi!newsfeed1.nokia.com!news1.nokia.com!news2.nokia.com.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: 40tude_Dialog/2.0.15.1 Original-Lines: 28 Original-NNTP-Posting-Host: 172.24.170.68 Original-X-Complaints-To: newsmaster@nokia.com Original-X-Trace: news2.nokia.com 1141636296 172.24.170.68 (Mon, 06 Mar 2006 11:11:36 EET) Original-NNTP-Posting-Date: Mon, 06 Mar 2006 11:11:36 EET Original-Xref: shelby.stanford.edu gnu.emacs.help:137962 Original-To: help-gnu-emacs@gnu.org 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:33589 Archived-At: On Wed, 1 Mar 2006 22:41:45 +0100, Peter Tury wrote: > Hi, > > is it possible anyhow to "unload" something what was previously loaded by > load or require? E.g. a mode? Without restarting Emacs. > Does unload-feature do this? It seems for me that it works only if it is > "supported" by that mode... (Is unload-feature a new stuff? Since then old > modes immediately are out of scope...:-( > > Could undo be used somehow? > > Would this be possible with a little help to Emacs? E.g. evaluating some > insert-savepoint-now and later a rollback-to-savepoint (like in (Oracle) > SQL)? Maybe mapatoms could be used for this? Is it exceptional to use some OBARRAY instead of the standard obarray? (I saw an interesting example in the elisp manual 8.3 Creating and Interning Symbols.) How can I get a list of all the OBARRAYs? Now I think it is possible to save the all the actual variables and functions using obarray and later restore the saved state? Br, P