From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Philippe Delavalade Newsgroups: gmane.emacs.help Subject: perl mode Date: Wed, 2 Oct 2013 07:00:52 +0200 Message-ID: <20131002050052.GA3387@messier31> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1380707701 14436 80.91.229.3 (2 Oct 2013 09:55:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Oct 2013 09:55:01 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 02 11:55:03 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VRJ93-0001pA-Hg for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Oct 2013 11:55:01 +0200 Original-Received: from localhost ([::1]:35050 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRJ93-0006ug-7C for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Oct 2013 05:55:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55592) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VREYX-0001Y1-LD for help-gnu-emacs@gnu.org; Wed, 02 Oct 2013 01:01:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VREYQ-0001DW-8d for help-gnu-emacs@gnu.org; Wed, 02 Oct 2013 01:01:01 -0400 Original-Received: from smtp09.smtpout.orange.fr ([80.12.242.131]:29650 helo=smtp.smtpout.orange.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VREYQ-0001DP-39 for help-gnu-emacs@gnu.org; Wed, 02 Oct 2013 01:00:54 -0400 Original-Received: from messier31 ([92.143.64.55]) by mwinf5d18 with ME id Y50s1m00C1BXZrQ0350saB; Wed, 02 Oct 2013 07:00:53 +0200 Original-Received: by messier31 (Postfix, from userid 1000) id 766937FEE8; Wed, 2 Oct 2013 07:00:52 +0200 (CEST) Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.12.242.131 X-Mailman-Approved-At: Wed, 02 Oct 2013 05:54:39 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:93791 Archived-At: 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