From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: LanX Newsgroups: gmane.emacs.help Subject: [cperl-mode] fontification problem with PODs Date: Wed, 21 Oct 2009 06:36:39 -0700 (PDT) Organization: http://groups.google.com Message-ID: <91a903ec-dfbe-4f8c-b607-4253d832e0d1@m20g2000vbp.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1256136277 2095 80.91.229.12 (21 Oct 2009 14:44:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Oct 2009 14:44:37 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 21 16:44:27 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N0cQM-0004H7-Gh for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Oct 2009 16:44:26 +0200 Original-Received: from localhost ([127.0.0.1]:35560 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N0cQJ-0003Id-Mc for geh-help-gnu-emacs@m.gmane.org; Wed, 21 Oct 2009 10:44:23 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!m20g2000vbp.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 64 Original-NNTP-Posting-Host: 188.97.66.101 Original-X-Trace: posting.google.com 1256132199 10584 127.0.0.1 (21 Oct 2009 13:36:39 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 21 Oct 2009 13:36:39 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: m20g2000vbp.googlegroups.com; posting-host=188.97.66.101; posting-account=W9fpQwoAAADZYmkl-8sXk1VPxG3rq-Pd User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.0.14) Gecko/2009090216 Ubuntu/8.10 (intrepid) Firefox/3.0.14, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:174046 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:69128 Archived-At: 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 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