From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: Autoloads and (t . SYM) in load-history Date: Mon, 14 Apr 2003 12:53:12 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200304141653.h3EGrCWk026413@rum.cs.yale.edu> References: <200304121925.h3CJPFt4014136@rum.cs.yale.edu> <200304121948.h3CJmwXI014231@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1050339881 28766 80.91.224.249 (14 Apr 2003 17:04:41 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 14 Apr 2003 17:04:41 +0000 (UTC) Cc: Stefan Monnier Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Apr 14 19:04:39 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1957Nn-0007Tq-00 for ; Mon, 14 Apr 2003 19:04:39 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 1957PF-0005wQ-00 for ; Mon, 14 Apr 2003 19:06:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 1957Fr-0006MS-08 for emacs-devel@quimby.gnus.org; Mon, 14 Apr 2003 12:56:27 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 1957El-0005Y7-00 for emacs-devel@gnu.org; Mon, 14 Apr 2003 12:55:19 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 1957DQ-0004dK-00 for emacs-devel@gnu.org; Mon, 14 Apr 2003 12:53:56 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 1957Ck-0004Tt-00; Mon, 14 Apr 2003 12:53:14 -0400 Original-Received: from rum.cs.yale.edu (localhost [127.0.0.1]) by rum.cs.yale.edu (8.12.8/8.12.8) with ESMTP id h3EGrCx6026415; Mon, 14 Apr 2003 12:53:12 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.12.8/8.12.8/Submit) id h3EGrCWk026413; Mon, 14 Apr 2003 12:53:12 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Richard Stallman Original-cc: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:13227 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:13227 > What was the reason for the following change ? > > I think it was for the sake of unload-feature, to turn the > function back into an autoload. > > There's already another convention related to the above when > a function is autoloaded. It involves the `autoload' symbol > property and the Vautoload_queue variable. > > I guess it would work to use Vautoload_queue at the end of loading > to update the load history, instead of doing it directly as I did. > I am not sure this is worth doing. It might be easier just to add > a comment on each mechanism pointing to the other one. > > One complication in combining them is that Vautoload_queue is set up > only when loading for the sake of an autoload. For other calls to > load, Vautoload_queue is not used. > > Also, the name Vautoload_queue is misleading because that variable > is not a Lisp variable. The name should probably be changed. I was thinking of merging things as follows: - Keep your changes, except that instead of pushing (t . FUN) onto the load history, we add the autoload data to the `autoload' symbol property. - Instead of using Vautoload_queue, we rely on the `autoload' symbol property and the load-history in un_autoload (which is also used by Frequire). That would also be a good step towards merging un_autoload and unload-feature. Stefan