aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2022-07-14 19:08:16 +0200
committerStefan Kangas2022-07-14 19:08:16 +0200
commita3cebcf3f16e36b621a2328b75f3b59ea68ca1e9 (patch)
tree843a9e3777d4ab28ae23f3d9006a7aaa313103fe
parent564f6c171eeaef4dea4b4fc2524c0b082dfbb531 (diff)
downloademacs-a3cebcf3f16e36b621a2328b75f3b59ea68ca1e9.tar.gz
emacs-a3cebcf3f16e36b621a2328b75f3b59ea68ca1e9.zip
Make ps-print-ensure-fontified obsolete
* lisp/ps-print.el (ps-print-ensure-fontified): Redefine as obsolete function alias for font-lock-ensure. Update callers.
-rw-r--r--lisp/ps-print.el15
1 files changed, 3 insertions, 12 deletions
diff --git a/lisp/ps-print.el b/lisp/ps-print.el
index 069d116907e..885aa3cc7c7 100644
--- a/lisp/ps-print.el
+++ b/lisp/ps-print.el
@@ -6325,17 +6325,6 @@ If FACE is not a valid face name, use default face."
6325 (ps-face-background-name face)))) 6325 (ps-face-background-name face))))
6326 6326
6327 6327
6328(declare-function jit-lock-fontify-now "jit-lock" (&optional start end))
6329(declare-function lazy-lock-fontify-region "lazy-lock" (beg end))
6330
6331;; to avoid compilation gripes
6332(defun ps-print-ensure-fontified (start end)
6333 (cond ((and (boundp 'jit-lock-mode) (symbol-value 'jit-lock-mode))
6334 (jit-lock-fontify-now start end))
6335 ((and (boundp 'lazy-lock-mode) (symbol-value 'lazy-lock-mode))
6336 (lazy-lock-fontify-region start end))))
6337
6338
6339(defun ps-generate-postscript-with-faces (from to) 6328(defun ps-generate-postscript-with-faces (from to)
6340 ;; Some initialization... 6329 ;; Some initialization...
6341 (setq ps-current-effect 0) 6330 (setq ps-current-effect 0)
@@ -6355,7 +6344,7 @@ If FACE is not a valid face name, use default face."
6355 ;; Generate some PostScript. 6344 ;; Generate some PostScript.
6356 (save-restriction 6345 (save-restriction
6357 (narrow-to-region from to) 6346 (narrow-to-region from to)
6358 (ps-print-ensure-fontified from to) 6347 (font-lock-ensure from to)
6359 (deactivate-mark) ;bug#16866. 6348 (deactivate-mark) ;bug#16866.
6360 (ps-generate-postscript-with-faces1 from to))) 6349 (ps-generate-postscript-with-faces1 from to)))
6361 6350
@@ -6512,6 +6501,8 @@ If FACE is not a valid face name, use default face."
6512(unless noninteractive 6501(unless noninteractive
6513 (add-hook 'kill-emacs-query-functions #'ps-kill-emacs-check)) 6502 (add-hook 'kill-emacs-query-functions #'ps-kill-emacs-check))
6514 6503
6504(define-obsolete-function-alias 'ps-print-ensure-fontified #'font-lock-ensure "29.1")
6505
6515(provide 'ps-print) 6506(provide 'ps-print)
6516 6507
6517;;; ps-print.el ends here 6508;;; ps-print.el ends here