bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#27815: 26.0.50; Misindentation in cl-labels


From: Lars Ingebrigtsen
Subject: bug#27815: 26.0.50; Misindentation in cl-labels
Date: Fri, 05 Feb 2021 13:12:45 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Kaushal Modi <kaushal.modi@gmail.com> writes:

> I am able to reproduce with mis-indentation on emacs -Q:
>
> Here is an example code:
>
> (require 'cl-lib)
> (cl-labels ((categoryp (tag)
>       (string-match-p "\\`@" tag)))
>   (categoryp "@a"))
>
> Above is the result of selecting the whole code and C-M-\ (indent-region).
> Notice that the body of `categoryp' gets indented by the name of that fn.

This has apparently changed between when this was reported and now (in
Emacs 28).  But it's still wrong:

(require 'cl-lib)
(cl-labels ((categoryp (tag) 
                       (string-match-p "\\`@" tag)))
  (categoryp "@a"))

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]