Subject: Re: bug#21090: 25.0.50; `condition-case-no-debug': Please fix indentation & highlighting

From: Lars Ingebrigtsen <[email-masked]>
Date: Sat, 30 Apr 2016 23:24:51 +0200

Drew Adams <[email-masked]> writes:

> (defun lisp-indentation-hack ()
>   (unless (load-history-filename-element (load-history-regexp "cl-indent"))
>     (load "cl-indent" nil t))
>   (set (make-local-variable 'lisp-indent-function)
>        'common-lisp-indent-function))
>
> (add-hook 'emacs-lisp-mode-hook 'lisp-indentation-hack)
>
> 4. Put point at beginning of the `(defun....)' in foo.el, and hit `C-M-q'.
>
> Result:
>
> (defun foo ()
>   ""
>   (interactive)
>   (condition-case-no-debug foo
>                            (save-excursion (goto-char 44))
>                            (error (error "%s" (error-message-string foo)))))
>
> Prior to Emacs 24.1, there is no change in indentation.  Starting with
> 24.1, the `save-excursion' and `error' sexps are aligned with `foo'.

So this bug report is that if you indent Emacs Lisp code with the Common
Lisp indentation function, then it doesn't do the right thing?

I don't think this is a bug.  Closing.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no