aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2000-10-26 14:15:15 +0000
committerGerd Moellmann2000-10-26 14:15:15 +0000
commit47b54c71f809463c91c19145985677d8f393e500 (patch)
tree68de613c40c830052dc8944f1f5dafc8fdace958
parent6bc92b2e8b81dc22d08e804834703f2bd2515d89 (diff)
downloademacs-47b54c71f809463c91c19145985677d8f393e500.tar.gz
emacs-47b54c71f809463c91c19145985677d8f393e500.zip
Avoid compilation gripes.
(ps-print-version): New version number (6.2.1).
-rw-r--r--lisp/ps-print.el64
1 files changed, 33 insertions, 31 deletions
diff --git a/lisp/ps-print.el b/lisp/ps-print.el
index b6c3275c350..57353f9890c 100644
--- a/lisp/ps-print.el
+++ b/lisp/ps-print.el
@@ -9,12 +9,12 @@
9;; Maintainer: Kenichi Handa <handa@etl.go.jp> (multi-byte characters) 9;; Maintainer: Kenichi Handa <handa@etl.go.jp> (multi-byte characters)
10;; Maintainer: Vinicius Jose Latorre <vinicius@cpqd.com.br> 10;; Maintainer: Vinicius Jose Latorre <vinicius@cpqd.com.br>
11;; Keywords: wp, print, PostScript 11;; Keywords: wp, print, PostScript
12;; Time-stamp: <2000/10/18 18:31:37 vinicius> 12;; Time-stamp: <2000/10/19 11:54:10 vinicius>
13;; Version: 6.2 13;; Version: 6.2.1
14;; X-URL: http://www.cpqd.com.br/~vinicius/emacs/ 14;; X-URL: http://www.cpqd.com.br/~vinicius/emacs/
15 15
16(defconst ps-print-version "6.2" 16(defconst ps-print-version "6.2.1"
17 "ps-print.el, v 6.2 <2000/10/18 vinicius> 17 "ps-print.el, v 6.2.1 <2000/10/19 vinicius>
18 18
19Vinicius's last change version -- this file may have been edited as part of 19Vinicius's last change version -- this file may have been edited as part of
20Emacs without changes to the version number. When reporting bugs, please also 20Emacs without changes to the version number. When reporting bugs, please also
@@ -2923,6 +2923,31 @@ The table depends on the current ps-print setup."
2923 t) 2923 t)
2924 )) 2924 ))
2925 2925
2926 (defun ps-mapper (extent list)
2927 (nconc list
2928 (list (list (ps-x-extent-start-position extent) 'push extent)
2929 (list (ps-x-extent-end-position extent) 'pull extent)))
2930 nil)
2931
2932 (defun ps-extent-sorter (a b)
2933 (< (ps-x-extent-priority a) (ps-x-extent-priority b)))
2934
2935 (defun ps-xemacs-face-kind-p (face kind kind-regex)
2936 (let* ((frame-font (or (ps-x-face-font-instance face)
2937 (ps-x-face-font-instance 'default)))
2938 (kind-cons
2939 (and frame-font
2940 (assq kind
2941 (ps-x-font-instance-properties frame-font))))
2942 (kind-spec (cdr-safe kind-cons))
2943 (case-fold-search t))
2944 (and kind-spec (string-match kind-regex kind-spec))))
2945
2946 (defun ps-xemacs-color-name (color)
2947 (if (ps-x-color-specifier-p color)
2948 (ps-x-color-name color)
2949 color))
2950
2926 (cond ((eq ps-print-emacs-type 'emacs) ; emacs 2951 (cond ((eq ps-print-emacs-type 'emacs) ; emacs
2927 2952
2928 (defun ps-color-values (x-color) 2953 (defun ps-color-values (x-color)
@@ -2948,31 +2973,6 @@ The table depends on the current ps-print setup."
2948 (or (ps-x-find-coding-system 'raw-text-unix) 2973 (or (ps-x-find-coding-system 'raw-text-unix)
2949 (ps-x-copy-coding-system 'no-conversion-unix 'raw-text-unix)) 2974 (ps-x-copy-coding-system 'no-conversion-unix 'raw-text-unix))
2950 2975
2951 (defun ps-mapper (extent list)
2952 (nconc list
2953 (list (list (ps-x-extent-start-position extent) 'push extent)
2954 (list (ps-x-extent-end-position extent) 'pull extent)))
2955 nil)
2956
2957 (defun ps-extent-sorter (a b)
2958 (< (ps-x-extent-priority a) (ps-x-extent-priority b)))
2959
2960 (defun ps-xemacs-face-kind-p (face kind kind-regex)
2961 (let* ((frame-font (or (ps-x-face-font-instance face)
2962 (ps-x-face-font-instance 'default)))
2963 (kind-cons
2964 (and frame-font
2965 (assq kind
2966 (ps-x-font-instance-properties frame-font))))
2967 (kind-spec (cdr-safe kind-cons))
2968 (case-fold-search t))
2969 (and kind-spec (string-match kind-regex kind-spec))))
2970
2971 (defun ps-xemacs-color-name (color)
2972 (if (ps-x-color-specifier-p color)
2973 (ps-x-color-name color)
2974 color))
2975
2976 (defun ps-color-values (x-color) 2976 (defun ps-color-values (x-color)
2977 (let ((color (ps-xemacs-color-name x-color))) 2977 (let ((color (ps-xemacs-color-name x-color)))
2978 (cond 2978 (cond
@@ -3004,6 +3004,8 @@ The table depends on the current ps-print setup."
3004 ))) 3004 )))
3005 3005
3006 3006
3007(defvar ps-print-color-scale nil)
3008
3007(defun ps-color-scale (color) 3009(defun ps-color-scale (color)
3008 ;; Scale 16-bit X-COLOR-VALUE to PostScript color value in [0, 1] interval. 3010 ;; Scale 16-bit X-COLOR-VALUE to PostScript color value in [0, 1] interval.
3009 (mapcar #'(lambda (value) (/ value ps-print-color-scale)) 3011 (mapcar #'(lambda (value) (/ value ps-print-color-scale))
@@ -3109,8 +3111,6 @@ This is in units of points (1/72 inch).")
3109(defvar ps-height-remaining nil) 3111(defvar ps-height-remaining nil)
3110(defvar ps-width-remaining nil) 3112(defvar ps-width-remaining nil)
3111 3113
3112(defvar ps-print-color-scale nil)
3113
3114(defvar ps-font-size-internal nil) 3114(defvar ps-font-size-internal nil)
3115(defvar ps-header-font-size-internal nil) 3115(defvar ps-header-font-size-internal nil)
3116(defvar ps-header-title-font-size-internal nil) 3116(defvar ps-header-title-font-size-internal nil)
@@ -5216,6 +5216,8 @@ If FACE is not a valid face name, it is used default face."
5216 5216
5217;; to avoid compilation gripes 5217;; to avoid compilation gripes
5218(eval-and-compile 5218(eval-and-compile
5219 (require 'lazy-lock)
5220
5219 (defun ps-print-ensure-fontified (start end) 5221 (defun ps-print-ensure-fontified (start end)
5220 (and (boundp 'lazy-lock-mode) (symbol-value 'lazy-lock-mode) 5222 (and (boundp 'lazy-lock-mode) (symbol-value 'lazy-lock-mode)
5221 (lazy-lock-fontify-region start end)))) 5223 (lazy-lock-fontify-region start end))))