From: Per Abrahamsen <abraham@dina.kvl.dk>
Subject: Re: Creating recursive customization types / widgets
Date: Mon, 01 Dec 2003 12:36:39 +0100 [thread overview]
Message-ID: <rj1xrou5vc.fsf@sheridan.dina.kvl.dk> (raw)
In-Reply-To: jwvk75hmxq1.fsf-monnier+emacs/devel@vor.iro.umontreal.ca
Stefan Monnier <monnier@IRO.UMontreal.CA> writes:
> Neat. I have no idea why it's called `child' and the resulting
> use of `child' in (define-widget 'foo 'child ...) does not look
> particularly intuitive, but I can't think of anything better either.
Because it has a single child widget, and the new widget basically
behave like the child, except for allowing recursion.
I called it 'recursive' and 'delayed' under development.
It is a common pattern in OOP. Having an object that wraps another
object, delegates message to the other object, and thus acts like a
proxy. So 'wrapper', delegator' or 'proxy' could be used as well.
> We should install this.
Yes. It answers the most common custom/widget programming question
that I couldn't previously answer :-)
>> If the datastructures is recursive, you need to gave a :match argument
>> as well as :type.
>
> Why is that ?
Good question. I was afraid of infinite recursion, but as long as the
widget type "eat some tokens" of the value before the recursion
starts, that doesn't happen.
next prev parent reply other threads:[~2003-12-01 11:36 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-29 16:38 Creating recursive customization types / widgets Per Abrahamsen
2003-11-29 18:34 ` Per Abrahamsen
2003-11-30 20:05 ` Stefan Monnier
2003-12-01 11:36 ` Per Abrahamsen [this message]
2003-12-01 16:35 ` Thien-Thi Nguyen
2003-12-02 12:37 ` tapsellferrier.co.uk Host name lookup failure Robert J. Chassell
2003-12-01 17:08 ` Creating recursive customization types / widgets Per Abrahamsen
2003-12-02 0:31 ` Juri Linkov
2003-12-02 10:19 ` Per Abrahamsen
2003-12-02 12:46 ` David Kastrup
2003-12-02 13:34 ` Per Abrahamsen
2003-12-02 10:40 ` Per Abrahamsen
2003-12-01 13:36 ` Per Abrahamsen
2003-12-01 16:10 ` Ted Zlatanov
2003-12-01 19:24 ` Per Abrahamsen
2003-12-01 1:45 ` Richard Stallman
2003-12-01 13:27 ` Per Abrahamsen
2003-12-02 4:17 ` Richard Stallman
2003-12-02 10:31 ` Per Abrahamsen
2003-12-03 4:46 ` Richard Stallman
2003-12-03 12:30 ` Per Abrahamsen
2003-12-03 15:26 ` Per Abrahamsen
2003-12-03 19:05 ` Kevin Rodgers
2003-12-02 11:24 ` David Kastrup
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=rj1xrou5vc.fsf@sheridan.dina.kvl.dk \
--to=abraham@dina.kvl.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).