all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: LanX <lanx.perl@googlemail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: cperl-mode
Date: Tue, 25 May 2010 03:36:11 -0700 (PDT)	[thread overview]
Message-ID: <cf676374-a14d-4a87-9b9a-dbde94aed123@c11g2000vbe.googlegroups.com> (raw)
In-Reply-To: 87iq6dc5ln.fsf@castleamber.com

> 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


  reply	other threads:[~2010-05-25 10:36 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-21 20:09 cperl-mode Terrence Brannon
     [not found] ` <874ohy7yy1.fsf@castleamber.com>
     [not found]   ` <0964e194-b8a7-4588-b686-d5e4c501262a@b21g2000vbh.googlegroups.com>
     [not found]     ` <87d3wl3ut4.fsf@castleamber.com>
2010-05-24 21:12       ` cperl-mode LanX
2010-05-24 22:11         ` cperl-mode John Bokma
2010-05-25 10:36           ` LanX [this message]
2010-05-26  5:20             ` cperl-mode Ilya Zakharevich
2010-05-26 12:41               ` cperl-mode LanX
2010-05-26 20:33                 ` cperl-mode Ilya Zakharevich
2010-05-26 21:13                   ` cperl-mode LanX
2010-05-27  7:01                     ` cperl-mode Ilya Zakharevich
2010-05-24 21:45 ` cperl-mode Andreas Politz
     [not found] <mailman.133.1188636475.18990.help-gnu-emacs@gnu.org>
2007-09-02  8:28 ` cperl-mode Ilya Zakharevich
2007-09-03  7:41   ` cperl-mode Goran
2007-09-03 20:13     ` cperl-mode Ilya Zakharevich
     [not found]   ` <mailman.222.1188805400.18990.help-gnu-emacs@gnu.org>
2007-09-03 20:19     ` cperl-mode Ilya Zakharevich
2007-09-07  4:43 ` cperl-mode Stefan Monnier
2007-09-07 23:25   ` cperl-mode Ilya Zakharevich
2007-09-08  7:33     ` cperl-mode Eli Zaretskii
     [not found]     ` <mailman.483.1189236797.18990.help-gnu-emacs@gnu.org>
2007-09-10  8:33       ` cperl-mode Ilya Zakharevich
2007-09-10 19:48         ` cperl-mode Eli Zaretskii
     [not found]         ` <mailman.654.1189453685.18990.help-gnu-emacs@gnu.org>
2007-09-11  1:08           ` cperl-mode Ilya Zakharevich
2007-09-11  3:28             ` cperl-mode Eli Zaretskii
     [not found]             ` <mailman.673.1189481287.18990.help-gnu-emacs@gnu.org>
2007-09-11 19:58               ` cperl-mode Ilya Zakharevich
2007-09-12  6:44                 ` cperl-mode Eli Zaretskii
2007-09-11  8:11           ` cperl-mode Tim X
2007-09-11 19:44             ` cperl-mode Eli Zaretskii
2007-09-11 19:53             ` cperl-mode Ilya Zakharevich
2007-09-13  8:48               ` cperl-mode Tim X
     [not found]             ` <mailman.723.1189539876.18990.help-gnu-emacs@gnu.org>
2007-09-13  8:43               ` cperl-mode Tim X
2007-09-13  8:45               ` cperl-mode Tim X
     [not found] <200708312051.l7VKpe2C020707@powdermilk.math.berkeley.edu>
2007-09-01  8:47 ` cperl-mode gordon gordon
     [not found] <200708310325.l7V3PP1e017798@powdermilk.math.berkeley.edu>
2007-08-31  8:04 ` cperl-mode gordon gordon
     [not found] <mailman.5390.1188205514.32220.help-gnu-emacs@gnu.org>
2007-08-31  3:25 ` cperl-mode Ilya Zakharevich
2007-08-31  5:24   ` cperl-mode Tim X
2007-08-31  9:22   ` cperl-mode Goran
2007-08-31 18:19     ` cperl-mode Peter Dyballa
     [not found]   ` <mailman.109.1188567372.18990.help-gnu-emacs@gnu.org>
2007-08-31 20:51     ` cperl-mode Ilya Zakharevich
2007-09-01  4:38       ` cperl-mode Tim X
2007-09-01 10:17         ` cperl-mode rahed
2007-09-02  8:23         ` cperl-mode Ilya Zakharevich
2007-09-29 19:28           ` cperl-mode David Combs
2007-09-30 19:48             ` cperl-mode Ilya Zakharevich
  -- strict thread matches above, loose matches on Subject: below --
2007-08-25 13:02 cperl-mode Goran
2004-03-26 14:47 cperl-mode Stefan Monnier
2004-03-26 18:03 ` cperl-mode Juanma Barranquero
2004-03-26 18:29   ` cperl-mode Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cf676374-a14d-4a87-9b9a-dbde94aed123@c11g2000vbe.googlegroups.com \
    --to=lanx.perl@googlemail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.