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: Thu, 7 Jul 2005 10:01:48 -0700 Message-ID: References: <87mzozfh6w.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1120758061 7377 80.91.229.2 (7 Jul 2005 17:41:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 7 Jul 2005 17:41:01 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 07 19:41:01 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DqaLq-0006Xa-LN for ged-emacs-devel@m.gmane.org; Thu, 07 Jul 2005 19:39:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DqaND-00043h-PF for ged-emacs-devel@m.gmane.org; Thu, 07 Jul 2005 13:41:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DqaJY-0001dJ-WC for emacs-devel@gnu.org; Thu, 07 Jul 2005 13:37:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DqaJW-0001bY-CN for emacs-devel@gnu.org; Thu, 07 Jul 2005 13:37:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DqaDw-0007mH-2M for emacs-devel@gnu.org; Thu, 07 Jul 2005 13:31:44 -0400 Original-Received: from [141.146.126.230] (helo=agminet03.oracle.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1DqZrW-0006Zw-Tc for emacs-devel@gnu.org; Thu, 07 Jul 2005 13:08:35 -0400 Original-Received: from agminet03.oracle.com (localhost [127.0.0.1]) by agminet03.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id j67H1oe4021800 for ; Thu, 7 Jul 2005 12:01:50 -0500 Original-Received: from rgmsgw301.us.oracle.com (rgmsgw301.us.oracle.com [138.1.186.50]) by agminet03.oracle.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id j67H1nsC021762 for ; Thu, 7 Jul 2005 12:01:50 -0500 Original-Received: from rgmsgw301.us.oracle.com (localhost [127.0.0.1]) by rgmsgw301.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id j67H1nEc013237 for ; Thu, 7 Jul 2005 11:01:49 -0600 Original-Received: from dradamslap (dradams-lap.us.oracle.com [130.35.177.126]) by rgmsgw301.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with SMTP id j67H1mvo013232 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Thu, 7 Jul 2005 11:01:48 -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: <87mzozfh6w.fsf-monnier+emacs@gnu.org> 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:40570 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:40570 Let's not try to be too clever. I agree. I think the behavior given by Juanma's hook code using common-lisp-indent-function gives good results: (add-hook 'emacs-lisp-mode-hook #'(lambda () (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)))) What about just integrating that behavior (i.e. without loading cl-indent)?