From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vinicius Jose Latorre Newsgroups: gmane.emacs.devel Subject: Re: ps-print-color-p and the background colour of Emacs' frame Date: Fri, 20 Jul 2007 14:31:55 -0300 Message-ID: <46A0F18B.1080108@ig.com.br> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1184952702 22138 80.91.229.12 (20 Jul 2007 17:31:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 20 Jul 2007 17:31:42 +0000 (UTC) Cc: emacs-devel@gnu.org To: cs-usenet@arcor.de Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 20 19:31:39 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 1IBwKI-0004nr-0E for ged-emacs-devel@m.gmane.org; Fri, 20 Jul 2007 19:31:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IBwKH-0003SQ-Dz for ged-emacs-devel@m.gmane.org; Fri, 20 Jul 2007 13:31:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IBwKC-0003OQ-TC for emacs-devel@gnu.org; Fri, 20 Jul 2007 13:31:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IBwKC-0003NO-9q for emacs-devel@gnu.org; Fri, 20 Jul 2007 13:31:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IBwKC-0003NG-4q for emacs-devel@gnu.org; Fri, 20 Jul 2007 13:31:32 -0400 Original-Received: from an-out-0708.google.com ([209.85.132.246]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IBwKB-00040K-QB for emacs-devel@gnu.org; Fri, 20 Jul 2007 13:31:32 -0400 Original-Received: by an-out-0708.google.com with SMTP id c25so171581ana for ; Fri, 20 Jul 2007 10:31:30 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=g/cAOJV5KRO5XxDWiLsOECpMVH/F8gCGXj/lYdq+Go5J22dUnkGqLxMLOtoGmQDfMaGDMkXcNEAnvuWnkL7oIQkGCxPwKUfrds5lKJX1mea8r2iIg3+4UF6suKHLTRIysJNhlV2K6OAUuzoYXNGaEVVtMLNPWI2lnijbgpswdSw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=Usu8r+N6Xme4URZceF/uhCxhRTul4WArHpzWBNGh60V2Tb2jtNCDEkN+hNAEriiRU+LGRfKDU/bAmndbcFgmaiNh6iZCiUWpS3hZ0kx9t3m4GAqa3lzXa7HvK4XzPSfPGxnYX+UjrpBx6Gm/a9n0Ey16fXkVaN2OlQIbZi0MrY0= Original-Received: by 10.100.105.18 with SMTP id d18mr339723anc.1184952690327; Fri, 20 Jul 2007 10:31:30 -0700 (PDT) Original-Received: from ?201.82.142.28? ( [201.82.142.28]) by mx.google.com with ESMTPS id b14sm4426533ana.2007.07.20.10.31.27 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 20 Jul 2007 10:31:28 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20070509 SeaMonkey/1.1.2 In-Reply-To: X-detected-kernel: Linux 2.6 (newer, 2) 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:75191 Archived-At: Hi Christian, Sorry for this delay, I'm very short in time now. I've just updated Emacs CVS trunk and EMACS 23, but not EMACS 22 BRANCH (should I?). Could you, please, test it again in your environment? Thanks for your report, Vinicius 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. Christian Schlauer wrote: > 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] > `---- >