From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Feature Request : autoload-form Date: Sat, 29 Mar 2008 15:40:50 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1206819680 12047 80.91.229.12 (29 Mar 2008 19:41:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Mar 2008 19:41:20 +0000 (UTC) Cc: Emacs Devel To: "paul r" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 29 20:41:51 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 1Jfgvo-0005ht-Ny for ged-emacs-devel@m.gmane.org; Sat, 29 Mar 2008 20:41:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JfgvD-0003Hh-6M for ged-emacs-devel@m.gmane.org; Sat, 29 Mar 2008 15:40:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jfgv8-0003Hc-OQ for emacs-devel@gnu.org; Sat, 29 Mar 2008 15:40:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jfgv5-0003HP-KR for emacs-devel@gnu.org; Sat, 29 Mar 2008 15:40:54 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jfgv5-0003HM-HV for emacs-devel@gnu.org; Sat, 29 Mar 2008 15:40:51 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182] helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jfgv5-0006wX-4m for emacs-devel@gnu.org; Sat, 29 Mar 2008 15:40:51 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ag4FAO837kfO+LLN/2dsb2JhbACBWqdo X-IronPort-AV: E=Sophos;i="4.25,575,1199682000"; d="scan'208";a="17133687" Original-Received: from smtp.pppoe.ca (HELO smtp.teksavvy.com) ([65.39.196.238]) by ironport2-out.teksavvy.com with ESMTP; 29 Mar 2008 15:40:50 -0400 Original-Received: from pastel.home ([206.248.178.205]) by smtp.teksavvy.com (Internet Mail Server v1.0) with ESMTP id JWR59350; Sat, 29 Mar 2008 15:40:50 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 392837F9E; Sat, 29 Mar 2008 15:40:50 -0400 (EDT) In-Reply-To: (paul r.'s message of "Sat, 29 Mar 2008 10:49:29 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:93828 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'm totally unskilled when it comes to the C code. I admit it is not > so-hard, but it will probably take me several hours to get it right. > Having a clean solution to my problem is not worth several hours. So > I'm willing to spend this time if you think it can bring something > useful to emacs. What do you think ? If it's done well, we could install it in the trunk (you'd probably have to sign copyright paperwork for that, of course). In any case, grep for `do_autoload' in the src/*.c files to see where the autoloading is done. That's probably the main part of the code you'll need to change. But change should be fairly small. Stefan