GNU bug report logs -
#11733
24.1; cperl indentation bugs
Previous Next
Reported by: Vincent Lefevre <vincent <at> vinc17.net>
Date: Mon, 18 Jun 2012 10:49:02 UTC
Severity: minor
Tags: confirmed
Found in versions 26.1, 24.1
Done: Harald Jörg <haj <at> posteo.de>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Vincent Lefevre <vincent <at> 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
This bug report was last modified 2 years and 20 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.