From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Pustovoyt Alexander Newsgroups: gmane.emacs.help Subject: Can't format my Perl code properly with cperl-mode Date: Tue, 29 Oct 2013 12:57:35 +0400 Message-ID: <73861383037055@web4h.yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="koi8-r" X-Trace: ger.gmane.org 1383049398 17459 80.91.229.3 (29 Oct 2013 12:23:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Oct 2013 12:23:18 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 29 13:23:23 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 1Vb8KQ-00035a-4K for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Oct 2013 13:23:22 +0100 Original-Received: from localhost ([::1]:46850 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vb8KP-0005Ug-M1 for geh-help-gnu-emacs@m.gmane.org; Tue, 29 Oct 2013 08:23:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44060) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vb57V-0002wB-8v for help-gnu-emacs@gnu.org; Tue, 29 Oct 2013 04:57:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vb57P-00038a-1T for help-gnu-emacs@gnu.org; Tue, 29 Oct 2013 04:57:49 -0400 Original-Received: from forward5h.mail.yandex.net ([84.201.186.23]:36795) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vb57O-00038Q-NG for help-gnu-emacs@gnu.org; Tue, 29 Oct 2013 04:57:42 -0400 Original-Received: from web4h.yandex.ru (web4h.yandex.ru [84.201.186.33]) by forward5h.mail.yandex.net (Yandex) with ESMTP id 64F4CD014BD for ; Tue, 29 Oct 2013 12:57:37 +0400 (MSK) Original-Received: from 127.0.0.1 (localhost [127.0.0.1]) by web4h.yandex.ru (Yandex) with ESMTP id EF390181652; Tue, 29 Oct 2013 12:57:36 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1383037057; bh=FTUhvor0OORc99CvpvAndV8tFWFuPSLDNQav/f7kxsQ=; h=From:To:Subject:Date; b=NS0HX94zf0LvidlGOknVkWeeCUMdrmuJG4SsI8LQRALq6DjusaAhsoQpjnEc57zi0 nsb9VtiK8lh/plBNTfnV6rAoGQqB5eQcUVYn8rX668KMxydI2gpc4tqWqHH4EjPCag E+Qxx9G4hpL7befRVksuPe7ui7A0CRyF7eZhnKxg= Original-Received: from [91.224.183.164] ([91.224.183.164]) by web4h.yandex.ru with HTTP; Tue, 29 Oct 2013 12:57:35 +0400 X-Mailer: Yamail [ http://yandex.ru ] 5.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 84.201.186.23 X-Mailman-Approved-At: Tue, 29 Oct 2013 08:23:07 -0400 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:94238 Archived-At: My problem is the same as the described in Emacs Wiki: Indenting Perl - Treating parentheses as blocks (http://www.emacswiki.org/emacs/IndentingPerl). š I've got: š sub _get_options { š return Getopt::Long::GetOptions(\%Options, ššššššššššššššššššššššššššššššššš qw( ššššššššššššššššššššššššššššššššššššš version|V ššššššššššššššššššššššššššššššššššššš ) ššššššššššššššššššššššššššššššššš ); } š instead of desirable: š sub _get_options { š return Getopt::Long::GetOptions(\%Options, ššš qw( ššššš version|V ššš ) š ); } š My ~/.emacs content is: š (setq-default indent-tabs-mode nil) š (defalias 'perl-mode 'cperl-mode) (setq-default šcperl-indent-level 2 šcperl-indent-parens-as-block t šcperl-tab-always-indent t šcperl-continued-statement-offset 2 šcperl-continued-brace-offset -2 šcperl-close-paren-offset -2 ) š š I'm running GNU Emacs 24.3.1 with CPerl 6.2-Emacs. š