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: Sun, 05 Aug 2007 17:38:07 -0300 Message-ID: <46B6352F.1060604@ig.com.br> References: <46A0F18B.1080108@ig.com.br> <46A76AB1.8060807@ig.com.br> 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 1186346262 9598 80.91.229.12 (5 Aug 2007 20:37:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 5 Aug 2007 20:37: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 Sun Aug 05 22:37: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 1IHmqv-00015U-HO for ged-emacs-devel@m.gmane.org; Sun, 05 Aug 2007 22:37:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IHmqo-0005jX-FY for ged-emacs-devel@m.gmane.org; Sun, 05 Aug 2007 16:37:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IHmql-0005jN-BE for emacs-devel@gnu.org; Sun, 05 Aug 2007 16:37:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IHmqc-0005fU-QS for emacs-devel@gnu.org; Sun, 05 Aug 2007 16:37:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IHmqc-0005fR-L8 for emacs-devel@gnu.org; Sun, 05 Aug 2007 16:37:10 -0400 Original-Received: from an-out-0708.google.com ([209.85.132.248]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IHmqa-0001QV-H3 for emacs-devel@gnu.org; Sun, 05 Aug 2007 16:37:09 -0400 Original-Received: by an-out-0708.google.com with SMTP id c25so201287ana for ; Sun, 05 Aug 2007 13:36:53 -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=ltjipojprKr9Org1rRUhzig9VlN0Y6M2sy5jsqS9+2HvtqMoVV6yujaYu1wDPZXdareBjuKuxHgLlRhLOxz1ZZEuG7eSlE8VeKpiB0x3u01ksUshdHGUE86V07ilPZcGR7pwWY6KRdVaweBnqEmmhA1fhYAk0dwULDwXAnCNRmY= 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=OzO6aAoTSxIovkcLg5pPkMXOi3502aPeGORNfgE10P8CDQIM4XR5i7HjThKSJk9ILuOnq60ex9c4XETJpB9QxIwAd2MT+P/bpJepTfBYoYrgMYqeDeYkfz4eLdnTpTsd8kpNvRDhOHQsiltK29zzST3cDkTzDNtE3vLb3/uGS3Y= Original-Received: by 10.100.142.12 with SMTP id p12mr2789239and.1186346212914; Sun, 05 Aug 2007 13:36:52 -0700 (PDT) Original-Received: from ?201.82.142.28? ( [201.82.142.28]) by mx.google.com with ESMTPS id b19sm5463794ana.2007.08.05.13.36.50 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 05 Aug 2007 13:36:52 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20070802 SeaMonkey/1.1.4 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:76061 Archived-At: Christian Schlauer wrote: > 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! > Ok. > 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: > Humm, isn't black-white a non-nil (not nil) value? > ,----[ 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. > `----