From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Martin Stjernholm Newsgroups: gmane.emacs.devel Subject: Re: cc-langs.el Date: Fri, 22 Aug 2003 13:45:44 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <5bekzd29w7.fsf@lister.roxen.com> References: Reply-To: bug-cc-mode@gnu.org NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1061574234 8587 80.91.224.253 (22 Aug 2003 17:43:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 22 Aug 2003 17:43:54 +0000 (UTC) Cc: bug-cc-mode@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Aug 22 19:43:52 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19qFx2-0001bh-00 for ; Fri, 22 Aug 2003 19:43:52 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19qG1I-0002Rl-00 for ; Fri, 22 Aug 2003 19:48:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19qFe1-0003Zw-Kh for emacs-devel@quimby.gnus.org; Fri, 22 Aug 2003 13:24:13 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19qBNi-0001Eo-Nk for emacs-devel@gnu.org; Fri, 22 Aug 2003 08:51:06 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19qB3V-0003iR-3y for emacs-devel@gnu.org; Fri, 22 Aug 2003 08:30:44 -0400 Original-Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19qAwv-0001hl-CQ; Fri, 22 Aug 2003 08:23:25 -0400 Original-Received: from [194.52.182.190] (helo=mail.roxen.com) by mx20.gnu.org with esmtp (Exim 4.20) id 19qArq-0004sw-4K; Fri, 22 Aug 2003 08:18:10 -0400 Original-Received: by mail.roxen.com (Postfix, from userid 52) id 6684899E8; Fri, 22 Aug 2003 13:45:46 +0200 (MEST) Original-Received: from lister.roxen.com (lister.roxen.com [194.52.182.147]) by mail.roxen.com (Postfix) with ESMTP id 5B8F899E4; Fri, 22 Aug 2003 13:45:44 +0200 (MEST) Original-Received: from mast by lister.roxen.com with local (Exim 3.36 #1 (Debian)) id 19qAMT-0006W0-00; Fri, 22 Aug 2003 13:45:45 +0200 Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Mon, 11 Aug 2003 08:53:53 -0400") User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/20.7 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:16070 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16070 Richard Stallman wrote: > This code in cc-langs.el uses CL functions at run time. Only if it isn't byte compiled, which isn't recommended. cc-langs is not even loaded when everything is byte compiled. > It won't work. I still don't understand this aversion to the CL functions. I find it absurd that there is an old and well established set of basic tools that can't be used in many situations. The only argument for that position I've heard is that the CL package isn't namespace clean with some package prefix. That argument is weak since it can't conceivably become a practical problem - the functions are so old and well established that they are comparable to the built-in functions. Anyone who would define a mapcan with any other function than the one in CL would be both very silly and break the namespace rules. > (c-lang-defconst c-operator-list > ;; The operators as a flat list (without duplicates). > t (delete-duplicates (mapcan (lambda (elem) (append (cdr elem) nil)) > (c-lang-const c-operators)) > :test 'string-equal)) > > There are further uses of mapcan in the same file. > > Please fix this, then ack by responding to this message.