From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Philippe Delavalade <philippe.delavalade@orange.fr>
Cc: help-gnu-emacs@gnu.org
Subject: Re: perl mode
Date: Thu, 03 Oct 2013 22:46:06 -0400 [thread overview]
Message-ID: <jwvmwmpepjo.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <20131001160943.GA22473@messier31> (Philippe Delavalade's message of "Tue, 1 Oct 2013 18:09:43 +0200")
> #!/usr/bin/perl -w
> use strict;
> $\ = "\n";
> my $txt = 'Hello World !';
> main
> {
> if(1)
> {
> ($txt =~ m/Hello /) && (print "$'");
> }
> print "Bye";
> }
> exit(0);
> If I run the "indent-region" command (after having marked the whole
> script", identation is not correct.
As far as I can tell, the only problem is that perl-mode doesn't like to
start from a file with no indentation at all. Check `perl-nochange',
which is a regexp that specifies lines that auto-indentation should
not change. This includes all lines that start with ( or { or [.
Stefan
next prev parent reply other threads:[~2013-10-04 2:46 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-01 16:09 perl mode Philippe Delavalade
2013-10-04 2:46 ` Stefan Monnier [this message]
2013-10-04 11:22 ` Luca Ferrari
[not found] ` <mailman.3390.1380885764.10748.help-gnu-emacs@gnu.org>
2013-10-04 18:55 ` Damien Wyart
[not found] <mailman.3253.1380707680.10748.help-gnu-emacs@gnu.org>
2013-10-02 12:06 ` Damien Wyart
2013-10-02 12:23 ` Philippe Delavalade
2013-10-02 16:41 ` Philippe Delavalade
[not found] ` <mailman.3268.1380732091.10748.help-gnu-emacs@gnu.org>
2013-10-02 17:14 ` Damien Wyart
2013-10-03 16:19 ` Philippe Delavalade
-- strict thread matches above, loose matches on Subject: below --
2013-10-02 5:00 Philippe Delavalade
2013-10-02 17:10 ` Andreas Röhler
2002-05-08 19:27 Bingham, Jay
2002-05-08 17:24 Gabriel C Millerd
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=jwvmwmpepjo.fsf-monnier+emacsbugs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=help-gnu-emacs@gnu.org \
--cc=philippe.delavalade@orange.fr \
/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.
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).