From: Stefan Kangas Date: Wed, 2 Dec 2020 11:55:22 +0000 (+0100) Subject: Remove some Emacs 19 compat code from cperl-mode X-Git-Tag: emacs-28.0.90~4964 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=187e7ae200f37a6c66f092cf52cd3b0916eb00f5;p=emacs.git 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. --- diff --git a/lisp/progmodes/cperl-mode.el b/lisp/progmodes/cperl-mode.el index dd36c68c872..53f21530efb 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