diff options
| author | Vinicius Jose Latorre | 2007-08-08 16:39:00 +0000 |
|---|---|---|
| committer | Vinicius Jose Latorre | 2007-08-08 16:39:00 +0000 |
| commit | 905350bef3ebc514a418658dd155c1d062664b56 (patch) | |
| tree | 29a19c1ec2a6ab0c47dc28114140b5ef2dd37093 | |
| parent | 83c45bb41168aaaf8412ea6524d7126b6ba75c3f (diff) | |
| download | emacs-905350bef3ebc514a418658dd155c1d062664b56.tar.gz emacs-905350bef3ebc514a418658dd155c1d062664b56.zip | |
ps-print-color-p fix
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/ps-print.el | 15 |
2 files changed, 17 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1d25158afb3..8c3af441f34 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2007-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 | |||
| 1 | 2007-08-06 Vinicius Jose Latorre <viniciusig@ig.com.br> | 8 | 2007-08-06 Vinicius Jose Latorre <viniciusig@ig.com.br> |
| 2 | 9 | ||
| 3 | * printing.el: Require lpr and ps-print when loading printing package. | 10 | * printing.el: Require lpr and ps-print when loading printing package. |
diff --git a/lisp/ps-print.el b/lisp/ps-print.el index 090e598e46c..bd46c8a6f53 100644 --- a/lisp/ps-print.el +++ b/lisp/ps-print.el | |||
| @@ -2952,7 +2952,8 @@ Valid values are: | |||
| 2952 | 2952 | ||
| 2953 | Any other value is ignored and black color will be used. | 2953 | Any other value is ignored and black color will be used. |
| 2954 | 2954 | ||
| 2955 | It's used only when `ps-print-color-p' is non-nil." | 2955 | This variable is used only when `ps-print-color-p' (which see) is neither nil |
| 2956 | nor black-white." | ||
| 2956 | :type '(choice :menu-tag "Default Foreground Gray/Color" | 2957 | :type '(choice :menu-tag "Default Foreground Gray/Color" |
| 2957 | :tag "Default Foreground Gray/Color" | 2958 | :tag "Default Foreground Gray/Color" |
| 2958 | (const :tag "Session Foreground" t) | 2959 | (const :tag "Session Foreground" t) |
| @@ -2995,7 +2996,8 @@ Valid values are: | |||
| 2995 | 2996 | ||
| 2996 | Any other value is ignored and white color will be used. | 2997 | Any other value is ignored and white color will be used. |
| 2997 | 2998 | ||
| 2998 | It's used only when `ps-print-color-p' is non-nil. | 2999 | This variable is used only when `ps-print-color-p' (which see) is neither nil |
| 3000 | nor black-white. | ||
| 2999 | 3001 | ||
| 3000 | See also `ps-use-face-background'." | 3002 | See also `ps-use-face-background'." |
| 3001 | :type '(choice :menu-tag "Default Background Gray/Color" | 3003 | :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.") | |||
| 5707 | 1.0) | 5709 | 1.0) |
| 5708 | ps-default-background (ps-rgb-color | 5710 | ps-default-background (ps-rgb-color |
| 5709 | (cond | 5711 | (cond |
| 5710 | ((or (not (eq ps-print-color-p t)) | 5712 | ((or (member ps-print-color-p |
| 5713 | '(nil back-white)) | ||
| 5711 | (eq genfunc 'ps-generate-postscript)) | 5714 | (eq genfunc 'ps-generate-postscript)) |
| 5712 | nil) | 5715 | nil) |
| 5713 | ((eq ps-default-bg 'frame-parameter) | 5716 | ((eq ps-default-bg 'frame-parameter) |
| @@ -5720,7 +5723,8 @@ XSTART YSTART are the relative position for the first page in a sheet.") | |||
| 5720 | 1.0) | 5723 | 1.0) |
| 5721 | ps-default-foreground (ps-rgb-color | 5724 | ps-default-foreground (ps-rgb-color |
| 5722 | (cond | 5725 | (cond |
| 5723 | ((or (not (eq ps-print-color-p t)) | 5726 | ((or (member ps-print-color-p |
| 5727 | '(nil back-white)) | ||
| 5724 | (eq genfunc 'ps-generate-postscript)) | 5728 | (eq genfunc 'ps-generate-postscript)) |
| 5725 | nil) | 5729 | nil) |
| 5726 | ((eq ps-default-fg 'frame-parameter) | 5730 | ((eq ps-default-fg 'frame-parameter) |
| @@ -5731,7 +5735,8 @@ XSTART YSTART are the relative position for the first page in a sheet.") | |||
| 5731 | ps-default-fg)) | 5735 | ps-default-fg)) |
| 5732 | "unspecified-fg" | 5736 | "unspecified-fg" |
| 5733 | 0.0) | 5737 | 0.0) |
| 5734 | ps-default-color (and (eq ps-print-color-p t) | 5738 | ps-default-color (and (not (member ps-print-color-p |
| 5739 | '(nil back-white))) | ||
| 5735 | ps-default-foreground) | 5740 | ps-default-foreground) |
| 5736 | ps-current-color ps-default-color | 5741 | ps-current-color ps-default-color |
| 5737 | ;; Set up default functions. They may be overridden by | 5742 | ;; Set up default functions. They may be overridden by |