unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Emacs Developement List <emacs-devel@gnu.org>
Subject: Re: perl-mode indent bug
Date: Wed, 12 Apr 2006 01:11:25 -0400	[thread overview]
Message-ID: <87wtdv1iq6.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <quack.20060411T2044.lthzmircvao@roar.cs.berkeley.edu> (Karl Chen's message of "Tue, 11 Apr 2006 20:44:15 -0700")

> 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  <quarl@cs.berkeley.edu>

>         * progmodes/perl-mode.el (perl-indent-new-calculate): Recalculate
>         parse-start in case we are inside a nested function.

Installed, thanks,


        Stefan

  reply	other threads:[~2006-04-12  5:11 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-12  3:44 perl-mode indent bug Karl Chen
2006-04-12  5:11 ` Stefan Monnier [this message]
2006-04-12 12:42 ` cperl-mode instead of perl-mode? (was Re: perl-mode indent bug) Randal L. Schwartz
2006-04-12 13:18   ` Randal L. Schwartz
2006-04-12 15:16     ` Stuart D. Herring
2006-04-12 15:21       ` Randal L. Schwartz
2006-04-12 14:44   ` cperl-mode instead of perl-mode? Stefan Monnier
2006-04-13 18:51     ` Ted Zlatanov
2006-04-14 16:15       ` Richard Stallman
2006-04-18 14:56         ` Ted Zlatanov
2006-04-12 21:46   ` cperl-mode instead of perl-mode? (was Re: perl-mode indent bug) Richard Stallman
2006-04-12 21:58     ` Randal L. Schwartz
2006-04-13 16:38       ` Richard Stallman
2006-04-13 17:08         ` Randal L. Schwartz
2006-04-13 17:10         ` cperl-mode instead of perl-mode? Stefan Monnier
2006-04-14 16:15           ` Richard Stallman
2006-04-14 20:35             ` Stefan Monnier
2006-04-15  0:27               ` Randal L. Schwartz
2006-04-15  1:37                 ` Stefan Monnier
2006-04-16  2:09                   ` Richard Stallman
2006-04-15 17:32               ` Richard Stallman
2006-04-15 11:45   ` Piet van Oostrum
2006-04-15 13:36     ` Randal L. Schwartz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wtdv1iq6.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).