unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Kaushal Modi <kaushal.modi@gmail.com>
Cc: 27815@debbugs.gnu.org
Subject: bug#27815: 26.0.50; Misindentation in cl-labels
Date: Fri, 05 Feb 2021 13:12:45 +0100	[thread overview]
Message-ID: <87ft2aiugy.fsf@gnus.org> (raw)
In-Reply-To: <CAFyQvY0=B10GOJ0YQ3zBFdSKb7OgehB-8=ZEV_DMsgC_GeRiFg@mail.gmail.com> (Kaushal Modi's message of "Tue, 25 Jul 2017 03:56:28 +0000")

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





  parent reply	other threads:[~2021-02-05 12:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-25  3:56 bug#27815: 26.0.50; Misindentation in cl-labels Kaushal Modi
2017-07-25 13:33 ` Noam Postavsky
2021-02-05 12:12 ` Lars Ingebrigtsen [this message]
2021-09-25  1:30 ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ft2aiugy.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=27815@debbugs.gnu.org \
    --cc=kaushal.modi@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).