From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lute Kamstra Newsgroups: gmane.emacs.devel Subject: Re: Removing unloaded functions from auto-mode-alist. Date: Wed, 20 Apr 2005 17:59:09 +0200 Message-ID: <873btlsalu.fsf@xs4all.nl> References: <87zmvu6ba2.fsf@xs4all.nl> <85ll7e68ei.fsf@lola.goethe.zz> <854qe2ihhi.fsf@lola.goethe.zz> <8764yi4awh.fsf@xs4all.nl> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1114013131 26862 80.91.229.2 (20 Apr 2005 16:05:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 20 Apr 2005 16:05:31 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 20 18:05:29 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DOHfV-0007Nj-NR for ged-emacs-devel@m.gmane.org; Wed, 20 Apr 2005 18:03:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DOHk3-0007VG-6H for ged-emacs-devel@m.gmane.org; Wed, 20 Apr 2005 12:07:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DOHif-0006wh-BZ for emacs-devel@gnu.org; Wed, 20 Apr 2005 12:06:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DOHic-0006w2-D4 for emacs-devel@gnu.org; Wed, 20 Apr 2005 12:06:28 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DOHic-0006rj-AK for emacs-devel@gnu.org; Wed, 20 Apr 2005 12:06:26 -0400 Original-Received: from [194.109.24.32] (helo=smtp-vbr12.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DOHe6-00069Y-U1; Wed, 20 Apr 2005 12:01:47 -0400 Original-Received: from pijl (a80-127-67-124.adsl.xs4all.nl [80.127.67.124]) by smtp-vbr12.xs4all.nl (8.12.11/8.12.11) with ESMTP id j3KFxAar029597; Wed, 20 Apr 2005 17:59:10 +0200 (CEST) (envelope-from Lute.Kamstra@xs4all.nl) Original-Received: from lute by pijl with local (Exim 3.36 #1 (Debian)) id 1DOHbZ-0000x6-00; Wed, 20 Apr 2005 17:59:09 +0200 Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Wed, 20 Apr 2005 10:57:32 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Original-Lines: 21 X-Virus-Scanned: by XS4ALL Virus Scanner 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:36170 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36170 Richard Stallman writes: > Maybe we can shift recording the old autoload definition from > do_autoload to Fload? > > Fload has no information about this. > It would have to be done in Fdefun, etc. >>From what I understand, the way it works now is that Ffset records the old definition of a function in Vautoload_queue if that var is non-nil. do_autoload sets Vautoload_queue to t before it calls Fload and then uses the information recorded in Vautoload_queue to set the autoload property of function symbols. The information in Vautoload_queue is also used to restore things when Fload fails. Is there a reason why Fload can't do like do_autoload and use the information recorded in Vautoload_queue to set the autoload property of function symbols? (I'm not saying that doing the recording in Fload is the best/right way, but I think it could be done.) Lute.