GNU bug report logs - #13614
[24.3.50] `font-lock-syntactic-keywords' is used in cperl-mode

Previous Next

Package: emacs;

Reported by: Xue Fuqiao <xfq.free <at> gmail.com>

Date: Sun, 3 Feb 2013 02:52:01 UTC

Severity: normal

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 13614 in the body.
You can then email your comments to 13614 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#13614; Package emacs. (Sun, 03 Feb 2013 02:52:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Xue Fuqiao <xfq.free <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 03 Feb 2013 02:52:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Xue Fuqiao <xfq.free <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: [24.3.50] `font-lock-syntactic-keywords' is used in cperl-mode
Date: Sun, 3 Feb 2013 10:50:11 +0800
In L1869 of lisp/progmodes/cperl-mode.el in trunk r111664:

	(setq font-lock-syntactic-keywords
		...

But `font-lock-syntactic-keywords' is an obsolete variable, `syntax-propertize-function' is recommended.

-- 
Best regards, Xue Fuqiao.
http://www.emacswiki.org/emacs/XueFuqiao




bug closed, send any further explanations to 13614 <at> debbugs.gnu.org and Xue Fuqiao <xfq.free <at> gmail.com> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 03 Feb 2013 03:16:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13614; Package emacs. (Sun, 03 Feb 2013 15:49:01 GMT) Full text and rfc822 format available.

Message #10 received at 13614 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Xue Fuqiao <xfq.free <at> gmail.com>
Cc: 13614 <at> debbugs.gnu.org
Subject: Re: bug#13614: [24.3.50] `font-lock-syntactic-keywords' is used in
	cperl-mode
Date: Sun, 03 Feb 2013 10:47:47 -0500
> In L1869 of lisp/progmodes/cperl-mode.el in trunk r111664:
> 	(setq font-lock-syntactic-keywords
> 		...

> But `font-lock-syntactic-keywords' is an obsolete variable,
>  `syntax-propertize-function' is recommended.

I installed the patch below (into trunk) to silence it.


        Stefan


=== modified file 'lisp/ChangeLog'
--- lisp/ChangeLog	2013-02-03 15:28:47 +0000
+++ lisp/ChangeLog	2013-02-03 15:46:44 +0000
@@ -1,5 +1,8 @@
 2013-02-03  Stefan Monnier  <monnier <at> iro.umontreal.ca>
 
+	* progmodes/cperl-mode.el (cperl-mode): Avoid byte-compile warning
+	(bug#13614).
+
 	* subr.el (internal--called-interactively-p--get-frame): Avoid filling
 	current-load-list (bug#13366).
 

=== modified file 'lisp/progmodes/cperl-mode.el'
--- lisp/progmodes/cperl-mode.el	2013-01-02 16:13:04 +0000
+++ lisp/progmodes/cperl-mode.el	2013-02-03 15:46:11 +0000
@@ -1839,7 +1839,7 @@
   (make-local-variable 'cperl-syntax-state)
   (setq cperl-syntax-state nil)		; reset syntaxification cache
   (if cperl-use-syntax-table-text-property
-      (if (boundp 'syntax-propertize-function)
+      (if (eval-when-compile (fboundp 'syntax-propertize-rules))
           (progn
             ;; Reset syntaxification cache.
             (set (make-local-variable 'cperl-syntax-done-to) nil)





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 04 Mar 2013 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 115 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.