Click here to get back home

cperl-mode.el (was: Re: FAQ 3.12 Where can I get perl-mode for emacs?)

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
cperl-mode.el (was: Re: FAQ 3.12 Where can I get perl-mode for emacs?) Ben Bullock 04-29-2008
    ---> Re: cperl-mode.el Ilya Zakharevic...05-01-2008
        `--> Re: cperl-mode.el Ilya Zakharevic...05-01-2008
Posted by Ben Bullock on April 29, 2008, 8:23 pm
Please log in for more thread options
>
> In the Perl source directory, you'll find a directory called "emacs",
> which contains a cperl-mode that color-codes keywords, provides
> context-sensitive help, and other nifty things.

This advice is outdated, because 'cperl-mode.el' is now part of the
Emacs distribution, so it's not necessary to look in the Perl source
directory.

> Working code is greatly appreciated.

I add the following line to Emacs to make cperl the default:

(defalias 'perl-mode 'cperl-mode)

I also have the following defaults:

(setq cperl-indent-level 4
cperl-close-paren-offset -4
cperl-brace-offset -4
cperl-label-offset 0
cperl-continued-statement-offset 4
cperl-tab-always-indent t)

Posted by brian d foy on April 30, 2008, 1:49 am
Please log in for more thread options
[[ This message was both posted and mailed: see
the "To," "Cc," and "Newsgroups" headers for details. ]]


> >
> > In the Perl source directory, you'll find a directory called "emacs",
> > which contains a cperl-mode that color-codes keywords, provides
> > context-sensitive help, and other nifty things.
>
> This advice is outdated, because 'cperl-mode.el' is now part of the
> Emacs distribution, so it's not necessary to look in the Perl source
> directory.

Since I don't use emacs, perhaps you could rewrite the entire answer
for me :)

Posted by Ilya Zakharevich on April 30, 2008, 4:49 pm
Please log in for more thread options
[A complimentary Cc of this posting was sent to
Ben Bullock
> >
> > In the Perl source directory, you'll find a directory called "emacs",
> > which contains a cperl-mode that color-codes keywords, provides
> > context-sensitive help, and other nifty things.
>
> This advice is outdated, because 'cperl-mode.el' is now part of the
> Emacs distribution, so it's not necessary to look in the Perl source
> directory.

??? Emacs distribution contains a broken, unsupported version of
cperl-mode.el. The source directory contains a working (but
somewhat outdated) supported version.

Enough said,
Ilya

Posted by Ben Bullock on April 30, 2008, 8:30 pm
Please log in for more thread options

>> >
>> > In the Perl source directory, you'll find a directory called "emacs",
>> > which contains a cperl-mode that color-codes keywords, provides
>> > context-sensitive help, and other nifty things.
>>
>> This advice is outdated, because 'cperl-mode.el' is now part of the
>> Emacs distribution, so it's not necessary to look in the Perl source
>> directory.
>
> ??? Emacs distribution contains a broken, unsupported version of
> cperl-mode.el. The source directory contains a working (but
> somewhat outdated) supported version.

The current Emacs distribution (22.1) contains a version with a
copyright of 2007, which works very well - it isn't broken. I remember
that cperl mode was broken in the previous Emacs version, and the
Emacs distribution contained an old version which had to be
replaced. The 5.10.0 Perl sources contain a version of cperl-mode.el
with a copyright of 2006. The version numbers tell a different story,
with the one in the Emacs source having a version number of 5.22 and
the one in the Perl source having a version number of 5.23. A diff
produces a large number of results which indicate that a lot of
comments have been removed from the Emacs source tree version of
cperl-mode.el, and the results of wc (count the number of lines /
words / bytes command on Unix) give similar results:

$ wc *cperl*
2535 14198 105876 cperl-mode-diff
9041 36268 331296 emacs-source-cperl-mode.el
10441 44057 393631 perlsource-cperl-mode.el
22017 94523 830803 total

What it looks like is a fork. But the above comment about
cperl-mode.el in the Emacs tree being out of date and broken is
itself now out of date.

> Enough said,

Maybe not.


Posted by Ilya Zakharevich on May 1, 2008, 1:23 am
Please log in for more thread options
[A complimentary Cc of this posting was sent to
Ben Bullock
> > ??? Emacs distribution contains a broken, unsupported version of
> > cperl-mode.el. The source directory contains a working (but
> > somewhat outdated) supported version.
>
> The current Emacs distribution (22.1) contains a version with a
> copyright of 2007

From when updating a copyright message counts as a maintainance?

>, which works very well - it isn't broken.

Says who? Do you monitor for bug reports, and how they are "fixed"?

> What it looks like is a fork. But the above comment about
> cperl-mode.el in the Emacs tree being out of date and broken is
> itself now out of date.

I have no idea what you want to say here...

Yours,
Ilya

Similar ThreadsPosted
Trouble running Emacs-EPL (to run perl in emacs). January 24, 2007, 7:12 am
emacs AAAAAAAAAAAAAHHH!!! February 19, 2005, 6:16 am
using perldb in emacs August 8, 2005, 2:55 am
Perl + Emacs July 9, 2006, 8:16 am
FAQ 3.12 Where can I get perl-mode for emacs? February 21, 2005, 12:03 am
FAQ 3.12 Where can I get perl-mode for emacs? March 30, 2005, 12:03 am
FAQ 3.12 Where can I get perl-mode for emacs? June 14, 2005, 5:03 pm
FAQ 3.12 Where can I get perl-mode for emacs? August 22, 2005, 10:03 pm
FAQ 3.12 Where can I get perl-mode for emacs? April 3, 2006, 9:03 pm
FAQ 3.12 Where can I get perl-mode for emacs? May 16, 2006, 3:03 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap