unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#13614: [24.3.50] `font-lock-syntactic-keywords' is used in cperl-mode
@ 2013-02-03  2:50 Xue Fuqiao
  2013-02-03 15:47 ` Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: Xue Fuqiao @ 2013-02-03  2:50 UTC (permalink / raw)
  To: 13614

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





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#13614: [24.3.50] `font-lock-syntactic-keywords' is used in cperl-mode
  2013-02-03  2:50 bug#13614: [24.3.50] `font-lock-syntactic-keywords' is used in cperl-mode Xue Fuqiao
@ 2013-02-03 15:47 ` Stefan Monnier
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2013-02-03 15:47 UTC (permalink / raw)
  To: Xue Fuqiao; +Cc: 13614

> 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@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)






^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-02-03 15:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-03  2:50 bug#13614: [24.3.50] `font-lock-syntactic-keywords' is used in cperl-mode Xue Fuqiao
2013-02-03 15:47 ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).