help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: [cperl-mode] cperl-indent-for-comment


From: Ilya Zakharevich
Subject: Re: [cperl-mode] cperl-indent-for-comment
Date: Thu, 6 May 2010 20:01:23 +0000 (UTC)
User-agent: slrn/0.9.8.1pl1 (Linux)

On 2010-05-05, LanX <lanx.perl@googlemail.com> wrote:
> 1) I wanna make # more DWIM and automatically doing an indent-for-
> comment when at the end of the line. I thought about
>   a) checking if the preceding character was a ";" or a paren.

Why not do it more agressively, and just avoid it after $ ?

> and
>   b) checking with describe-text-property that I'm not within a string
> or regex.

Keep in mind that one needs to force update of syntaxification before
checking text-properties.

        (cperl-update-syntaxification (point) (point))

> 2) cperl-indent-for-comment produces weird results when started within
> a Perl-string (M-;), it indents but repeated calls  produce a multiple
> concatenated "# " at the end.

Not in my version.

Yours,
Ilya


reply via email to

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