aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-08-23 06:51:42 +0000
committerRichard M. Stallman1997-08-23 06:51:42 +0000
commit535efc3878749d9e57956f333a24addec343f07b (patch)
tree1e9aec81f741ccda4ae113a2670f2ef6b8b0c810
parent79d00189f14ddff7ef7ff7af6ee121fd560a40f9 (diff)
downloademacs-535efc3878749d9e57956f333a24addec343f07b.tar.gz
emacs-535efc3878749d9e57956f333a24addec343f07b.zip
(ps-zebra-stripes): Renamed from ps-zebra-stripe.
(ps-zebra-stripe-height): Renamed from ps-number-of-zebra.
-rw-r--r--lisp/ps-print.el45
1 files changed, 20 insertions, 25 deletions
diff --git a/lisp/ps-print.el b/lisp/ps-print.el
index f176d9d07b6..ced3288882d 100644
--- a/lisp/ps-print.el
+++ b/lisp/ps-print.el
@@ -1,4 +1,4 @@
1;;; ps-print.el --- Jim's Pretty-Good PostScript Generator for Emacs 19. 1;;; ps-print.el --- Print text from the buffer as PostScript
2 2
3;; Copyright (C) 1993, 1994, 1995, 1996, 1997 Free Software Foundation, Inc. 3;; Copyright (C) 1993, 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
4 4
@@ -12,7 +12,7 @@
12(defconst ps-print-version "3.05" 12(defconst ps-print-version "3.05"
13 "ps-print.el, v 3.05 <97/08/09 vinicius> 13 "ps-print.el, v 3.05 <97/08/09 vinicius>
14 14
15Jack's last change version -- this file may have been edited as part of 15Vinicius's last change version -- this file may have been edited as part of
16Emacs without changes to the version number. When reporting bugs, 16Emacs without changes to the version number. When reporting bugs,
17please also report the version of Emacs, if any, that ps-print was 17please also report the version of Emacs, if any, that ps-print was
18distributed with. 18distributed with.
@@ -373,25 +373,28 @@ Please send all bug fixes and enhancements to
373;; Zebra Stripes 373;; Zebra Stripes
374;; ------------- 374;; -------------
375;; 375;;
376;; Zebra stripes is a kind of background effect, where the background looks 376;; Zebra stripes are a kind of background which you can request
377;; like: 377;; to appear "underneath" the text. They look like this:
378;; 378;;
379;; XXXXXXXXXXXXXXXXXXXXXXXX 379;; XXXXXXXXXXXXXXXXXXXXXXXX
380;; XXXXXXXXXXXXXXXXXXXXXXXX 380;; XXXXXXXXXXXXXXXXXXXXXXXX
381;; XXXXXXXXXXXXXXXXXXXXXXXX
382;;
381;; 383;;
382;; 384;;
383;; XXXXXXXXXXXXXXXXXXXXXXXX 385;; XXXXXXXXXXXXXXXXXXXXXXXX
384;; XXXXXXXXXXXXXXXXXXXXXXXX 386;; XXXXXXXXXXXXXXXXXXXXXXXX
387;; XXXXXXXXXXXXXXXXXXXXXXXX
385;; 388;;
386;; The X's are representing a rectangle area filled with a light gray color. 389;; The X's here represent a rectangle area filled with a light gray color.
387;; 390;; The height, in lines, of the gray area pis controlled by
391;; the variable `ps-zebra-stripe-height', which is 3 by default.
392;; The distance between stripes equals the height of a stripe.
393;;
388;; The variable `ps-zebra-stripe' determines if zebra stripe lines will be 394;; The variable `ps-zebra-stripe' determines if zebra stripe lines will be
389;; printed (non-nil value) or not (nil value). 395;; printed (non-nil value) or not (nil value).
390;; The default is not print zebra stripes (nil value). 396;; The default is not print zebra stripes (nil value).
391;; 397;;
392;; The variable `ps-number-of-zebra' indicates the number of lines on a
393;; zebra stripe. The default is 3.
394;;
395;; 398;;
396;; Font managing 399;; Font managing
397;; ------------- 400;; -------------
@@ -539,7 +542,7 @@ Please send all bug fixes and enhancements to
539;; overline - like underline, but the line is over the text. 542;; overline - like underline, but the line is over the text.
540;; shadow - text will have a shadow. 543;; shadow - text will have a shadow.
541;; box - text will be surrounded by a box. 544;; box - text will be surrounded by a box.
542;; outline - only the text border font will be printed. 545;; outline - only the contour of the characters will be printed.
543;; 546;;
544;; See the documentation for `ps-extend-face' and `ps-extend-face-list'. 547;; See the documentation for `ps-extend-face' and `ps-extend-face-list'.
545;; 548;;
@@ -548,14 +551,6 @@ Please send all bug fixes and enhancements to
548;; 551;;
549;; (ps-extend-face '(font-lock-keyword-face "RoyalBlue" nil bold)) 552;; (ps-extend-face '(font-lock-keyword-face "RoyalBlue" nil bold))
550;; 553;;
551;; If we wish to extend a list of faces, we could do:
552;;
553;; (ps-extend-face-list
554;; '((font-lock-function-name-face "Blue" nil bold)
555;; (font-lock-variable-name-face "Sienna" nil bold italic)
556;; (font-lock-keyword-face "RoyalBlue" nil underline))
557;; 'MERGE)
558;;
559;; Note: the only attributes that have effect on screen are: bold, italic and 554;; Note: the only attributes that have effect on screen are: bold, italic and
560;; underline. All other screen effect is ignored. 555;; underline. All other screen effect is ignored.
561;; 556;;
@@ -874,15 +869,15 @@ example `letter', `legal' or `a4'."
874 :type 'number 869 :type 'number
875 :group 'ps-print) 870 :group 'ps-print)
876 871
877(defcustom ps-zebra-stripe nil 872(defcustom ps-zebra-stripes nil
878 "*Non-nil means print zebra stripes. 873 "*Non-nil means print zebra stripes.
879See also documentation for ps-print-n-zebra." 874See also documentation for `ps-print-n-zebra'."
880 :type 'boolean 875 :type 'boolean
881 :group 'ps-print) 876 :group 'ps-print)
882 877
883(defcustom ps-number-of-zebra 3 878(defcustom ps-zebra-stripe-height 3
884 "*Number of zebra stripe lines. 879 "*Number of zebra stripe lines.
885See also documentation for ps-print-zebra." 880See also documentation for `ps-print-zebra'."
886 :type 'number 881 :type 'number
887 :group 'ps-print) 882 :group 'ps-print)
888 883
@@ -2283,7 +2278,7 @@ Each symbol correspond to one bit in a bit vector.")
2283(defun ps-extend-face-list (face-extension-list &optional merge-p) 2278(defun ps-extend-face-list (face-extension-list &optional merge-p)
2284 "Extend face in `ps-print-face-extension-alist'. 2279 "Extend face in `ps-print-face-extension-alist'.
2285 2280
2286If optional MERGE-p is non-nil, extensions in FACE-EXTENSION are merged with 2281If optional MERGE-P is non-nil, extensions in FACE-EXTENSION are merged with
2287face extension in `ps-print-face-extension-alist'; otherwise, overrides. 2282face extension in `ps-print-face-extension-alist'; otherwise, overrides.
2288 2283
2289The elements in FACE-EXTENSION-LIST is like those for `ps-extend-face'. 2284The elements in FACE-EXTENSION-LIST is like those for `ps-extend-face'.
@@ -2944,8 +2939,8 @@ page-height == bm + print-height + tm - ho - hh
2944 (* ps-line-height 0.45)) 2939 (* ps-line-height 0.45))
2945 ps-line-height)))) 2940 ps-line-height))))
2946 2941
2947 (ps-output-boolean "Zebra" ps-zebra-stripe) 2942 (ps-output-boolean "Zebra" ps-zebra-stripes)
2948 (ps-output (format "/NumberOfZebra %d def\n" ps-number-of-zebra)) 2943 (ps-output (format "/NumberOfZebra %d def\n" ps-zebra-stripe-height))
2949 2944
2950 (ps-output-boolean "PrintLineNumber" ps-line-number) 2945 (ps-output-boolean "PrintLineNumber" ps-line-number)
2951 (ps-output (format "/Lines %d def\n" (ps-count-lines (point-min) (point-max)))) 2946 (ps-output (format "/Lines %d def\n" (ps-count-lines (point-min) (point-max))))