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.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Xue Fuqiao <xfq.free <at> gmail.com>
Cc: 13614 <at> debbugs.gnu.org
Subject: 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)





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.