From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: indentation of functions inside flet Date: Fri, 20 Jan 2012 11:17:46 -0500 Message-ID: References: <33173596.post@talk.nabble.com> <33174731.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1327076280 29053 80.91.229.12 (20 Jan 2012 16:18:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 20 Jan 2012 16:18:00 +0000 (UTC) Cc: Emacs-devel@gnu.org To: egnarts-ms Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 20 17:17:56 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RoHA3-0004Dx-KV for ged-emacs-devel@m.gmane.org; Fri, 20 Jan 2012 17:17:55 +0100 Original-Received: from localhost ([::1]:45142 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoHA3-0007nU-40 for ged-emacs-devel@m.gmane.org; Fri, 20 Jan 2012 11:17:55 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:42344) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoH9w-0007mz-O1 for Emacs-devel@gnu.org; Fri, 20 Jan 2012 11:17:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RoH9v-0003QP-KN for Emacs-devel@gnu.org; Fri, 20 Jan 2012 11:17:48 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:60594) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoH9v-0003QG-Dv for Emacs-devel@gnu.org; Fri, 20 Jan 2012 11:17:47 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAEeTGU9MCos2/2dsb2JhbABDrgaBBoFyAQEEAVYjEAs0EhQYDSSID7hXjCYEiDyacIRW X-IronPort-AV: E=Sophos;i="4.71,543,1320642000"; d="scan'208";a="157783595" Original-Received: from 76-10-139-54.dsl.teksavvy.com (HELO pastel.home) ([76.10.139.54]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 20 Jan 2012 11:17:46 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 370A45946E; Fri, 20 Jan 2012 11:17:46 -0500 (EST) In-Reply-To: <33174731.post@talk.nabble.com> (egnarts-ms's message of "Fri, 20 Jan 2012 06:37:55 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:147779 Archived-At: >>> So it would be nice if Lisp mode indented such function definitions like >>> defuns. I wonder, has anyone cared about this before me (I'm sure >>> someone >>> has) and are there any improvements to the Lisp mode available ? >> It would be nice if CL macros were indented better, I agree. >> Note that the way to do it is to put the bulk of the code in cl(-*).el and >> only change lisp-mode.el so as to provide hooks that CL needs. > Basically, what is wrong with the current indentation mechanism is its > short-sightedness. I don't disagree. But all it means is that the lisp-indent-function hook is not flexible enough and needs to be spiced up, so that CL can use it to get better indentation. Maybe we can steal some code from the SLIME guys for that. Stefan