From: Andreas Schwab <schwab@suse.de>
Cc: mule@m17n.org, tats@vega.ocn.ne.jp, emacs-devel@gnu.org,
himi@meadowy.org
Subject: Re: Mule-UCS 0.84 (KOUGETSUDAI) release.
Date: Thu, 05 Dec 2002 13:16:17 +0100 [thread overview]
Message-ID: <jeptsg64q6.fsf@sykes.suse.de> (raw)
In-Reply-To: <200212051125.UAA19382@etlken.m17n.org> (Kenichi Handa's message of "Thu, 5 Dec 2002 20:25:20 +0900 (JST)")
Kenichi Handa <handa@m17n.org> writes:
|> In article <je7keo7ned.fsf@sykes.suse.de>, Andreas Schwab <schwab@suse.de> writes:
|> > IMHO this patch is better:
|>
|> > --- mucs.el 2002/12/05 10:43:28 1.1
|> > +++ mucs.el 2002/12/05 10:46:26
|> > @@ -196,7 +196,7 @@ In order to embed data or lisp code, use
|> > (funcall (car hookval))
|> > result)
|> > hookval (cdr hookval)))
|> > - (cons 'progn
|> > + (list 'progn
|> > result)))
|>
|> > (defmacro mucs-define-package (package &rest form)
|>
|> Could you explain why?
Actually this is also wrong. The right fix is to collect the function
results with cons instead of append. Each hook function is returning a
form to be evaluated, and the final form returned by the macro is
supposed to be one that evaluates each form in sequence.
--- mucs.el 2002/12/05 10:43:28 1.1
+++ mucs.el 2002/12/05 12:15:29
@@ -192,7 +192,7 @@ In order to embed data or lisp code, use
(if (not (listp hookval))
(error "Invalid hook:%S" hooksym)))
(while hookval
- (setq result (append
+ (setq result (cons
(funcall (car hookval))
result)
hookval (cdr hookval)))
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
next prev parent reply other threads:[~2002-12-05 12:16 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20021104.103826.71116326.05@tats.iris.ne.jp>
[not found] ` <20021105.202038.18871060.05@tats.iris.ne.jp>
[not found] ` <20021129.215347.74727519.05@tats.iris.ne.jp>
2002-12-02 16:51 ` Mule-UCS 0.84 (KOUGETSUDAI) release Werner LEMBERG
2002-12-04 11:06 ` Richard Stallman
2002-12-04 13:43 ` Werner LEMBERG
2002-12-06 13:32 ` Richard Stallman
2002-12-06 16:58 ` Dave Love
[not found] ` <20021207.085958.92564095.wl@gnu.org>
2002-12-09 18:57 ` Dave Love
2002-12-05 8:15 ` Kenichi Handa
2002-12-05 10:47 ` Andreas Schwab
2002-12-05 11:25 ` Kenichi Handa
2002-12-05 12:16 ` Andreas Schwab [this message]
2002-12-05 14:47 ` Stefan Monnier
2002-12-05 16:32 ` Dan Discipulo
2002-12-05 16:26 ` MIYASHITA Hisashi
2002-12-06 7:36 ` Kenichi Handa
2002-12-06 18:47 ` Dan Discipulo
[not found] ` <200212070342.FMLAAB12353.mule@m17n.org>
2002-12-06 19:15 ` You dan@wilshire.com are not member (mule ML) Dan Discipulo
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jeptsg64q6.fsf@sykes.suse.de \
--to=schwab@suse.de \
--cc=emacs-devel@gnu.org \
--cc=himi@meadowy.org \
--cc=mule@m17n.org \
--cc=tats@vega.ocn.ne.jp \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.