aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1998-05-08 22:26:43 +0000
committerRichard M. Stallman1998-05-08 22:26:43 +0000
commit7ae35a2f514cb66111a0d24af2306ec78bbc6c9c (patch)
treec176e2cac946af6c0bbebc22c8a1ca44da972359
parent0b28758d4b1e95b952d79ac788c833440ff558ee (diff)
downloademacs-7ae35a2f514cb66111a0d24af2306ec78bbc6c9c.tar.gz
emacs-7ae35a2f514cb66111a0d24af2306ec78bbc6c9c.zip
(ps-alist-position): Renamed from ps-position.
Look for ITEM as the car of an element. (ps-font-number): Use ps-alist-position. (ps-font-alist): Renamed from ps-font-list.
-rw-r--r--lisp/ps-print.el14
1 files changed, 7 insertions, 7 deletions
diff --git a/lisp/ps-print.el b/lisp/ps-print.el
index c4210e86ef0..5203cb360fb 100644
--- a/lisp/ps-print.el
+++ b/lisp/ps-print.el
@@ -2666,22 +2666,22 @@ and to indicate in the header that the printout is of a partial file.")
2666;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 2666;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2667;; Internal functions 2667;; Internal functions
2668 2668
2669(defsubst ps-font-list (font-sym) 2669(defsubst ps-font-alist (font-sym)
2670 (get font-sym 'fonts)) 2670 (get font-sym 'fonts))
2671 2671
2672(defun ps-font (font-sym font-type) 2672(defun ps-font (font-sym font-type)
2673 "Font family name for text of `font-type', when generating PostScript." 2673 "Font family name for text of `font-type', when generating PostScript."
2674 (let* ((font-list (ps-font-list font-sym)) 2674 (let* ((font-list (ps-font-alist font-sym))
2675 (normal-font (cdr (assq 'normal font-list)))) 2675 (normal-font (cdr (assq 'normal font-list))))
2676 (while (and font-list (not (eq font-type (car (car font-list))))) 2676 (while (and font-list (not (eq font-type (car (car font-list)))))
2677 (setq font-list (cdr font-list))) 2677 (setq font-list (cdr font-list)))
2678 (or (cdr (car font-list)) normal-font))) 2678 (or (cdr (car font-list)) normal-font)))
2679 2679
2680(defun ps-fonts (font-sym) 2680(defun ps-fonts (font-sym)
2681 (mapcar 'cdr (ps-font-list font-sym))) 2681 (mapcar 'cdr (ps-font-alist font-sym)))
2682 2682
2683(defun ps-font-number (font-sym font-type) 2683(defun ps-font-number (font-sym font-type)
2684 (or (ps-position font-type (ps-font-list font-sym)) 2684 (or (ps-alist-position font-type (ps-font-alist font-sym))
2685 0)) 2685 0))
2686 2686
2687(defsubst ps-line-height (font-sym) 2687(defsubst ps-line-height (font-sym)
@@ -3187,10 +3187,10 @@ page-height == bm + print-height + tm - ho - hh
3187;; Find the first occurrence of ITEM in LIST. 3187;; Find the first occurrence of ITEM in LIST.
3188;; Return the index of the matching item, or nil if not found. 3188;; Return the index of the matching item, or nil if not found.
3189;; Elements are compared with `eq'. 3189;; Elements are compared with `eq'.
3190(defun ps-position (item list) 3190(defun ps-alist-position (item list)
3191 (let ((tail list) (index 0) found) 3191 (let ((tail list) (index 0) found)
3192 (while tail 3192 (while tail
3193 (if (setq found (eq (car tail) item)) 3193 (if (setq found (eq (car (car tail)) item))
3194 (setq tail nil) 3194 (setq tail nil)
3195 (setq index (1+ index) 3195 (setq index (1+ index)
3196 tail (cdr tail)))) 3196 tail (cdr tail))))
@@ -3290,7 +3290,7 @@ page-height == bm + print-height + tm - ho - hh
3290 (ps-output ps-print-prologue-2) 3290 (ps-output ps-print-prologue-2)
3291 3291
3292 ;; Text fonts 3292 ;; Text fonts
3293 (let ((font (ps-font-list 'ps-font-for-text)) 3293 (let ((font (ps-font-alist 'ps-font-for-text))
3294 (i 0)) 3294 (i 0))
3295 (while font 3295 (while font
3296 (ps-output (format "/f%d %s /%s DefFont\n" 3296 (ps-output (format "/f%d %s /%s DefFont\n"