[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cperl] Sub indentation
From: |
Julien K. |
Subject: |
Re: [cperl] Sub indentation |
Date: |
Thu, 23 Apr 2009 12:30:28 +0200 |
User-agent: |
slrn/pre0.9.9-111 (Linux) |
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