aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinicius Jose Latorre2007-08-08 16:37:46 +0000
committerVinicius Jose Latorre2007-08-08 16:37:46 +0000
commitea1711904fd349350ae115269d0fb0e611b45dd9 (patch)
treee08f887061afa9886b74bda146068e570428b579
parent4aaffda19b84c458cc5637c0e3b5dea5eea38fd6 (diff)
downloademacs-ea1711904fd349350ae115269d0fb0e611b45dd9.tar.gz
emacs-ea1711904fd349350ae115269d0fb0e611b45dd9.zip
ps-print-color-p fix
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/ps-print.el15
2 files changed, 17 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 24d83794eac..fe3b90d5100 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12007-08-08 Vinicius Jose Latorre <viniciusjl@ig.com.br>
2
3 * ps-print.el (ps-default-fg, ps-default-bg): Docstring fix.
4 (ps-begin-job): Use ps-default-fg and ps-default-bg only when
5 ps-print-color-p is neither nil nor black-white. Reported by Christian
6 Schlauer <cs-muelleimer-rubbish.bin@arcor.de>.
7
12007-08-08 Stefan Monnier <monnier@iro.umontreal.ca> 82007-08-08 Stefan Monnier <monnier@iro.umontreal.ca>
2 9
3 * files.el (auto-mode-alist): Use the purecopied text (duh!). 10 * files.el (auto-mode-alist): Use the purecopied text (duh!).
diff --git a/lisp/ps-print.el b/lisp/ps-print.el
index a2346b8f76b..4f5f67fd91e 100644
--- a/lisp/ps-print.el
+++ b/lisp/ps-print.el
@@ -3016,7 +3016,8 @@ Valid values are:
3016 3016
3017Any other value is ignored and black color will be used. 3017Any other value is ignored and black color will be used.
3018 3018
3019It's used only when `ps-print-color-p' is non-nil." 3019This variable is used only when `ps-print-color-p' (which see) is neither nil
3020nor black-white."
3020 :type '(choice :menu-tag "Default Foreground Gray/Color" 3021 :type '(choice :menu-tag "Default Foreground Gray/Color"
3021 :tag "Default Foreground Gray/Color" 3022 :tag "Default Foreground Gray/Color"
3022 (const :tag "Session Foreground" t) 3023 (const :tag "Session Foreground" t)
@@ -3059,7 +3060,8 @@ Valid values are:
3059 3060
3060Any other value is ignored and white color will be used. 3061Any other value is ignored and white color will be used.
3061 3062
3062It's used only when `ps-print-color-p' is non-nil. 3063This variable is used only when `ps-print-color-p' (which see) is neither nil
3064nor black-white.
3063 3065
3064See also `ps-use-face-background'." 3066See also `ps-use-face-background'."
3065 :type '(choice :menu-tag "Default Background Gray/Color" 3067 :type '(choice :menu-tag "Default Background Gray/Color"
@@ -5920,7 +5922,8 @@ XSTART YSTART are the relative position for the first page in a sheet.")
5920 1.0) 5922 1.0)
5921 ps-default-background (ps-rgb-color 5923 ps-default-background (ps-rgb-color
5922 (cond 5924 (cond
5923 ((or (not (eq ps-print-color-p t)) 5925 ((or (member ps-print-color-p
5926 '(nil back-white))
5924 (eq genfunc 'ps-generate-postscript)) 5927 (eq genfunc 'ps-generate-postscript))
5925 nil) 5928 nil)
5926 ((eq ps-default-bg 'frame-parameter) 5929 ((eq ps-default-bg 'frame-parameter)
@@ -5933,7 +5936,8 @@ XSTART YSTART are the relative position for the first page in a sheet.")
5933 1.0) 5936 1.0)
5934 ps-default-foreground (ps-rgb-color 5937 ps-default-foreground (ps-rgb-color
5935 (cond 5938 (cond
5936 ((or (not (eq ps-print-color-p t)) 5939 ((or (member ps-print-color-p
5940 '(nil back-white))
5937 (eq genfunc 'ps-generate-postscript)) 5941 (eq genfunc 'ps-generate-postscript))
5938 nil) 5942 nil)
5939 ((eq ps-default-fg 'frame-parameter) 5943 ((eq ps-default-fg 'frame-parameter)
@@ -5944,7 +5948,8 @@ XSTART YSTART are the relative position for the first page in a sheet.")
5944 ps-default-fg)) 5948 ps-default-fg))
5945 "unspecified-fg" 5949 "unspecified-fg"
5946 0.0) 5950 0.0)
5947 ps-default-color (and (eq ps-print-color-p t) 5951 ps-default-color (and (not (member ps-print-color-p
5952 '(nil back-white)))
5948 ps-default-foreground) 5953 ps-default-foreground)
5949 ps-current-color ps-default-color) 5954 ps-current-color ps-default-color)
5950 ;; initialize page dimensions 5955 ;; initialize page dimensions