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 00:00:35 +0200 Message-ID: <87oeca4ebg.fsf@xs4all.nl> References: <87zmvu6ba2.fsf@xs4all.nl> <85ll7e68ei.fsf@lola.goethe.zz> <854qe2ihhi.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1113948184 17277 80.91.229.2 (19 Apr 2005 22:03:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 19 Apr 2005 22:03:04 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 20 00:03:01 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DO0nV-0003BF-P1 for ged-emacs-devel@m.gmane.org; Wed, 20 Apr 2005 00:02:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DO0rt-0003Pr-PY for ged-emacs-devel@m.gmane.org; Tue, 19 Apr 2005 18:06:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DO0qg-0002xt-38 for emacs-devel@gnu.org; Tue, 19 Apr 2005 18:05:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DO0qe-0002wa-48 for emacs-devel@gnu.org; Tue, 19 Apr 2005 18:05:37 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DO0qe-0002ri-0n for emacs-devel@gnu.org; Tue, 19 Apr 2005 18:05:36 -0400 Original-Received: from [194.109.24.26] (helo=smtp-vbr6.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DO0o8-0007f3-BU; Tue, 19 Apr 2005 18:03:00 -0400 Original-Received: from pijl (a80-127-67-124.adsl.xs4all.nl [80.127.67.124]) by smtp-vbr6.xs4all.nl (8.12.11/8.12.11) with ESMTP id j3JM0aP5048727; Wed, 20 Apr 2005 00:00:36 +0200 (CEST) (envelope-from Lute.Kamstra@xs4all.nl) Original-Received: from lute by pijl with local (Exim 3.36 #1 (Debian)) id 1DO0lo-0000ut-00; Wed, 20 Apr 2005 00:00:36 +0200 Original-To: David Kastrup In-Reply-To: <854qe2ihhi.fsf@lola.goethe.zz> (David Kastrup's message of "Tue, 19 Apr 2005 23:28:25 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Original-Lines: 15 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:36127 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:36127 David Kastrup writes: [...] > Won't work. Autoloads corresponding to a different file than the > loaded one don't get restored. I have not found the exact place that > causes this, but only the "right" definitions cause the autoload to be > saved in the autoload property of the corresponding function. When the lisp interpreter tries to call a function that is autoloaded, it calls do_autoload (in src/eval.c) to load the actual definition and then tries again. do_autoload saves the old definition of the function in the autoload property. Lute.