From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Damien Wyart Newsgroups: gmane.emacs.help Subject: Re: perl mode Date: Wed, 02 Oct 2013 14:06:22 +0200 Organization: Serveur de News Free Message-ID: <524c0c3f$0$2267$426a34cc@news.free.fr> References: 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 1380715816 11072 80.91.229.3 (2 Oct 2013 12:10:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Oct 2013 12:10:16 +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:10:19 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 1VRLFz-0002ri-3M for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Oct 2013 14:10:19 +0200 Original-Received: from localhost ([::1]:35676 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRLFy-0004Nx-3r for geh-help-gnu-emacs@m.gmane.org; Wed, 02 Oct 2013 08:10:18 -0400 X-Received: by 10.180.216.106 with SMTP id op10mr851876wic.4.1380715583877; Wed, 02 Oct 2013 05:06:23 -0700 (PDT) Original-Path: usenet.stanford.edu!g3no2890745wic.0!news-out.google.com!ed8ni289420wic.0!nntp.google.com!proxad.net!feeder1-2.proxad.net!cleanfeed2-a.proxad.net!nnrp6-1.free.fr!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 Original-Lines: 24 Original-NNTP-Posting-Date: 02 Oct 2013 14:06:23 CEST Original-NNTP-Posting-Host: 213.41.244.197 Original-X-Trace: 1380715583 news-4.free.fr 2267 213.41.244.197:51300 Original-X-Complaints-To: abuse@proxad.net Original-Xref: usenet.stanford.edu gnu.emacs.help:201523 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:93792 Archived-At: * 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. > 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