[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 187e7ae 2/5: Remove some Emacs 19 compat code from cperl-mode
From: |
Stefan Kangas |
Subject: |
master 187e7ae 2/5: Remove some Emacs 19 compat code from cperl-mode |
Date: |
Wed, 2 Dec 2020 07:12:10 -0500 (EST) |
branch: master
commit 187e7ae200f37a6c66f092cf52cd3b0916eb00f5
Author: Stefan Kangas <stefan@marxist.se>
Commit: Stefan Kangas <stefan@marxist.se>
Remove some Emacs 19 compat code from cperl-mode
* lisp/progmodes/cperl-mode.el
(cperl-put-do-not-fontify): Remove Emacs 19 compat code.
(cperl-do-not-fontify): Make obsolete.
---
lisp/progmodes/cperl-mode.el | 13 +++++--------
1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el
index dd36c68..53f2153 100644
--- a/lisp/progmodes/cperl-mode.el
+++ b/lisp/progmodes/cperl-mode.el
@@ -931,19 +931,12 @@ In regular expressions (including character classes):
(defun cperl-putback-char (c) ; Emacs 19
(push c unread-command-events)) ; Avoid undefined warning
-(defvar cperl-do-not-fontify
- ;; FIXME: This is not doing what it claims!
- (if (string< emacs-version "19.30")
- 'fontified
- 'lazy-lock)
- "Text property which inhibits refontification.")
-
(defsubst cperl-put-do-not-fontify (from to &optional post)
;; If POST, do not do it with postponed fontification
(if (and post cperl-syntaxify-by-font-lock)
nil
(put-text-property (max (point-min) (1- from))
- to cperl-do-not-fontify t)))
+ to 'fontified t)))
(defcustom cperl-mode-hook nil
"Hook run by CPerl mode."
@@ -8531,6 +8524,10 @@ do extra unwind via `cperl-unwind-to-safe'."
(substring v (match-beginning 1) (match-end 1)))
"Version of IZ-supported CPerl package this file is based on.")
+(defvar cperl-do-not-fontify 'fontified
+ "Text property which inhibits refontification.")
+(make-obsolete-variable 'cperl-do-not-fontify nil "28.1")
+
(provide 'cperl-mode)
;;; cperl-mode.el ends here