all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [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.

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.