From: "Håkon Hægland" <hakon.hagland@gmail.com>
To: 19709@debbugs.gnu.org
Subject: bug#19709: Problem with indentation for the closing parenthesis in cperl-mode version 6.1
Date: Wed, 28 Jan 2015 08:30:05 +0100 [thread overview]
Message-ID: <CACxbc=BgnKsb=KYQez74XQ30KbXChOqmyAyo8wf_63URDp5VBA@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1241 bytes --]
I have problems with correct alignment of the closing parenthesis in
cperl-mode. For example consider the following Perl code:
my $a = func1(
Module::test()
);
my $b = func2(
test()
);
my $c = func3(
Module::test(),
);
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 6.1 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..
M-x emacs-version:
GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8) of
2015-01-11 on hakon-ThinkPad-Edge-E540
I built Emacs 24.4.1 from source, using with `--with-xft` option to
configure.
Best regards,
Håkon Hægland
[-- Attachment #2: Type: text/html, Size: 1635 bytes --]
next reply other threads:[~2015-01-28 7:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-28 7:30 Håkon Hægland [this message]
2019-07-05 20:14 ` bug#19709: Problem with indentation for the closing parenthesis in cperl-mode version 6.1 Stefan Kangas
2020-11-04 20:01 ` bug#19709: [PATCH] Verify that indentation works with current cperl-mode Harald Jörg
2020-11-09 14:28 ` Lars Ingebrigtsen
2020-11-09 16:06 ` Harald Jörg
2020-11-10 13:56 ` 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='CACxbc=BgnKsb=KYQez74XQ30KbXChOqmyAyo8wf_63URDp5VBA@mail.gmail.com' \
--to=hakon.hagland@gmail.com \
--cc=19709@debbugs.gnu.org \
/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).