* [cperl] Sub indentation
@ 2009-04-21 8:46 Julien K.
2009-04-23 10:30 ` Julien K.
0 siblings, 1 reply; 2+ messages in thread
From: Julien K. @ 2009-04-21 8:46 UTC (permalink / raw)
To: help-gnu-emacs
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.
Cheers,
Julien
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [cperl] Sub indentation
2009-04-21 8:46 [cperl] Sub indentation Julien K.
@ 2009-04-23 10:30 ` Julien K.
0 siblings, 0 replies; 2+ messages in thread
From: Julien K. @ 2009-04-23 10:30 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-04-23 10:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-21 8:46 [cperl] Sub indentation Julien K.
2009-04-23 10:30 ` Julien K.
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).