unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* cperl indent after open paren
@ 2003-03-13 22:25 Michael P. Soulier
  2003-03-14  9:13 ` Kai Großjohann
  0 siblings, 1 reply; 3+ messages in thread
From: Michael P. Soulier @ 2003-03-13 22:25 UTC (permalink / raw)


    Hey people,

    I'm not sure which customization this is, or if it has one, but I'd like
to set up indentation in perl (and all other languages for that matter) such
that when you go to the next line after leaving an open paren, the indentation
is not at the same level as the open paren, but just a standard indent. 

ie. 

not like this:

reallybigfunctioncall(
                      continued statement


but like this:

reallybigfunctioncall(
    continued statement    

    Is there a customization for this, and if so, what is it?

    Thanks,
    Mike

-- 
Michael P. Soulier <msoulier@digitaltorque.ca>, GnuPG pub key: 5BC8BE08
"...the word HACK is used as a verb to indicate a massive amount
of nerd-like effort."  -Harley Hahn, A Student's Guide to Unix
HTML Email Considered Harmful: http://expita.com/nomime.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: cperl indent after open paren
  2003-03-13 22:25 cperl indent after open paren Michael P. Soulier
@ 2003-03-14  9:13 ` Kai Großjohann
  2003-03-14 21:04   ` Ilya Zakharevich
  0 siblings, 1 reply; 3+ messages in thread
From: Kai Großjohann @ 2003-03-14  9:13 UTC (permalink / raw)


"Michael P. Soulier" <msoulier@storm.ca._nospam> writes:

> not like this:
>
> reallybigfunctioncall(
>                       continued statement
>
>
> but like this:
>
> reallybigfunctioncall(
>     continued statement    

I want to have this, too.  So when you find out, please tell me.

Meanwhile, I make do with putting the opening parenthesis on the next
line:

reallybigfunctioncall
    (first parameter,
     second parameter);

In C-like modes, you could try to hit C-c C-s on two X characters in
the following code to see if there is a difference.  If there is a
difference, then C-c C-o might be able to set up the indentation
correctly.

function_name(
              X,
              Y);

function_name(A,
              X,
              Y);

-- 
A preposition is not a good thing to end a sentence with.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: cperl indent after open paren
  2003-03-14  9:13 ` Kai Großjohann
@ 2003-03-14 21:04   ` Ilya Zakharevich
  0 siblings, 0 replies; 3+ messages in thread
From: Ilya Zakharevich @ 2003-03-14 21:04 UTC (permalink / raw)


[A complimentary Cc of this posting was sent to
Kai =?iso-8859-1?q?Gro=DFjohann?=
<kai.grossjohann@uni-duisburg.de>], who wrote in article <84hea6gvkx.fsf@lucy.is.informatik.uni-duisburg.de>:

> I want to have this, too.  So when you find out, please tell me.

  M-x customize-browse

Hope this helps,
Ilya

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-03-14 21:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-13 22:25 cperl indent after open paren Michael P. Soulier
2003-03-14  9:13 ` Kai Großjohann
2003-03-14 21:04   ` Ilya Zakharevich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).