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: [Emacs-diffs] trunk r113747: lisp/frameset.el: Convert `frameset' to vector and add new slots. Date: Thu, 08 Aug 2013 13:30:56 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1375983077 16549 80.91.229.3 (8 Aug 2013 17:31:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 Aug 2013 17:31:17 +0000 (UTC) Cc: Emacs developers To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 08 19:31:19 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V7U3R-0008A3-LB for ged-emacs-devel@m.gmane.org; Thu, 08 Aug 2013 19:31:17 +0200 Original-Received: from localhost ([::1]:54564 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7U3R-0001Rx-3u for ged-emacs-devel@m.gmane.org; Thu, 08 Aug 2013 13:31:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57553) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7U3G-0001Kl-BY for emacs-devel@gnu.org; Thu, 08 Aug 2013 13:31:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V7U39-0004Tv-36 for emacs-devel@gnu.org; Thu, 08 Aug 2013 13:31:06 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:55037) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7U39-0004Tp-0C for emacs-devel@gnu.org; Thu, 08 Aug 2013 13:30:59 -0400 Original-Received: from faina.iro.umontreal.ca (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id r78HUv2C009847; Thu, 8 Aug 2013 13:30:57 -0400 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id D5A0EB48E6; Thu, 8 Aug 2013 13:30:56 -0400 (EDT) In-Reply-To: (Juanma Barranquero's message of "Thu, 8 Aug 2013 18:32:38 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4664=0 X-NAI-Spam-Version: 2.3.0.9362 : core <4664> : streams <1015090> : uri <1500826> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:162528 Archived-At: >> I don't think there's a way to do that. > Hmm, there's no reason why this wouldn't work: > ;;;###autoload > (autoload 'frameset-p "frameset" "Return non-nil if OBJECT is a > frameset, nil otherwise." nil) Of course. You could also do it as: ;;;###autoload (autoload 'frameset-p "frameset" ;;;###autoload "Return non-nil if OBJECT is a frameset, nil otherwise." nil) which has the advantage tht this code is not run when loading frameset. Or you could do it by replacing the declare-function call (in register.el) by a call to `autoload'. > and, though ugly, is still prettier than having to require 'frameset > from register.el (which has to be done at the point of call of > frameset-p, because register.el is preloaded). > WDYT? Agreed. I only meant to say that there's no way to do it "cleanly" (e.g. such that the arguments to `autoload' are constructed automatically from contextual information). Stefan