From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Julien K." Newsgroups: gmane.emacs.help Subject: [cperl] Sub indentation Date: Tue, 21 Apr 2009 10:46:18 +0200 Organization: Conspiracy Inc. Message-ID: Reply-To: jkirmaier@free.fr NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1240328297 22686 80.91.229.12 (21 Apr 2009 15:38:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Apr 2009 15:38:17 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 21 17:39:36 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LwI43-0003eU-Ht for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Apr 2009 17:39:15 +0200 Original-Received: from localhost ([127.0.0.1]:48631 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LwI2e-00044w-Kv for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Apr 2009 11:37:48 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!proxad.net!feeder1-2.proxad.net!193.252.117.184.MISMATCH!news.wanadoo.fr!news.wanadoo.fr!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: slrn/pre0.9.9-111 (Linux) Original-Lines: 38 Original-NNTP-Posting-Date: 21 Apr 2009 10:50:02 CEST Original-NNTP-Posting-Host: 217.128.215.161 Original-X-Trace: 1240303802 news.orange.fr 17109 217.128.215.161:12016 Original-X-Complaints-To: abuse@orange.fr Original-Xref: news.stanford.edu gnu.emacs.help:168647 X-Mailman-Approved-At: Tue, 21 Apr 2009 11:37:20 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:63922 Archived-At: 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