]> git.eshelyaron.com Git - emacs.git/commitdiff
ps-print-color-p fix
authorVinicius Jose Latorre <viniciusjl@ig.com.br>
Wed, 8 Aug 2007 16:39:00 +0000 (16:39 +0000)
committerVinicius Jose Latorre <viniciusjl@ig.com.br>
Wed, 8 Aug 2007 16:39:00 +0000 (16:39 +0000)
lisp/ChangeLog
lisp/ps-print.el

index 1d25158afb3aca4170fd8f15d51063bf9f9d65f6..8c3af441f34da517ba775702301fdf538ffc5be8 100644 (file)
@@ -1,3 +1,10 @@
+2007-08-08  Vinicius Jose Latorre  <viniciusjl@ig.com.br>
+
+       * ps-print.el (ps-default-fg, ps-default-bg): Docstring fix.
+       (ps-begin-job): Use ps-default-fg and ps-default-bg only when
+       ps-print-color-p is neither nil nor black-white.  Reported by Christian
+       Schlauer <cs-muelleimer-rubbish.bin@arcor.de>.
+
 2007-08-06  Vinicius Jose Latorre  <viniciusig@ig.com.br>
 
        * printing.el: Require lpr and ps-print when loading printing package.
index 090e598e46c718d11bff2dd5f1c317f6ca94db97..bd46c8a6f538d8d6e1e379062f1ea3ff511aadec 100644 (file)
@@ -2952,7 +2952,8 @@ Valid values are:
 
 Any other value is ignored and black color will be used.
 
-It's used only when `ps-print-color-p' is non-nil."
+This variable is used only when `ps-print-color-p' (which see) is neither nil
+nor black-white."
   :type '(choice :menu-tag "Default Foreground Gray/Color"
                 :tag "Default Foreground Gray/Color"
                 (const :tag "Session Foreground" t)
@@ -2995,7 +2996,8 @@ Valid values are:
 
 Any other value is ignored and white color will be used.
 
-It's used only when `ps-print-color-p' is non-nil.
+This variable is used only when `ps-print-color-p' (which see) is neither nil
+nor black-white.
 
 See also `ps-use-face-background'."
   :type '(choice :menu-tag "Default Background Gray/Color"
@@ -5707,7 +5709,8 @@ XSTART YSTART are the relative position for the first page in a sheet.")
                                1.0)
        ps-default-background (ps-rgb-color
                               (cond
-                               ((or (not (eq ps-print-color-p t))
+                               ((or (member ps-print-color-p
+                                            '(nil back-white))
                                     (eq genfunc 'ps-generate-postscript))
                                 nil)
                                ((eq ps-default-bg 'frame-parameter)
@@ -5720,7 +5723,8 @@ XSTART YSTART are the relative position for the first page in a sheet.")
                               1.0)
        ps-default-foreground (ps-rgb-color
                               (cond
-                               ((or (not (eq ps-print-color-p t))
+                               ((or (member ps-print-color-p
+                                            '(nil back-white))
                                     (eq genfunc 'ps-generate-postscript))
                                 nil)
                                ((eq ps-default-fg 'frame-parameter)
@@ -5731,7 +5735,8 @@ XSTART YSTART are the relative position for the first page in a sheet.")
                                 ps-default-fg))
                               "unspecified-fg"
                               0.0)
-       ps-default-color      (and (eq ps-print-color-p t)
+       ps-default-color      (and (not (member ps-print-color-p
+                                               '(nil back-white)))
                                   ps-default-foreground)
        ps-current-color      ps-default-color
        ;; Set up default functions.  They may be overridden by