From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.cc-mode.general,gmane.emacs.devel Subject: Re: Release of CC Mode 5.31 Date: Mon, 5 Dec 2005 16:48:09 +0000 (GMT) Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1133802241 27331 80.91.229.2 (5 Dec 2005 17:04:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 5 Dec 2005 17:04:01 +0000 (UTC) Cc: bug-cc-mode@gnu.org, mast@lysator.liu.se, emacs-devel@gnu.org Original-X-From: cc-mode-help-admin@lists.sourceforge.net Mon Dec 05 18:03:59 2005 Return-path: Original-Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EjJig-0000Rf-5T for sf-cc-mode-help@m.gmane.org; Mon, 05 Dec 2005 18:01:42 +0100 Original-Received: from sc8-sf-list1-b.sourceforge.net (sc8-sf-list1-b.sourceforge.net [10.3.1.7]) by sc8-sf-spam1.sourceforge.net (Postfix) with ESMTP id 83ECE88513; Mon, 5 Dec 2005 09:01:02 -0800 (PST) Original-Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] helo=mail.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30) id 1EjJh5-0000wh-LP for cc-mode-help@lists.sourceforge.net; Mon, 05 Dec 2005 09:00:03 -0800 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by mail.sourceforge.net with esmtps (TLSv1:DES-CBC3-SHA:168) (Exim 4.44) id 1EjJh2-0000g4-SC for cc-mode-help@lists.sourceforge.net; Mon, 05 Dec 2005 09:00:03 -0800 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.34) id 1EjJgf-0006c5-P8 for bug-cc-mode@gnu.org; Mon, 05 Dec 2005 11:59:37 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1EjJhX-0006QJ-Kn for bug-cc-mode@gnu.org; Mon, 05 Dec 2005 12:00:32 -0500 Original-Received: from [193.149.49.134] (helo=acm.acm) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EjJhU-0006Lj-5k; Mon, 05 Dec 2005 12:00:31 -0500 Original-Received: from localhost (root@localhost) by acm.acm (8.8.8/8.8.8) with SMTP id QAA00351; Mon, 5 Dec 2005 16:48:10 GMT X-Sender: root@acm.acm Original-To: "Richard M. Stallman" In-Reply-To: X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on monty-python X-Spam-Level: X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.63 X-Spam-Score: 1.0 (+) X-Spam-Report: Spam Filtering performed by sourceforge.net. See http://spamassassin.org/tag/ for more details. Report problems to http://sf.net/tracker/?func=add&group_id=1&atid=200001 1.0 FORGED_RCVD_HELO Received: contains a forged HELO Original-Sender: cc-mode-help-admin@lists.sourceforge.net Errors-To: cc-mode-help-admin@lists.sourceforge.net X-BeenThere: cc-mode-help@lists.sourceforge.net X-Mailman-Version: 2.0.9-sf.net Precedence: bulk List-Unsubscribe: , List-Id: Bug reports, feature requests, and general talk about CC Mode. List-Post: List-Help: List-Subscribe: , List-Archive: X-Original-Date: Mon, 5 Dec 2005 16:48:09 +0000 (GMT) Xref: news.gmane.org gmane.emacs.cc-mode.general:2753 gmane.emacs.devel:47007 Archived-At: 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