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: Tue, 1 Oct 2013 18:09:43 +0200 Message-ID: <20131001160943.GA22473@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 1380707697 14359 80.91.229.3 (2 Oct 2013 09:54:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Oct 2013 09:54:57 +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:00 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 1VRJ91-0001la-AP for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Oct 2013 11:54:59 +0200 Original-Received: from localhost ([::1]:35049 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRJ90-0006pj-TQ for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Oct 2013 05:54:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42704) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VR2WH-0007u7-4E for help-gnu-emacs@gnu.org; Tue, 01 Oct 2013 12:10:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VR2W9-0001xR-GW for help-gnu-emacs@gnu.org; Tue, 01 Oct 2013 12:09:53 -0400 Original-Received: from smtp06.smtpout.orange.fr ([80.12.242.128]:28917 helo=smtp.smtpout.orange.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VR2W9-0001wI-Aa for help-gnu-emacs@gnu.org; Tue, 01 Oct 2013 12:09:45 -0400 Original-Received: from messier31 ([81.251.89.33]) by mwinf5d41 with ME id Xs9j1m00y0jAVCp03s9jc3; Tue, 01 Oct 2013 18:09:44 +0200 Original-Received: by messier31 (Postfix, from userid 1000) id 780CB7FE63; Tue, 1 Oct 2013 18:09:43 +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.128 X-Mailman-Approved-At: Wed, 02 Oct 2013 05:54:36 -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:93790 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