summaryrefslogtreecommitdiff
path: root/lisp/ps-print.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2009-07-21 04:49:48 +0000
committerGlenn Morris <rgm@gnu.org>2009-07-21 04:49:48 +0000
commit02df3f4de84e9db382d8c902bc4526aa8bcf8013 (patch)
tree10d4ad6fbf306c7d56cfc7ba1d72d091e96b5964 /lisp/ps-print.el
parentfdd8417e493bb7804c61d08914f4c3ddad347c6e (diff)
downloademacs-02df3f4de84e9db382d8c902bc4526aa8bcf8013.tar.gz
(ps-jitify, ps-lazify): Remove aliases only used to
silence compiler. Instead... (jit-lock-fontify-now, lazy-lock-fontify-region): ...Declare. (ps-print-ensure-fontified): Update for above function name changes.
Diffstat (limited to 'lisp/ps-print.el')
-rw-r--r--lisp/ps-print.el10
1 files changed, 4 insertions, 6 deletions
diff --git a/lisp/ps-print.el b/lisp/ps-print.el
index 01d969d6781..16be4439a59 100644
--- a/lisp/ps-print.el
+++ b/lisp/ps-print.el
@@ -6410,17 +6410,15 @@ If FACE is not a valid face name, use default face."
(ps-face-background-name face))))
-;; to avoid compilation gripes
-(defalias 'ps-jitify 'jit-lock-fontify-now)
-(defalias 'ps-lazify 'lazy-lock-fontify-region)
-
+(declare-function jit-lock-fontify-now "jit-lock" (&optional start end))
+(declare-function lazy-lock-fontify-region "lazy-lock" (beg end))
;; to avoid compilation gripes
(defun ps-print-ensure-fontified (start end)
(cond ((and (boundp 'jit-lock-mode) (symbol-value 'jit-lock-mode))
- (ps-jitify start end))
+ (jit-lock-fontify-now start end))
((and (boundp 'lazy-lock-mode) (symbol-value 'lazy-lock-mode))
- (ps-lazify start end))))
+ (lazy-lock-fontify-region start end))))
(defun ps-generate-postscript-with-faces (from to)