From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Autoloads and (t . SYM) in load-history Date: Sun, 13 Apr 2003 22:36:12 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200304121925.h3CJPFt4014136@rum.cs.yale.edu> <200304121948.h3CJmwXI014231@rum.cs.yale.edu> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1050287820 21264 80.91.224.249 (14 Apr 2003 02:37:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 14 Apr 2003 02:37:00 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Apr 14 04:36:58 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 194tq6-0005Wo-00 for ; Mon, 14 Apr 2003 04:36:58 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 194trG-0006Ag-00 for ; Mon, 14 Apr 2003 04:38:10 +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 194tpf-0000G6-00 for emacs-devel@quimby.gnus.org; Sun, 13 Apr 2003 22:36:31 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 194tpO-00009R-00 for emacs-devel@gnu.org; Sun, 13 Apr 2003 22:36:14 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 194tpM-00005H-00 for emacs-devel@gnu.org; Sun, 13 Apr 2003 22:36:13 -0400 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 194tpM-0008WP-00 for emacs-devel@gnu.org; Sun, 13 Apr 2003 22:36:12 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.10) id 194tpM-0003dr-00; Sun, 13 Apr 2003 22:36:12 -0400 Original-To: "Stefan Monnier" In-reply-to: <200304121948.h3CJmwXI014231@rum.cs.yale.edu> (monnier+gnu/emacs@rum.cs.yale.edu) 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:13219 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:13219 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.