all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Small patch for cl-indent
@ 2004-08-11 17:04 Peter Seibel
  0 siblings, 0 replies; only message in thread
From: Peter Seibel @ 2004-08-11 17:04 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-08-11 17:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-11 17:04 Small patch for cl-indent Peter Seibel

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.