GNU bug report logs -
#21090
25.0.50; `condition-case-no-debug': Please fix indentation & highlighting
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Sat, 18 Jul 2015 20:08:01 UTC
Severity: minor
Tags: wontfix
Found in version 25.0.50
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #20 received at 21090 <at> debbugs.gnu.org (full text, mbox):
Drew Adams <drew.adams <at> 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
This bug report was last modified 9 years and 22 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.