From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: egnarts-ms Newsgroups: gmane.emacs.devel Subject: indentation of functions inside flet Date: Fri, 20 Jan 2012 02:50:46 -0800 (PST) Message-ID: <33173596.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1327060238 1591 80.91.229.12 (20 Jan 2012 11:50:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 20 Jan 2012 11:50:38 +0000 (UTC) To: Emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 20 12:50:34 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 1RoCzJ-0002kw-NT for ged-emacs-devel@m.gmane.org; Fri, 20 Jan 2012 12:50:33 +0100 Original-Received: from localhost ([::1]:52747 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoCzI-0000GO-Fw for ged-emacs-devel@m.gmane.org; Fri, 20 Jan 2012 06:50:32 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:57392) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoC3V-0002CD-CR for Emacs-devel@gnu.org; Fri, 20 Jan 2012 05:50:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RoC3U-00046N-63 for Emacs-devel@gnu.org; Fri, 20 Jan 2012 05:50:49 -0500 Original-Received: from sam.nabble.com ([216.139.236.26]:54750) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoC3U-00046H-2D for Emacs-devel@gnu.org; Fri, 20 Jan 2012 05:50:48 -0500 Original-Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1RoC3T-0002Lk-05 for Emacs-devel@gnu.org; Fri, 20 Jan 2012 02:50:47 -0800 X-Nabble-From: egnartsms@gmail.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 216.139.236.26 X-Mailman-Approved-At: Fri, 20 Jan 2012 06:50:30 -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:147765 Archived-At: Function definitions established by "flet", "flet*" and "labels" are not aligned (indented) the same way as those established with usual "defun". Instead, certainly, they are indented according to what the function name specifies, like the following: (flet ((some-func (a b) (* a b))) (body-form-1) (body-form-2) ...) In most cases function names (like "some-func" in this example) do not have the "lisp-indent-function" symprop attached, and even if they happen to have--that is also not what we want. 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 ? (I managed to introduce a change to "lisp-indent-function" function which does the job, but I'm not sure whether my patch can be considered a decent one.) -- View this message in context: http://old.nabble.com/indentation-of-functions-inside-flet-tp33173596p33173596.html Sent from the Emacs - Dev mailing list archive at Nabble.com.