From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Feature Request : autoload-form Date: Sun, 30 Mar 2008 01:49:49 -0400 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1206856402 2013 80.91.229.12 (30 Mar 2008 05:53:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Mar 2008 05:53:22 +0000 (UTC) Cc: paul.r.ml@gmail.com, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 30 07:53:53 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JfqUJ-0004sz-Vn for ged-emacs-devel@m.gmane.org; Sun, 30 Mar 2008 07:53:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JfqTi-0001qO-AC for ged-emacs-devel@m.gmane.org; Sun, 30 Mar 2008 01:53:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JfqQR-0007to-Ih for emacs-devel@gnu.org; Sun, 30 Mar 2008 01:49:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JfqQQ-0007sx-4e for emacs-devel@gnu.org; Sun, 30 Mar 2008 01:49:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JfqQP-0007sr-Qm for emacs-devel@gnu.org; Sun, 30 Mar 2008 01:49:49 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JfqQP-0004QR-Hw for emacs-devel@gnu.org; Sun, 30 Mar 2008 01:49:49 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1JfqQP-00033x-7i; Sun, 30 Mar 2008 01:49:49 -0400 In-reply-to: (message from Stefan Monnier on Sat, 29 Mar 2008 00:20:02 -0400) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:93880 Archived-At: > (autoload foo "bar.el") > (autoload-form foo (load-file "bar.el")) You could just change autoload to do that. It's a pretty simple change in the C code. I don't think we should install this in Emacs, though. Something like autoload should be kept simple and limited. If loading a certain file needs load-path to be set a certain way, the user should simply set load-path that way, perhaps in .emacs. It is a bad idea to have files that only work right if load-path is temporarily changed; rather than adding a new file to Emacs to cope with that situation, it would be better to redesign the Lisp code that appears to need it.