changeset 61892:6acaa6301fd7

(cperl-mode): Don't precompile the font-lock-fontify-syntactic-keywords.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Wed, 27 Apr 2005 19:46:13 +0000
parents dd02c82eebe7
children 51ca342485b5
files lisp/progmodes/cperl-mode.el
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/cperl-mode.el	Wed Apr 27 19:43:50 2005 +0000
+++ b/lisp/progmodes/cperl-mode.el	Wed Apr 27 19:46:13 2005 +0000
@@ -1514,14 +1514,14 @@
 	(set 'font-lock-unfontify-region-function ; not present with old Emacs
 	      'cperl-font-lock-unfontify-region-function)
 	(make-local-variable 'cperl-syntax-done-to)
-	;; Another bug: unless font-lock-syntactic-keywords, font-lock
-	;;  ignores syntax-table text-property.  (t) is a hack
-	;;  to make font-lock think that font-lock-syntactic-keywords
-	;;  are defined
 	(make-local-variable 'font-lock-syntactic-keywords)
 	(setq font-lock-syntactic-keywords
 	      (if cperl-syntaxify-by-font-lock
-		  '(t (cperl-fontify-syntaxically))
+		  '((cperl-fontify-syntaxically))
+                ;; unless font-lock-syntactic-keywords, font-lock (pre-22.1)
+                ;;  used to ignore syntax-table text-properties.  (t) is a hack
+                ;;  to make font-lock think that font-lock-syntactic-keywords
+                ;;  are defined.
 		'(t)))))
   (make-local-variable 'cperl-old-style)
   (if (boundp 'normal-auto-fill-function) ; 19.33 and later