From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: gerd.moellmann@t-online.de (Gerd Moellmann) Newsgroups: gmane.emacs.devel Subject: Re: A different color appears in the unused screen lines Date: 01 Jun 2002 12:14:37 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: <86heknfgqa.fsf@gerd.free-bsd.org> References: <200205262225.g4QMPfp06457@aztec.santafe.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1022940334 9645 127.0.0.1 (1 Jun 2002 14:05:34 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 1 Jun 2002 14:05:34 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from hermes.netfonds.no ([80.91.224.195]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17E9KX-0000tq-04 for ; Sat, 01 Jun 2002 15:54:05 +0200 Original-Received: from mail-relay.eunet.no (mail-relay.eunet.no [193.71.71.242]) by hermes.netfonds.no (8.12.1/8.12.1) with ESMTP id g51C60uM031721 for ; Sat, 1 Jun 2002 14:06:01 +0200 (CEST) Original-Received: from quimby.gnus.org (quimby.gnus.org [80.91.224.244]) by mail-relay.eunet.no (8.12.2/8.12.2/GN) with ESMTP id g51C60Qn057980 for ; Sat, 1 Jun 2002 14:06:00 +0200 (CEST) (envelope-from emacs-devel-admin@gnu.org) Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17E6Dn-0005LP-00 for ; Sat, 01 Jun 2002 12:34:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17E5uZ-0000Rz-00; Sat, 01 Jun 2002 06:15:03 -0400 Original-Received: from mailout06.sul.t-online.com ([194.25.134.19]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17E5uW-0000Pu-00; Sat, 01 Jun 2002 06:15:00 -0400 Original-Received: from fwd00.sul.t-online.de by mailout06.sul.t-online.com with smtp id 17E5uU-0002d9-01; Sat, 01 Jun 2002 12:14:58 +0200 Original-Received: from gerd.free-bsd.org (520015515780-0001@[217.85.173.239]) by fwd00.sul.t-online.com with esmtp id 17E5uG-13MPkOC; Sat, 1 Jun 2002 12:14:44 +0200 Original-Received: from gerd.free-bsd.org (localhost [127.0.0.1]) by gerd.free-bsd.org (8.12.3/8.12.2) with ESMTP id g51AEhGm000405; Sat, 1 Jun 2002 12:14:43 +0200 (CEST) (envelope-from gerd.moellmann@t-online.de) Original-Received: (from gerd@localhost) by gerd.free-bsd.org (8.12.3/8.12.3/Submit) id g51AEbVQ000402; Sat, 1 Jun 2002 12:14:37 +0200 (CEST) X-Authentication-Warning: gerd.free-bsd.org: gerd set sender to gerd.moellmann@t-online.de using -f Original-To: rms@gnu.org In-Reply-To: <200205262225.g4QMPfp06457@aztec.santafe.edu> Original-Lines: 29 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-Sender: 520015515780-0001@t-dialin.net Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:4539 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:4539 Richard Stallman writes: > When I put this in .emacs > > (custom-set-faces > ;; custom-set-faces was added by Custom -- don't edit or cut/paste it! > ;; Your init file should contain only one such instance. > '(default ((t (:stipple nil :background "DarkSlateGray" :foreground "wheat" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 135 :width normal :family "adobe-courier"))))) > > the specified colors appear, but empty areas of the screen--those > beyond the last character on the line or in the buffer--come out in a > different color, a little lighter than DarkSlateGray. > > I did M-x list-faces-display, and I saw that no face had a background > equivalent to the color of those empty areas. > > I tried substituting a couple of other background colors. I tried > "black" and "blue". In those cases, the problem did not happen: > the screen appeared black or blue down to the end. > > Does anyone know where that color is coming from? I tried to study > the display code to figure it out but I can't find it. I suspect that > the cause has to do with what GC is specified when x_clear_end_of_line > runs; does anyone know where that is specified? I believe setting the background color of the default face sets the frame's X window background color via frame parameters. The function x_clear_end_of_line uses XClearArea which doesn't use a GC; it clears with the X window's bg color.