Subject: Re: bug#13614: [24.3.50] `font-lock-syntactic-keywords' is used in cperl-mode

From: Stefan Monnier <[email-masked]>
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  <[email-masked]>
 
+	* 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)