From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: Incorrect indentation after :name Date: Sun, 3 Jul 2005 15:29:35 -0700 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1120430380 18876 80.91.229.2 (3 Jul 2005 22:39:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 3 Jul 2005 22:39:40 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 04 00:39:39 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DpD74-0004e1-Tc for ged-emacs-devel@m.gmane.org; Mon, 04 Jul 2005 00:38:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DpD8F-0003Ic-Qa for ged-emacs-devel@m.gmane.org; Sun, 03 Jul 2005 18:40:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DpD6X-0001we-B8 for emacs-devel@gnu.org; Sun, 03 Jul 2005 18:38:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DpD6Q-0001u3-9K for emacs-devel@gnu.org; Sun, 03 Jul 2005 18:38:20 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DpD6O-0001rY-N4 for emacs-devel@gnu.org; Sun, 03 Jul 2005 18:38:16 -0400 Original-Received: from [148.87.122.31] (helo=rgminet02.oracle.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1DpD3g-0007sL-PF for emacs-devel@gnu.org; Sun, 03 Jul 2005 18:35:28 -0400 Original-Received: from rgminet02.oracle.com (localhost [127.0.0.1]) by rgminet02.oracle.com (Switch-3.1.6/Switch-3.1.7) with ESMTP id j63MTb1q015748 for ; Sun, 3 Jul 2005 16:29:37 -0600 Original-Received: from rgmsgw300.us.oracle.com (rgmsgw300.us.oracle.com [138.1.186.49]) by rgminet02.oracle.com (Switch-3.1.6/Switch-3.1.7) with ESMTP id j63MTaXB015725 for ; Sun, 3 Jul 2005 16:29:36 -0600 Original-Received: from rgmsgw300.us.oracle.com (localhost [127.0.0.1]) by rgmsgw300.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id j63MTaEO022790 for ; Sun, 3 Jul 2005 16:29:36 -0600 Original-Received: from dradamslap (dhcp-amer-csvpn-gw2-141-144-72-91.vpn.oracle.com [141.144.72.91]) by rgmsgw300.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with SMTP id j63MTZqB022780 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Sun, 3 Jul 2005 16:29:35 -0600 Original-To: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Importance: Normal X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:40281 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:40281 (add-hook 'emacs-lisp-mode-hook #'(lambda () (turn-on-eldoc-mode) (unless (assoc-string "cl-indent" load-history) (load "cl-indent" nil t)) (set (make-local-variable 'lisp-indent-function) 'common-lisp-indent-function) (setq lisp-indent-maximum-backtracking 10) (put 'define-derived-mode 'common-lisp-indent-function '(4 4 4 2 &body)) (put 'if 'common-lisp-indent-function '(nil nil &body)))) I like it. Why isn't this indentation the default for emacs-lisp-mode and lisp-interaction-mode (and maybe lisp-mode)? Do most people prefer the first of these? The second seems clearer to me (list vs function call). 1. '(foo bar and (foo bar toto) toto) 2. '(foo bar and (foo bar toto) toto)