From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: md5i@cs.cmu.edu Newsgroups: gmane.emacs.devel Subject: ps-print fg and bg colors Date: Wed, 23 Oct 2002 15:23:39 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035401225 14855 80.91.224.249 (23 Oct 2002 19:27:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 19:27:05 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 184R9j-0003r8-00 for ; Wed, 23 Oct 2002 21:27:03 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 184RBY-0006uz-00 for ; Wed, 23 Oct 2002 21:28:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 184R7x-0005FY-00; Wed, 23 Oct 2002 15:25:13 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 184R7Y-0004x7-00 for emacs-devel@gnu.org; Wed, 23 Oct 2002 15:24:48 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 184R74-0004i3-00 for emacs-devel@gnu.org; Wed, 23 Oct 2002 15:24:47 -0400 Original-Received: from miyazima.lti.cs.cmu.edu ([128.2.178.242]) by monty-python.gnu.org with smtp (Exim 4.10) id 184R72-0004eQ-00 for emacs-devel@gnu.org; Wed, 23 Oct 2002 15:24:18 -0400 Original-To: emacs-devel@gnu.org User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Source-Info: Sender is really md5i+@miyazima.lti.cs.cmu.edu Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:8700 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:8700 With this changelog entry: 2002-09-11 Vinicius Jose Latorre * ps-print.el: Adjust ps-print-color-p, ps-default-fg and ps-default-bg setting. (ps-print-version): New version number (6.5.7). (ps-mark-active-p): New fun. (ps-print-preprint-region): Adjust code. the folowing change was made: @@ -2890,7 +2913,8 @@ (const :tag "Print Black/White Color" black-white)) :group 'ps-print-color) -(defcustom ps-default-fg '(0.0 0.0 0.0) +(defcustom ps-default-fg (or (ps-face-foreground-name 'default) + '(0.0 0.0 0.0)) ; black "*RGB values of the default foreground color. Defaults to black." :type '(choice :menu-tag "Default Foreground Gray/Color" :tag "Default Foreground Gray/Color" @@ -2902,7 +2926,8 @@ (number :tag "Blue"))) :group 'ps-print-color) -(defcustom ps-default-bg '(1.0 1.0 1.0) +(defcustom ps-default-bg (or (ps-face-background-name 'default) + '(1.0 1.0 1.0)) ; white "*RGB values of the default background color. Defaults to white." :type '(choice :menu-tag "Default Background Gray/Color" :tag "Default Background Gray/Color" Unfortunately, this is probably the wrong default for people like me who use a dark background and light foreground. Maybe forground and background should be reversed when the frame's background-mode is `dark'? -- Michael Welsh Duggan (md5i@cs.cmu.edu)