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: Re: perl mode Date: Wed, 2 Oct 2013 14:23:42 +0200 Message-ID: <20131002122342.GA4825@messier31> References: <524c0c3f$0$2267$426a34cc@news.free.fr> 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 1380716649 22038 80.91.229.3 (2 Oct 2013 12:24:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Oct 2013 12:24:09 +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 14:24:12 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 1VRLTP-0007Kk-Hp for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Oct 2013 14:24:11 +0200 Original-Received: from localhost ([::1]:35740 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRLTP-0006ZN-4K for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Oct 2013 08:24:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52052) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRLT5-0006Rf-1x for help-gnu-emacs@gnu.org; Wed, 02 Oct 2013 08:23:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VRLSy-0001u6-Su for help-gnu-emacs@gnu.org; Wed, 02 Oct 2013 08:23:50 -0400 Original-Received: from smtp01.smtpout.orange.fr ([80.12.242.123]:53919 helo=smtp.smtpout.orange.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRLSy-0001u1-MQ for help-gnu-emacs@gnu.org; Wed, 02 Oct 2013 08:23:44 -0400 Original-Received: from messier31 ([92.143.64.55]) by mwinf5d36 with ME id YCPi1m00W1BXZrQ03CPjyN; Wed, 02 Oct 2013 14:23:43 +0200 Original-Received: by messier31 (Postfix, from userid 1000) id 75B847FEE8; Wed, 2 Oct 2013 14:23:42 +0200 (CEST) Content-Disposition: inline In-Reply-To: <524c0c3f$0$2267$426a34cc@news.free.fr> 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.123 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:93793 Archived-At: Fisrt, I'm sorry to havec sent the same message twice but as the first one didn't appear, I tried again. Le mercredi 02 octobre à 14:06, Damien Wyart a écrit : > * Philippe Delavalade in gnu.emacs.help: > > it's my first post on this list, so be kind with my english :-) > > If you prefer writing in French, there is also a French newsgroup > related to Emacs : fr.comp.application.emacs. Ok. > > > I have problems with indentation in perl mode when usign "$'" ; > > I guess it comes from the "'"... > > I don't think so: removing it doesn't change the observed behavior. > > > 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... > > You can use cperl mode instead of perl, it is a bit more powerful. The > simplest way to do so is by adding this line to .emacs: > > (defalias 'perl-mode 'cperl-mode) > > A quick test shows that your example works better with cperl mode. > > -- > DW Many thanks ! -- Ph. Delavalade