From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: LanX Newsgroups: gmane.emacs.help Subject: Re: cperl-mode Date: Tue, 25 May 2010 03:36:11 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <874ohy7yy1.fsf@castleamber.com> <0964e194-b8a7-4588-b686-d5e4c501262a@b21g2000vbh.googlegroups.com> <87d3wl3ut4.fsf@castleamber.com> <88d2f588-6826-447b-9a14-8ea1d827c44e@o15g2000vbb.googlegroups.com> <87iq6dc5ln.fsf@castleamber.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1291822902 29483 80.91.229.12 (8 Dec 2010 15:41:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Dec 2010 15:41:42 +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 Dec 08 16:41:38 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQM9B-0002ZQ-Bs for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 16:41:38 +0100 Original-Received: from localhost ([127.0.0.1]:51888 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQM94-0008H5-E6 for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 10:41:30 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!c11g2000vbe.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 69 Original-NNTP-Posting-Host: 89.247.158.35 Original-X-Trace: posting.google.com 1274783771 6633 127.0.0.1 (25 May 2010 10:36:11 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 25 May 2010 10:36:11 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: c11g2000vbe.googlegroups.com; posting-host=89.247.158.35; posting-account=W9fpQwoAAADZYmkl-8sXk1VPxG3rq-Pd User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.0.19) Gecko/2010040118 Ubuntu/8.10 (intrepid) Firefox/3.0.19,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:178412 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:75550 Archived-At: > OK, thanks for the heads up. I am still an Emacs newbie, and thought I > was missing something. The only thing that you were missing is that Terrence aka Metaperl aka Princepawn seems far to cool for a serious discussion. People are trying here to figure out what he exactly wants in this thread simply named cperl-mode. Is it the line indentation in a multiline hash literal ??? Or is it the alignment of the fat comma ("=>") ??? cperl-set-style doesn't affect any of these, you have to look into the documentation or try them out to see it. And IMHO J.Rockway is just publishing a fork to support modules like Moose and Devel::REPL, he is not the new maintainer. Don't know if this "splitted personality" really intends to be a troll, but he certainly has a talent in spreading confusion. (just go to perlmonks and look at his list of worst posts) So better ignore him as long he doesn't posts precise informations, if you don't wanna waste your time. (seems like that is what Ilya actually does) Now, to give this discussion a productive turn here is the part of cperl-mode.el which IMHO affects the line indentation: ---------- ((eq 'in-parens (elt i 0)) ;; in-parens char-after old-indent-point is-brace containing-sexp ;; group is an expression, not a block: ;; indent to just after the surrounding open parens, ;; skip blanks if we do not close the expression. (+ (progn (goto-char (elt i 2)) ; old-indent-point (current-column)) (if (and (elt i 3) ; is-brace (eq (elt i 1) ?\})) ; char-after ;; Correct indentation of trailing ?\} (+ cperl-indent-level cperl-close-paren-offset) 0))) -------- Would be nice if Ilya (or someone else) could add a new option to not indent after surrounding parens, I have only limited resources to do it right now. for the moment an extra newline is the best workaround for a dense indentation. ------------ my %default = ( amount => 0, balance => 0, total_items => 0, trade_disc => 0, debit => 1 ); ------------- cheers rolf