]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix cl-indent for `loop' with :keywords (Bug#15543)
authorSvante Carl v. Erichsen <Svante.v.Erichsen@web.de>
Sun, 6 Oct 2013 18:33:24 +0000 (20:33 +0200)
committerNoam Postavsky <npostavs@gmail.com>
Sat, 27 May 2017 20:08:35 +0000 (16:08 -0400)
* lisp/emacs-lisp/cl-indent.el (lisp-extended-loop-p): Allow for
":keywords".

Copyright-paperwork-exempt: yes

lisp/emacs-lisp/cl-indent.el

index 9941d17359641fd320bc343dff0de153921d337a..df0e0a885831881f977b3f87b44c4a230b02a9f0 100644 (file)
@@ -166,7 +166,7 @@ is set to `defun'.")
        (forward-char 1)
        (forward-sexp 2)
        (backward-sexp 1)
-       (looking-at "\\sw"))
+       (looking-at "\\(:\\|\\sw\\)"))
     (error t)))
 
 (defun lisp-indent-find-method (symbol &optional no-compat)