all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: Vincent Lefevre <vincent@vinc17.net>
Cc: 11733@debbugs.gnu.org
Subject: bug#11733: 24.1; cperl indentation bugs
Date: Sat, 21 Sep 2019 02:50:55 +0200	[thread overview]
Message-ID: <CADwFkmkmRXqDsr7d4m3d-EkNqyqNWDCEaELFJOuiZD8iajueag@mail.gmail.com> (raw)
In-Reply-To: <871ulcdhkv.fsf@ypig.lip.ens-lyon.fr>

Vincent Lefevre <vincent@vinc17.net> writes:

> The indentation in CPerl mode is buggy on sub, even with the default
> configuration (emacs -Q). Open the following file:
>
> ----------------------------------------
> #!/usr/bin/env perl
> # -*- mode: cperl -*-
>
> sub foo
>   {
>   }
>
> sub bar
>   {
>   }
> ----------------------------------------
>
> and hit the [TAB] key over the "sub bar" line. This line is indented
> by 2 columns instead of being left on the first column. More generally
> this happens on all subs except the first one.
>
> [TAB] on the '{' of sub bar (line 9 of the script) gives a 4-column
> indentation instead of 2, but this may be a consequence of the above
> problem.

I can reproduce this on Emacs 26.1.

> Other indentation bugs:
>
> ----------------------------------------
> #!/usr/bin/env perl
> # -*- mode: cperl -*-
>
> while (<>)
>   {
>     m:^  \d+ p:
>       or die;
>     m:^  \d+ :
>       or die;
>   }
> ----------------------------------------

I can reproduce this too.

Best regards,
Stefan Kangas





  parent reply	other threads:[~2019-09-21  0:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-18 10:45 bug#11733: 24.1; cperl indentation bugs Vincent Lefevre
2012-06-19 16:23 ` Glenn Morris
2019-09-21  0:50 ` Stefan Kangas [this message]
2023-07-01 22:50 ` bug#11733: Indentation has been fixed in the master branch Harald Jörg

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

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

  git send-email \
    --in-reply-to=CADwFkmkmRXqDsr7d4m3d-EkNqyqNWDCEaELFJOuiZD8iajueag@mail.gmail.com \
    --to=stefan@marxist.se \
    --cc=11733@debbugs.gnu.org \
    --cc=vincent@vinc17.net \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.