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

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

Re: perl file extension in emacs


From: Rainer Weikusat
Subject: Re: perl file extension in emacs
Date: Wed, 28 Mar 2012 19:18:46 -0000
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

Xah Lee <xahlee@gmail.com> writes:
> emacs's 'auto-mode-alist has this value
> ("\\.\\([pP]\\([Llm]\\|erl\\|od\\)\\|al\\)\\'" . perl-mode)
>
> the regex there seems a bit wild. If i didn't get it wrong, then its
> like this
>
> . ([pP] ( [Llm] | erl | od ) | al )
>
> so it covers:
>
> .pal
> .pl
> .perl
> .pod
> .pm
>
> plus SOME case variations. e.g. {.pL , .PL}.
>
> Seems am wrong about “.pal” there because opening a file ending in
> “.pal” doesn't work. But i don't get it.

You are misreading the outer |: The extension is actually .al and
(AFAIK) files with this extension are generated by AutoSplit and
supposed to be used via AutoLoader (both are 'standard' Perl modules).

> is it necessary to include the “.pod”?

Actually, it seems to be wrong: The emacs version I'm using (22.2.1)
has a POD mode which does some 'fancy rendering' for .pod files (and
presumably, other stuff as well).


reply via email to

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