From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Vinicius Jose Latorre Newsgroups: gmane.emacs.devel Subject: Re: for white on black ps-print generates white on white text Date: Thu, 30 Sep 2004 00:37:34 -0300 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <415B7F7E.1050308@ig.com.br> References: <415A7843.2050106@redhat.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1096515804 14547 80.91.229.6 (30 Sep 2004 03:43:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 30 Sep 2004 03:43:24 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 30 05:43:12 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CCrqZ-0006tL-00 for ; Thu, 30 Sep 2004 05:43:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCrww-00032B-K8 for ged-emacs-devel@m.gmane.org; Wed, 29 Sep 2004 23:49:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CCrwm-00030l-ND for emacs-devel@gnu.org; Wed, 29 Sep 2004 23:49:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CCrwm-00030Z-An for emacs-devel@gnu.org; Wed, 29 Sep 2004 23:49:36 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CCrwm-00030W-6z for emacs-devel@gnu.org; Wed, 29 Sep 2004 23:49:36 -0400 Original-Received: from [200.221.11.55] (helo=smtp.uol.com.br) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CCrqL-0006Mm-Rk for emacs-devel@gnu.org; Wed, 29 Sep 2004 23:42:58 -0400 Original-Received: from [200.98.142.244] (200-98-142-244.tlf.dialuol.com.br [200.98.142.244]) by scorpion2.uol.com.br (Postfix) with ESMTP id DA1C3DD4F; Thu, 30 Sep 2004 00:42:53 -0300 (BRT) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8a4) Gecko/20040927 X-Accept-Language: en-us, en Original-To: Jens Petersen In-Reply-To: <415A7843.2050106@redhat.com> X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:27689 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:27689 Hi Jens, This problem is already fixed in ps-print version 6.6.5 (the latest). Please, do: (setq ps-default-fg t) (setq ps-default-bg t) So, ps-print will use the Emacs session foreground and background colors. The default value for ps-default-fg is black and for ps-default-bg is white. Some time ago the default for both variables were t, but this was an annoyance by some folk. So, I changed the default values. Please, see the ps-default-bg and ps-default-fg doc (C-h v ps-default-fg RET). Also, the settings: (setq ps-default-fg "black") (setq ps-default-bg "white") Work as a charm. The latest ps-print can be downloaded from Emacs CVS repository or from: http://www.cpqd.com.br/~vinicius/emacs/ Regards, Vinicius Jens Petersen wrote: > To reproduce: > > % emacs -q > M-x set-foreground-color RET white RET > M-x set-background-color RET black RET > C-x C-f /usr/include/stdio.h > C-u M-x ps-print-buffer-with-faces RET ~/tmp/psprint.ps RET y > C-x C-c > % gv ~/tmp/psprint.ps > > and observe that the default font with white foreground is rendered > white on white in the ps file. > > Setting > (setq ps-default-fg "black" > ps-default-bg "white") > doesn't seem to help. > > -Jens > > ps This was reported a good while back at > https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=75763 > >