From: Philippe Delavalade <philippe.delavalade@orange.fr>
To: help-gnu-emacs@gnu.org
Subject: perl mode
Date: Wed, 2 Oct 2013 07:00:52 +0200 [thread overview]
Message-ID: <20131002050052.GA3387@messier31> (raw)
Hi all.
it's my first post on this list, so be kind with my english :-)
I have problems with indentation in perl mode when usign "$'" ; I guess it
comes from the "'"...
Here is a little example :
#!/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.
I suspect I should add some lines in .emacs but I don't know which are the
right ones...
Thanks in advance for help.
--
Ph. Delavalade
next reply other threads:[~2013-10-02 5:00 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-02 5:00 Philippe Delavalade [this message]
2013-10-02 17:10 ` perl mode Andreas Röhler
[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-01 16:09 Philippe Delavalade
2013-10-04 2:46 ` Stefan Monnier
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
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=20131002050052.GA3387@messier31 \
--to=philippe.delavalade@orange.fr \
--cc=help-gnu-emacs@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.
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).