From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: perl-mode indent bug Date: Wed, 12 Apr 2006 01:11:25 -0400 Message-ID: <87wtdv1iq6.fsf-monnier+emacs@gnu.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1144818723 26192 80.91.229.2 (12 Apr 2006 05:12:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 12 Apr 2006 05:12:03 +0000 (UTC) Cc: Emacs Developement List Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 12 07:12:01 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FTXdy-0007uq-PR for ged-emacs-devel@m.gmane.org; Wed, 12 Apr 2006 07:11:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FTXdx-0006I3-QJ for ged-emacs-devel@m.gmane.org; Wed, 12 Apr 2006 01:11:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FTXdZ-0006Fz-G1 for emacs-devel@gnu.org; Wed, 12 Apr 2006 01:11:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FTXdW-0006Ef-W9 for emacs-devel@gnu.org; Wed, 12 Apr 2006 01:11:28 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FTXdW-0006EX-Or for emacs-devel@gnu.org; Wed, 12 Apr 2006 01:11:26 -0400 Original-Received: from [209.226.175.54] (helo=tomts10-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FTXiY-0001R0-06 for emacs-devel@gnu.org; Wed, 12 Apr 2006 01:16:38 -0400 Original-Received: from alfajor ([70.55.147.51]) by tomts10-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060412051125.VMNJ20622.tomts10-srv.bellnexxia.net@alfajor>; Wed, 12 Apr 2006 01:11:25 -0400 Original-Received: by alfajor (Postfix, from userid 1000) id 860FBD8538; Wed, 12 Apr 2006 01:11:25 -0400 (EDT) Original-To: Karl Chen In-Reply-To: (Karl Chen's message of "Tue, 11 Apr 2006 20:44:15 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:52733 Archived-At: > Perl-mode mis-indents this: > { > sub foo { > } > } > It always puts the "}" closing a subroutine whose opening "{" is > hanging at column 0, even when it should be matching the opening > line. > The patch below works for me. > 2006-04-11 Karl Chen > * progmodes/perl-mode.el (perl-indent-new-calculate): Recalculate > parse-start in case we are inside a nested function. Installed, thanks, Stefan