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: ps-print-color-p and the background colour of Emacs' frame Date: Thu, 05 Jul 2007 22:22:42 +0200 Message-ID: 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 1183667114 1036 80.91.229.12 (5 Jul 2007 20:25:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 5 Jul 2007 20:25:14 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 05 22:25:13 2007 connect(): Connection refused 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 1I6Xt1-0007sM-Br for ged-emacs-devel@m.gmane.org; Thu, 05 Jul 2007 22:25:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I6Xt0-0005AS-RT for ged-emacs-devel@m.gmane.org; Thu, 05 Jul 2007 16:25:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I6Xsx-0005AD-Be for emacs-devel@gnu.org; Thu, 05 Jul 2007 16:25:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I6Xsw-0005A1-0w for emacs-devel@gnu.org; Thu, 05 Jul 2007 16:25:07 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I6Xsv-00059y-Sy for emacs-devel@gnu.org; Thu, 05 Jul 2007 16:25:05 -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 1I6Xsv-00035U-Ep for emacs-devel@gnu.org; Thu, 05 Jul 2007 16:25:05 -0400 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1I6Xss-0007Qk-8L for emacs-devel@gnu.org; Thu, 05 Jul 2007 22:25:02 +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 ; Thu, 05 Jul 2007 22:25:02 +0200 Original-Received: from cs-usenet by finn.gmane.org with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 Jul 2007 22:25:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 69 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:74354 Archived-At: Observed with Emacs 22.1: - emacs -q --no-site-file - M-x set-background-color RET LightSkyBlue RET - C-u M-x ps-print-buffer-with-faces RET RET If I open that file with a PostScript viewer (Evince in Ubuntu 7.04), there is no background colour in the text area. If I now *repeat* - C-u M-x ps-print-buffer-with-faces RET RET and open the file again, you'll see that the background of the text area is in the colour LightSkyBlue, too. ===> Why *isn't* the background colour in the file when it is saved for the first time? Bug? Now do - M-x set-variable RET ps-print-color-p RET nil RET - C-u M-x ps-print-buffer-with-faces RET RET Open the file: background is blue, but text is black. Now simply repeat - C-u M-x ps-print-buffer-with-faces RET RET Open the file: background is white, text is black. ===> Why *is* the background colour in the file when it is saved for the *first* time? It shouldn't, see the description of ps-default-bg below. Bug? Now do - M-x set-variable RET ps-print-color-p RET black-white RET - C-u M-x ps-print-buffer-with-faces RET RET Open the file: background is white, text is black and italic, as expected. Now simply repeat - C-u M-x ps-print-buffer-with-faces RET RET Open the file: background is blue -- WHY? ===> Why *is* the background colour in the file when it is saved for the second time? Bug? ,----[ C-h v ps-default-bg RET ] [...] | The `ps-default-bg' variable contains the default background color | used by ps-print, that is, if there is a face in a text that doesn't | have a background color, the `ps-default-bg' color should be used. [...] | It's used only when `ps-print-color-p' is non-nil. | | See also `ps-use-face-background'. | | You can customize this variable. | | [back] `----