From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Didier Verna Newsgroups: gmane.emacs.devel Subject: Re: cl-functions do not honor common-lisp-indent-function Date: Thu, 27 Dec 2012 18:24:50 +0100 Message-ID: References: <87623rmtyy.fsf@gmail.com> <87a9t14551.fsf@gmail.com> <87han9tbzv.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1356629917 11829 80.91.229.3 (27 Dec 2012 17:38:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Dec 2012 17:38:37 +0000 (UTC) Cc: Helmut Eller , emacs-devel@gnu.org To: "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 27 18:38:52 2012 Return-path: Envelope-to: ged-emacs-devel@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 1ToHPr-0008Ul-9R for ged-emacs-devel@m.gmane.org; Thu, 27 Dec 2012 18:38:47 +0100 Original-Received: from localhost ([::1]:32943 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ToHPc-00063o-LE for ged-emacs-devel@m.gmane.org; Thu, 27 Dec 2012 12:38:32 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:50487) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ToHCh-0004Yl-2w for emacs-devel@gnu.org; Thu, 27 Dec 2012 12:25:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ToHCe-0005l4-4z for emacs-devel@gnu.org; Thu, 27 Dec 2012 12:25:11 -0500 Original-Received: from mail-wi0-f172.google.com ([209.85.212.172]:55967) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ToHCd-0005kR-Rg for emacs-devel@gnu.org; Thu, 27 Dec 2012 12:25:08 -0500 Original-Received: by mail-wi0-f172.google.com with SMTP id o1so7790524wic.5 for ; Thu, 27 Dec 2012 09:25:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:in-reply-to:references:user-agent :face:x-face:face:x-face:x-attribution:x-url:x-web:x-home-page :mail-copies-to:date:message-id:mime-version:content-type; bh=Zag50M4Z+GQIPJh8HDWKyq6TkGoi3qtMisriRkviVBA=; b=x1FGmAXUM1VOhe0pL9nE66oJm1pqqHf2exgR6cM1atU0RfL60o2Gm1N3nr7wB2F9Yh LoNDfoYkuciimgAmd0oBLRIAnIWRlV9AR7R0m4OC8Q7obJNeKCV2sHbvppfIytkCmp1V 0NFhWRZaSLBUiASrCH8jCq7mirtlXOlE8TLIk5AiP5dcdADxWPRZrj06VVSWNzz1vhRf 3lC7rm4F4N0uXRqE8yvcY3Ykrh4VPiTMoUprbBJg7eN4MzT1aWwb6geNsrhI3zkQIOFA PpbZVACQxDwO95JVJQUD4Ty9MRy1kzfZE9ruXJPxVOfydKXJ4W5hkn0g5WtrGlO2Z/ta rcbg== X-Received: by 10.194.71.244 with SMTP id y20mr41422680wju.19.1356629106624; Thu, 27 Dec 2012 09:25:06 -0800 (PST) Original-Received: from Scofield.local.gmail.com (37-8-175-184.coucou-networks.fr. [37.8.175.184]) by mx.google.com with ESMTPS id bd7sm50226284wib.8.2012.12.27.09.25.02 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 27 Dec 2012 09:25:04 -0800 (PST) In-Reply-To: <87han9tbzv.fsf@uwakimon.sk.tsukuba.ac.jp> (Stephen J. Turnbull's message of "Wed, 26 Dec 2012 18:10:28 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (darwin) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAHlBMVEWSJRv77NT7+fb7+f/7 +/37//+n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j+suwfT/MM83X/6a/jXGmafgOYBXZLyDMmLW3l/4DxG/jKxjb /NdQm5HWLh7X34Glcll8AnawIYTHyMV3obc3ULMK9MHMbh/66QbCNFhaYp5T/hRqAFgr+8Ja7BTu Ng99eMjs8zLlH/cAz8Q7AGb5O4fhTm5YsXMiJbpX6Lttbp9O4iVlLNlegR17G+iBJZVUsvd7GjYz FJtxsrBIfcQKzawHQsEqINoQrVhYJIlnjfC37m4yrQ2/cXbFJdXIQvNZlXbG1dxEnCZ1nBYXr7QU LfFniT7rezXl9QpUpEaIXjPsimnbwGxSkZIkakz68nhwkn5XMMymaJUTlUUXT8hDX+qRAMAscmP1 /mBtKr7sbWihzsAV8VtrP1RTtmdLqhWA2GoxjA9aaupnIBHGpqT7NdEvlXwcpgvInc+QvABYFnkm OzRLkBj7mojrzOnUwNxMdAkgMauo06xyOF5sh56YxEkUhKsqtHoyjKakvFRxqHas5wp0C72EPKRj lFoiGMdalS30ho3RFNk/44S4KoNT9H8WRAPBXY4+YtIBrthjUVe7AQDFq67gW1dA+W5BfQCoQ86D a3kL714h9z3DWNS2MSe6e9udTsfeGpwFWr+xw5sJ+2hrOPSF2cxQB1prD7ZFbtQy30y1v0N9b7V7 76j2b20kM29aO+G5Bbm7Gc729xTw6S9tjlvFTPX3+hrVC+ICqB/PVw7hahhtO9B1S9NC1z/D2HQC NCX/AHjt/u58WpMqAAAAAElFTkSuQmCC X-Face: compface: (warning) : excess data ignored X-Attribution: dvl X-Url: http://www.lrde.epita.fr/~didier X-Web: http://www.lrde.epita.fr/~didier X-Home-Page: http://www.lrde.epita.fr/~didier Mail-Copies-To: never X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.212.172 X-Mailman-Approved-At: Thu, 27 Dec 2012 12:38:31 -0500 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:155939 Archived-At: Stephen J. Turnbull wrote: > Helmut Eller writes: > > > Those cl-* symbols have no (predefined) meaning for Common Lisp so > > shouldn't be in cl-indent.el; for the same reason there shouldn't be > > rules for save-excursion or condition-case. > > That is irrelevant. If the user thinks of these symbols as equivalent > to "real" Common Lisp standard symbols, then the user has every right > to ask Emacs to treat them as Common Lisp symbols. That user should > not need to know precisely how that is done, or implement it herself. cl-indent is meant for providing indentation in *real* Common Lisp source files. The cl-* functions will not appear in Common Lisp code so cl-indent shouldn't know about them. The cl-* functions may however appear in Emacs Lisp code, so indenting them properly (that is, in a CL style because these functions provide CL functionality to elisp) is a job for (lisp-indent-function). It is currently missing. Note that I happen to *not* use (lisp-indent-function) at all, but always (common-lisp-indent-function), even in Emacs Lisp files. In such a situation, I still consider that I'm doing something non-standard, and so I wouldn't complain because the cl-* functions are not indented properly by cl-indent. I think it's my job, as an end-user who's doing something weird, to support them by hacking my configuration. Of course, if there were also a shortcut such as (cl-indent-add-cl-lib-support), that would be nice. -- ELS 2013, June 3/4, Madrid, Spain: http://els2013.european-lisp-symposium.org Scientific site: http://www.lrde.epita.fr/~didier Music (Jazz) site: http://www.didierverna.com