From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: Can widgets be autoloaded? Date: Tue, 13 Oct 2009 00:51:45 +0200 Message-ID: References: <87eip8ts42.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1255387949 6935 80.91.229.12 (12 Oct 2009 22:52:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 12 Oct 2009 22:52:29 +0000 (UTC) Cc: Emacs-Devel devel To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 13 00:52:21 2009 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 1MxTka-00068l-5F for ged-emacs-devel@m.gmane.org; Tue, 13 Oct 2009 00:52:20 +0200 Original-Received: from localhost ([127.0.0.1]:49201 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MxTkZ-0000Te-RD for ged-emacs-devel@m.gmane.org; Mon, 12 Oct 2009 18:52:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MxTkQ-0000Rb-Mk for emacs-devel@gnu.org; Mon, 12 Oct 2009 18:52:10 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MxTkM-0000Qv-9n for emacs-devel@gnu.org; Mon, 12 Oct 2009 18:52:10 -0400 Original-Received: from [199.232.76.173] (port=48658 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MxTkM-0000Qs-3C for emacs-devel@gnu.org; Mon, 12 Oct 2009 18:52:06 -0400 Original-Received: from mail-gx0-f212.google.com ([209.85.217.212]:61561) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MxTkL-0003Ca-Ng for emacs-devel@gnu.org; Mon, 12 Oct 2009 18:52:05 -0400 Original-Received: by gxk4 with SMTP id 4so10398472gxk.8 for ; Mon, 12 Oct 2009 15:52:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=kYiceYaY8OGLncLNKr3wZVBpivcDtnTv1l6ttp4SMN0=; b=f5h2A40gYvivHe/evCt5MIyTGABpE+0zoVFK+TZ4hjWZzsPn7+/Y4Oew6f0YJDPAmp vdg5ZltlUxMdbOJawcQi7m9/PwbwOq3AhYCvQspnmXdFFRRMSd+5rWPEys8flBbDoKcC 5Dvv4GGdDUy4O6T2jODLdZ1CNGfKE8g38nvYI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=izCz5Ww12Rn0+9tAAceTPu3bLYJVx5rYrmf9EdfOTrMHCu81J8k0S18MLcMX0I5LCp 1mXWsG00/x2TJzqR6eQWzkgbWc47goKHJzPVk0Y4YsMsTmH9gjd+T5a7LBuv+9A5b/X3 Lj/gXFGLmc0SwqTVMRZA4vZ9ZkQBsKyjfg6hY= Original-Received: by 10.100.74.14 with SMTP id w14mr6091928ana.50.1255387925146; Mon, 12 Oct 2009 15:52:05 -0700 (PDT) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:116107 Archived-At: On Mon, Oct 12, 2009 at 10:53 PM, Lennart Borgman wrote: > On Mon, Oct 12, 2009 at 10:34 PM, Juri Linkov wrote: >>> Or how do you handle them? >> >> Please see a comment in widget.el: >> >> =C2=A0;; This file only contains the code needed to define new widget ty= pes. >> =C2=A0;; Everything else is autoloaded from `wid-edit.el'. >> >> So everything is already autoloaded. > > I see. But I meant for my "private" libraries in nXhtml. However there > is a comment in the elisp manual how to handle things like this: > > =C2=A0 =C2=A0 ;;;###autoload (autoload 'foo "myfile") > =C2=A0 =C2=A0 (mydefunmacro foo > =C2=A0 =C2=A0 =C2=A0 ...) But that did not work for something like ;;;###autoload (autoload 'command "ourcomments-widgets") (define-widget 'command 'restricted-sexp and I find nothing in wid-edit.el or widgets.el that explains how to autoload something defined with define-widgets ... Any suggestions?