From: Alan Mackenzie <acm@muc.de>
Cc: bug-cc-mode@gnu.org, mast@lysator.liu.se, emacs-devel@gnu.org
Subject: Re: Release of CC Mode 5.31
Date: Mon, 5 Dec 2005 16:48:09 +0000 (GMT) [thread overview]
Message-ID: <Pine.LNX.3.96.1051205160831.337B-100000@acm.acm> (raw)
In-Reply-To: <E1EikEg-0004fJ-26@fencepost.gnu.org>
Hi, Richard!
On Sat, 3 Dec 2005, Richard M. Stallman wrote:
> HEY YOU GUYS (in emacs-devel)! Is there any chance we could have
> mapcan (and possibly the other mapping functions in the table on
> page 85 of the orange Lisp Machine Manual ;-) in the Emacs core for
> 22.1? Please? Pretty Please?
>I don't see any great need for mapcan. It has never been very
>common, and it is easy to do (apply 'nconc (mapcar ...)).
Well, mapcan might be uncommon because it exists only in cl-extra - a
chicken and egg situation.
(apply 'nconc (mapcar ...)) is more difficult to read and understand than
(mapcan ....). The macros in CC Mode's cc-langs.el and cc-defs.el are
difficult enough to understand, even without this added difficulty. This
complexity in CC Mode is, I believe, essential rather than frivolous.
>Since I do not have a copy of the Lisp Machine Manual, I do not know
>which other functions you are talking about here.
The "Lisp chine nual" is a work of art, a model of clarity, the epitome
of effective technical writing, and I can recommend it to anybody. ;-)
The table on page 85 contrasts the various mapping functions according to
how they select the bits of the list to work on, and what they return as
a result. It looks like this:
applies function to
| successive | successive |
| sublists | elements |
---------------+--------------+---------------+
its own | | |
second | map(l) | mapc |
argument | | |
---------------+--------------+---------------+
list of the | | |
returns function | maplist | mapcar |
results | | |
---------------+--------------+---------------+
nconc of the | | |
function | mapcon | mapcan |
results | | |
---------------+--------------+---------------+
Of these six functions, only mapc and mapcar exist in vanilla Emacs 22.
For the rest, you need to load cl-extra first. This seems a shame.
--
Alan Mackenzie (Munich, Germany)
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
next prev parent reply other threads:[~2005-12-05 16:48 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-02 12:20 Release of CC Mode 5.31 Alan Mackenzie
2005-12-02 17:15 ` Henrik Enberg
2005-12-02 20:42 ` Alan Mackenzie
2005-12-03 15:58 ` Richard M. Stallman
2005-12-03 16:15 ` Alan Mackenzie
2005-12-03 11:48 ` Alan Mackenzie
2005-12-03 12:40 ` Romain Francoise
2005-12-03 15:33 ` Henrik Enberg
2005-12-04 3:08 ` Richard M. Stallman
2005-12-05 16:48 ` Alan Mackenzie [this message]
2005-12-06 16:43 ` Richard M. Stallman
2005-12-04 19:40 ` Eli Zaretskii
2005-12-04 19:45 ` Romain Francoise
2005-12-06 12:11 ` Alan Mackenzie
2005-12-06 20:33 ` Eli Zaretskii
2005-12-07 17:07 ` Richard M. Stallman
2005-12-07 18:14 ` Alan Mackenzie
2005-12-08 4:53 ` Richard M. Stallman
2005-12-07 18:48 ` Eli Zaretskii
2005-12-07 19:51 ` Stefan Monnier
2005-12-07 22:41 ` Eli Zaretskii
2005-12-08 4:54 ` Richard M. Stallman
2005-12-08 4:53 ` Richard M. Stallman
2005-12-08 16:43 ` Stefan Monnier
2005-12-08 19:47 ` Eli Zaretskii
2005-12-08 22:24 ` Stefan Monnier
2005-12-08 23:04 ` Kim F. Storm
2005-12-08 23:46 ` Stefan Monnier
2005-12-09 12:30 ` Eli Zaretskii
2005-12-09 14:42 ` Stefan Monnier
2005-12-10 4:13 ` Richard M. Stallman
2005-12-09 12:35 ` Eli Zaretskii
2005-12-09 14:42 ` Stefan Monnier
2005-12-09 15:02 ` Richard M. Stallman
2005-12-08 23:32 ` Andreas Schwab
2005-12-09 1:42 ` Richard M. Stallman
2005-12-08 19:29 ` Eli Zaretskii
2005-12-09 1:43 ` Richard M. Stallman
2005-12-06 10:32 ` Romain Francoise
2005-12-06 13:09 ` Alan Mackenzie
2005-12-06 13:46 ` Masatake YAMATO
2005-12-06 20:34 ` Eli Zaretskii
2005-12-06 20:49 ` Romain Francoise
2005-12-06 21:04 ` Eli Zaretskii
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=Pine.LNX.3.96.1051205160831.337B-100000@acm.acm \
--to=acm@muc.de \
--cc=bug-cc-mode@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=mast@lysator.liu.se \
/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.