[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#21090: 25.0.50; `condition-case-no-debug': Please fix indentation &
From: |
Lars Ingebrigtsen |
Subject: |
bug#21090: 25.0.50; `condition-case-no-debug': Please fix indentation & highlighting |
Date: |
Sat, 30 Apr 2016 23:24:51 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
Drew Adams <drew.adams@oracle.com> 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#21090: 25.0.50; `condition-case-no-debug': Please fix indentation & highlighting,
Lars Ingebrigtsen <=