From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Peter Seibel Newsgroups: gmane.emacs.bugs Subject: Small patch for cl-indent Date: Wed, 11 Aug 2004 10:04:47 -0700 Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1092244130 27477 80.91.224.253 (11 Aug 2004 17:08:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 11 Aug 2004 17:08:50 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 11 19:08:09 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Buwa9-00055n-00 for ; Wed, 11 Aug 2004 19:08:09 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Buwe0-0003Vu-Qh for geb-bug-gnu-emacs@m.gmane.org; Wed, 11 Aug 2004 13:12:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Buwdx-0003VO-En for bug-gnu-emacs@gnu.org; Wed, 11 Aug 2004 13:12:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Buwdu-0003Uz-9F for bug-gnu-emacs@gnu.org; Wed, 11 Aug 2004 13:12:05 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Buwdt-0003Up-TI for bug-gnu-emacs@gnu.org; Wed, 11 Aug 2004 13:12:02 -0400 Original-Received: from [67.127.72.75] (helo=localhost.javamonkey.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BuwZy-00083j-1k for bug-gnu-emacs@gnu.org; Wed, 11 Aug 2004 13:07:58 -0400 Original-Received: by localhost.javamonkey.com (Postfix, from userid 500) id C350A4008; Wed, 11 Aug 2004 10:04:47 -0700 (PDT) Original-To: bug-gnu-emacs@gnu.org User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:8684 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:8684 This patch makes cl-indent indent DEFMETHODS with non-standard method combinations (e.g. PROGN, MIN, MAX) "correctly". -Peter --- cl-indent.el~ Wed Aug 15 04:56:38 2001 +++ cl-indent.el Wed Aug 11 10:03:31 2004 @@ -361,7 +361,7 @@ (lisp-indent-259 (if (save-excursion (goto-char (elt state 1)) (forward-char 1) (forward-sexp 2) - (looking-at "\\s-+:")) + (looking-at "\\s-+:?\\sw+\\s-+")) '(4 4 (&whole 4 &rest 4) &body) (get 'defun 'common-lisp-indent-function)) path state indent-point sexp-column normal-indent)) -- Peter Seibel peter@javamonkey.com Lisp is the red pill. -- John Fraser, comp.lang.lisp