From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#21464: 25.0.50; [cc-langs] void-function cadar Date: Mon, 14 Sep 2015 21:33:19 -0400 Message-ID: References: <20150914134701.32305.qmail@mail.muc.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1442280864 1485 80.91.229.3 (15 Sep 2015 01:34:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Sep 2015 01:34:24 +0000 (UTC) Cc: 21464-done@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 15 03:34:13 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zbf8O-0008Il-4w for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Sep 2015 03:34:12 +0200 Original-Received: from localhost ([::1]:44428 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zbf8M-00012u-VJ for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Sep 2015 21:34:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50312) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zbf8K-00012n-3H for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2015 21:34:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zbf8J-0005Z7-0N for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2015 21:34:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40301) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zbf8F-0005Yc-6F; Mon, 14 Sep 2015 21:34:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zbf8E-0000Ik-Sx; Mon, 14 Sep 2015 21:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Tue, 15 Sep 2015 01:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21464 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 21464-done@debbugs.gnu.org id=D21464.14422808041111 (code D ref 21464); Tue, 15 Sep 2015 01:34:02 +0000 Original-Received: (at 21464-done) by debbugs.gnu.org; 15 Sep 2015 01:33:24 +0000 Original-Received: from localhost ([127.0.0.1]:60744 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zbf7b-0000Hr-Nq for submit@debbugs.gnu.org; Mon, 14 Sep 2015 21:33:24 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:63606) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zbf7Y-0000Hh-FG for 21464-done@debbugs.gnu.org; Mon, 14 Sep 2015 21:33:20 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AwEwA731xV/0jo92hcgxCEAoVVuzcJhH6CTQQCAoE8ORQBAQEBAQEBgQpBBYNdAQEDAVYjBQsLDiYSFBgNJIg3CM8jAQEBAQEBBAEBAQEeizqFBQeELQWLRJNTkhSDWSOCChyBbiKCeAEBAQ X-IPAS-Result: A0AwEwA731xV/0jo92hcgxCEAoVVuzcJhH6CTQQCAoE8ORQBAQEBAQEBgQpBBYNdAQEDAVYjBQsLDiYSFBgNJIg3CM8jAQEBAQEBBAEBAQEeizqFBQeELQWLRJNTkhSDWSOCChyBbiKCeAEBAQ X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="164850498" Original-Received: from 104-247-232-72.cpe.teksavvy.com (HELO ceviche.home) ([104.247.232.72]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 14 Sep 2015 21:33:19 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 8712666113; Mon, 14 Sep 2015 21:33:19 -0400 (EDT) In-Reply-To: <20150914134701.32305.qmail@mail.muc.de> (Alan Mackenzie's message of "14 Sep 2015 13:47:01 -0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:106563 Archived-At: >> Using cl-lib instead of cl would solve such issues easily since we could >> use cl-cadar and (require 'cl-lib) at run-time instead of only requiring >> cl at compile-time. > CC Mode in Emacs (as opposed to XEmacs) has been using cl-lib instead of > cl for some weeks, now. By "using cl-lib" I mean "assume cl-lib is always available" and "don't use cl anymore anywhere". That's a lot more convenient than the current testing and using various macro wrappers depending on the circumstance and it'd let you use any CL functions and macros anywhere any time. > It would be bound to clash with a cl-lib in Emacs Your assumptions are faulty, I think. You'd put it in a subdirectory, say "cc-cl-lib" (so it's not in load-path by default) and in cc-compat.el you'd do something like: (unless (featurep 'cl-lib) (unless (locate-library "cl-lib") (add-to-list 'load-path (expand-file-name "cc-cl-lib" (file-name-directory load-file-name)))) (require 'cl-lib)) or (unless (featurep 'cl-lib) (require 'cl-lib (unless (locate-library "cl-lib") (expand-file-name "cc-cl-lib/cl-lib" (file-name-directory load-file-name))))) > (or a cl in XEmacs) somehow. The cl-lib.el I'm talking about is the one in GNU ELPA, which is basically loads cl.el and then adds a whle bunch of aliases under the new "cl-*" namespace. So no, it doesn't clash with cl.el, instead it relies on it. > I'm marking this bug as closed. Indeed, thanks, Stefan