Subject: bug#33301: 27.0.50; broken elisp indentation for non-definition symbols starting with "def.."

From: Michael Heerdegen <[email-masked]>
Date: Thu, 08 Nov 2018 01:35:41 +0100

Noam Postavsky <[email-masked]> writes:

> > (cond (bla
> >        ok)
> >       (defan
> >         strange))

That's explicitly done in 'lisp-indent-function':

(cond ((or (eq method 'defun)
		   (and (null method)
			(> (length function) 3)
			(string-match "\\`def" function))) ;; <==
	       (lisp-indent-defform state indent-point))
	      ((integerp method)
	       (lisp-indent-specform method state
				     indent-point normal-indent))
	      (method
		(funcall method indent-point state)))

Michael.