From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christian Schlauer Newsgroups: gmane.emacs.devel Subject: Re: ps-print-color-p and the background colour of Emacs' frame Date: Sun, 05 Aug 2007 22:19:26 +0200 Message-ID: References: <46A0F18B.1080108@ig.com.br> <46A76AB1.8060807@ig.com.br> Reply-To: cs-usenet@arcor.de NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1186345202 6837 80.91.229.12 (5 Aug 2007 20:20:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 5 Aug 2007 20:20:02 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 05 22:20:01 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IHmZx-0005Ub-66 for ged-emacs-devel@m.gmane.org; Sun, 05 Aug 2007 22:20:00 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IHmZu-0008FY-UB for ged-emacs-devel@m.gmane.org; Sun, 05 Aug 2007 16:19:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IHmZr-0008Di-RX for emacs-devel@gnu.org; Sun, 05 Aug 2007 16:19:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IHmZm-0008BS-UY for emacs-devel@gnu.org; Sun, 05 Aug 2007 16:19:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IHmZm-0008BP-OZ for emacs-devel@gnu.org; Sun, 05 Aug 2007 16:19:46 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IHmZk-0006wF-LA for emacs-devel@gnu.org; Sun, 05 Aug 2007 16:19:45 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IHmZR-0003UL-JQ for emacs-devel@gnu.org; Sun, 05 Aug 2007 22:19:25 +0200 Original-Received: from finn.gmane.org ([80.91.229.4]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 05 Aug 2007 22:19:25 +0200 Original-Received: from cs-usenet by finn.gmane.org with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 05 Aug 2007 22:19:25 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 61 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: finn.gmane.org User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) 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: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:76060 Archived-At: Vinicius Jose Latorre writes: > Christian Schlauer wrote: [...] >> I'm still using Emacs 22.1 -- I'll test it "soon" ;-) >> > > Ok, please, let me know the results of your tests. I updated my EMACS_22_BASE checkout and did emacs -q --no-site-file C-u M-x ps-print-buffer-with-faces RET C-g M-x set-variable RET ps-default-bg RET frame-parameter RET The last line is necessary in Emacs 22.1.50 as `ps-default-bg' is nil now by default (as you wrote): >>> PS: I fixed the problems below and also set ps-default-fg and >>> ps-default-bg to nil, so the default colors are black for foreground >>> and white for background. Then I repeated the test sequences mentioned in my original posting. Everything works as expected: the background of the PS files is white _unless_ I set `ps-default-bg' to `frame-parameter' _and_ `ps-print-color-p' is t (the default). Thank you! There is only an inaccurate doc string: ,----[ C-h v ps-default-bg RET ] | It's used only when `ps-print-color-p' is non-nil. `---- Correct is "It's used only when `ps-print-color-p' is not nil or black-white." -- see below: ,----[ C-h v ps-print-color-p RET ] | ps-print-color-p is a variable defined in `ps-print.el'. | Its value is t | | | Documentation: | *Specify how buffer's text color is printed. | | Valid values are: | | nil Do not print colors. | | t Print colors. | | black-white Print colors on black/white printer. | See also `ps-black-white-faces'. | | Any other value is treated as t. | | You can customize this variable. `----