From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: Incorrect indentation after :name Date: Sun, 3 Jul 2005 19:16:16 +0200 Message-ID: References: <42C80B48.3080103@student.lu.se> <42C817DD.6000508@student.lu.se> Reply-To: Juanma Barranquero NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1120412187 21266 80.91.229.2 (3 Jul 2005 17:36:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 3 Jul 2005 17:36:27 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 03 19:36:18 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dp8Nb-0002kW-LO for ged-emacs-devel@m.gmane.org; Sun, 03 Jul 2005 19:35:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dp8Ol-0002ko-U1 for ged-emacs-devel@m.gmane.org; Sun, 03 Jul 2005 13:36:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dp8Jd-000057-Mz for emacs-devel@gnu.org; Sun, 03 Jul 2005 13:31:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dp8J4-0008G8-PZ for emacs-devel@gnu.org; Sun, 03 Jul 2005 13:31:10 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dp8Iv-000890-54 for emacs-devel@gnu.org; Sun, 03 Jul 2005 13:30:53 -0400 Original-Received: from [64.233.182.197] (helo=nproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Dp8AP-0005lK-9h for emacs-devel@gnu.org; Sun, 03 Jul 2005 13:22:05 -0400 Original-Received: by nproxy.gmail.com with SMTP id i2so125854nfe for ; Sun, 03 Jul 2005 10:16:17 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tNULpz1xglOLoTBgQTdeaBotnZIfKv8hc9/XRJAqZTYOcJ2lbDZ2CTMK8iPn1sstFpEfIPRzP3Z07Eug10BFmsC20+5VfNvgCUbom1kaD7pREJw+aCnmUwWQdDPwYOb6DSIRMyIXGEbHLOy2XEmBCtgZ+oKzlUr6ltYIIDY4E5w= Original-Received: by 10.48.249.6 with SMTP id w6mr86119nfh; Sun, 03 Jul 2005 10:16:16 -0700 (PDT) Original-Received: by 10.48.250.5 with HTTP; Sun, 3 Jul 2005 10:16:16 -0700 (PDT) Original-To: Lennart Borgman In-Reply-To: <42C817DD.6000508@student.lu.se> Content-Disposition: inline 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:40239 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:40239 On 7/3/05, Lennart Borgman wrote: > It would be ok with me, but that is not what I see ;-) >=20 > :foreground is right under "red". Tested with emacs -Q. Sorry, you're right. I forgot that I have this on my .emacs. The `lisp-indent-function' bit is the one that "fixes" the problem. Of course, one of the first things I do in .emacs is loading CL. (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)))) --=20 /L/e/k/t/u