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: Noam Postavsky
Subject: bug#27815: 26.0.50; Misindentation in cl-labels
Date: Tue, 25 Jul 2017 09:33:54 -0400

tag 27815 confirmed
quit

On Mon, Jul 24, 2017 at 11:56 PM, Kaushal Modi <kaushal.modi@gmail.com> wrote:
> Hello,
>
> 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.

Yes, we have the similar failures with cl-flet (Bug#9622) and let
(Bug#23108). The root of the problem is that we don't have a way to
give a macro control over indentation in subexpressions of its
arguments.





reply via email to

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