[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Indentations, PERL

From: martin rudalics
Subject: Re: Indentations, PERL
Date: Wed, 27 Jun 2007 10:06:56 +0200
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

Pleae ignore my first reply on this, it got mangled while sending.

> What I think is the bug, is a problem with automatic indentations when I
> type PERL programs. Let me get right to the point and I'll paste first
> the code how it is automatically indented:
> sub insert_sub {
>    return unless (save_slide());
>    my $after = 0;
>    prompt(0, 'New Subtitle', "Would you like to " .
>       "insert the new subtitle\n" .

Could you please tell how you inserted the last line.  Here, typing RET
at the end of the line before as well as hitting TAB on the last line do
the right thing.

> Next, is how I believe would be a proper way to indent the same code:

It does so here.

> (Somehow the exact spacing differ here, but I think you can see the
> difference in general.)
> Basically after I enter "{... SUB => sub {}}," the indentation screws
> up. I hope this makes sense.

Please tell us which Emacs version and which perl mode (cperl-mode or
perl-mode) you use.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]