[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#19709: Problem with indentation for the closing parenthesis in cperl
bug#19709: Problem with indentation for the closing parenthesis in cperl-mode version 6.1
Fri, 5 Jul 2019 22:14:06 +0200
Håkon Hægland <address@hidden> writes:
> I have problems with correct alignment of the closing parenthesis in
> cperl-mode. For example consider the following Perl code:
> my $a = func1(
> my $b = func2(
> my $c = func3(
> We see that the closing parenthesis is not correctly indented for func1, but
> for func2 and func3 it is correct.
> In cperl-mode-hook I have
> (setq cperl-indent-level 4)
> (setq cperl-indent-parens-as-block t)
> (setq cperl-close-paren-offset -4)
> It seems to me that this behavior is related to the newest version of
> cperl-mode. I am using Emacs 24.4 on Ubuntu 14.04, and the cperl-mode that
> came with the installation
> (/opt/emacs24.4/share/emacs/24.4/lisp/progmodes/cperl-mode.el.gz) is version
> of cperl-mode.
> I then tried to install cperl-mode from ELPA using Emacs 24.4 package manager
> (list-packages), and it turned out that it gave me version 5.23 of cperl-mode
> which also indented the closing parenthesis correctly..
I can reproduce this on Emacs 26.2.
BTW, the problem goes away when I set:
(setq cperl-label-offset 0)
But of course you shouldn't have to do that.
|[Prev in Thread]
||[Next in Thread]|
- bug#19709: Problem with indentation for the closing parenthesis in cperl-mode version 6.1,
Stefan Kangas <=