unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* [cperl-mode] fontification problem with PODs
@ 2009-10-21 13:36 LanX
  2009-10-24  6:12 ` Ilya Zakharevich
  2009-12-07  0:12 ` Joseph Brenner
  0 siblings, 2 replies; 14+ messages in thread
From: LanX @ 2009-10-21 13:36 UTC (permalink / raw)
  To: help-gnu-emacs

Hi

I experienced a problem with the fontification of POD's.

In the following example the second line is not classified as pod but
the keyword "for" is considered part of a loop statement.

--------------------------
lanx@nc10-ubuntu:~/tmp$ cat perlpod.pm
for (1..9) {print}
=for comment

This B<document> is in Pod format.  To read this, use a Pod formatter,
like "perldoc perlpod".

=cut
---------------------------

which might be OK since there is an empty line missing between POD and
code.

So adding a newline at the second line should solve the problem, but
doesn't do so!!!


Strangely this problem is NOT present when calling emacs with -Q

---------------------------
lanx@nc10-ubuntu:~/tmp$ emacs -Q perlpod.pm -f cperl-mode
---------------------------

So adding the newline solves the problem!
And calling "M-x describe-text-properties" shows that the POD-text is
classified as such.

This emacs is bundled with cperl-mode.5.23.

Now I tried to figure out which cperl-mode version is causing the
problem, since I had 6.2 loaded in my configs.

---------------------------
lanx@nc10-ubuntu:~/tmp$ emacs -Q -l cperl-mode.el perlpod.pm -f cperl-
mode
lanx@nc10-ubuntu:~/tmp$ ll cperl-mode.el
lrwxrwxrwx 1 lanx lanx 18 2009-10-21 05:51 cperl-mode.el -> cperl-
mode.el.5.24
lanx@nc10-ubuntu:~/tmp$ ll cperl-mode.el*
lrwxrwxrwx 1 lanx lanx     18 2009-10-21 05:51 cperl-mode.el -> cperl-
mode.el.5.24
-r-------- 1 lanx lanx 399064 2009-10-21 05:48 cperl-mode.el.5.22
-r-------- 1 lanx lanx 395839 2009-10-21 05:32 cperl-mode.el.5.24
-r-------- 1 lanx lanx 402932 2009-10-21 05:32 cperl-mode.el.6.2
---------------------------

But it doesn't matter which version I'm loading the problem remains. I
also tried emacs23 instead of emacs22, without success.

It seems that loading another cperl-mode version causes conflicts with
the bundled version!

So effectively one has to stick with the bundled version ... :(

cheers
  Rolf


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

end of thread, other threads:[~2010-05-08 21:50 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-21 13:36 [cperl-mode] fontification problem with PODs LanX
2009-10-24  6:12 ` Ilya Zakharevich
2009-10-31  4:15   ` Will Willis
2009-12-07  0:12 ` Joseph Brenner
2009-12-09 12:49   ` LanX
2010-05-02  4:32     ` Ilya Zakharevich
2010-05-02 14:07       ` Alan Mackenzie
2010-05-04  3:33         ` Ilya Zakharevich
2010-05-04 10:39           ` Alan Mackenzie
2010-05-04 14:55             ` LanX
2010-05-06 20:08             ` Ilya Zakharevich
2010-05-07  1:31               ` Juanma Barranquero
     [not found]               ` <mailman.29.1273195927.9285.help-gnu-emacs@gnu.org>
2010-05-07  2:55                 ` Stefan Monnier
2010-05-08 21:50                   ` Juanma Barranquero

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).