From: LanX <lanx.perl@googlemail.com>
To: help-gnu-emacs@gnu.org
Subject: [cperl-mode] fontification problem with PODs
Date: Wed, 21 Oct 2009 06:36:39 -0700 (PDT) [thread overview]
Message-ID: <91a903ec-dfbe-4f8c-b607-4253d832e0d1@m20g2000vbp.googlegroups.com> (raw)
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
next reply other threads:[~2009-10-21 13:36 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-21 13:36 LanX [this message]
2009-10-24 6:12 ` [cperl-mode] fontification problem with PODs 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=91a903ec-dfbe-4f8c-b607-4253d832e0d1@m20g2000vbp.googlegroups.com \
--to=lanx.perl@googlemail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.