From: "Julien K." <bozo_le_clown@wherever.you.want.com>
To: help-gnu-emacs@gnu.org
Subject: Re: [cperl] Sub indentation
Date: Thu, 23 Apr 2009 12:30:28 +0200 [thread overview]
Message-ID: <slrngv0gq4.qbo.bozo_le_clown@thabor.lan.ah2d.fr> (raw)
In-Reply-To: slrngur1uq.4r8.bozo_le_clown@thabor.lan.ah2d.fr
On 21-04-2009, Julien K. wrote:
> Dear Emacs users,
>
> I'm trying to get correct 'sub' indentation with Emacs (on OSX, both
> Aquamacs and Carbon Emacs). I'm using GNU-style indentation, the incorrect
> indentation happens after the 'sub' closing statement.
>
> With my current setting the following line is indented like the closing
> brace of the 'sub':
>
><<<<<
> sub mySub
> { my ($self) = @_ ;
> # perl stuff
> return ($var) ;
> }
> # Other stuff
> sub myOtherSub
> { ...
>>>>>>
>
> I'd like 'sub' block indentation behave like 'foreach' or 'if' blocks:
>
><<<<<
> sub mySub
> { my ($self) = @_ ;
> # perl stuff
> return ($var) ;
> }
> # Other stuff
> sub myOtherSub
> { ...
>>>>>>
>
> Any hints? I think old versions of cperl (4.32 I think) behaved like that.
Anyone? I tried last cperl version with GNU-Emacs and XEmacs (stable &
beta) on several machines (Linux/Win2k/OsX) and I got the same problem. I
tried to customize several lisp cperl-variables with not much luck...
Julien
prev parent reply other threads:[~2009-04-23 10:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-21 8:46 [cperl] Sub indentation Julien K.
2009-04-23 10:30 ` Julien K. [this message]
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=slrngv0gq4.qbo.bozo_le_clown@thabor.lan.ah2d.fr \
--to=bozo_le_clown@wherever.you.want.com \
--cc=help-gnu-emacs@gnu.org \
--cc=jkirmaier@free.fr \
/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.