From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Colin Williams Newsgroups: gmane.emacs.help Subject: Buffer-specific background color Date: Sun, 20 Dec 2009 16:39:04 -0500 Message-ID: <1b97198a0912201339g3953c506sc79464df530d566f@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0015175d094e4d8fbe047b2fcdab X-Trace: ger.gmane.org 1261345255 29389 80.91.229.12 (20 Dec 2009 21:40:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Dec 2009 21:40:55 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 20 22:40:48 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NMTWB-0000Cw-AZ for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Dec 2009 22:40:47 +0100 Original-Received: from localhost ([127.0.0.1]:34231 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NMTWB-0007mX-2R for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Dec 2009 16:40:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NMTUg-0006BQ-Bk for help-gnu-emacs@gnu.org; Sun, 20 Dec 2009 16:39:14 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NMTUb-00062t-BN for help-gnu-emacs@gnu.org; Sun, 20 Dec 2009 16:39:14 -0500 Original-Received: from [199.232.76.173] (port=43517 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NMTUb-00062a-4a for help-gnu-emacs@gnu.org; Sun, 20 Dec 2009 16:39:09 -0500 Original-Received: from mail-bw0-f215.google.com ([209.85.218.215]:36673) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NMTUa-0004nI-Kf for help-gnu-emacs@gnu.org; Sun, 20 Dec 2009 16:39:08 -0500 Original-Received: by bwz7 with SMTP id 7so3427513bwz.26 for ; Sun, 20 Dec 2009 13:39:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=GmuJocO27rexYk05l5XzWqcit6Mi3JbP9d8C9fK8ACo=; b=xKq+eGMSjUC3iPbpSJ/isFfKWsxByIqi+fKnbayStM3vjaNDZTBwkGyROzu/YOwmq3 o3lsun9ZUrKHmwaB6L7ujBd+HJ19n3jFO0ff7m6AkZi8pKJ8OgyN4dfnhA7t2gR+f7u/ uMnfChFecWAqEBh8BMEmTRzThiEqlxYrZEjpU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=MKJuaE2mX8VPjcuTZkxw6LCY8eLCexyXOK/6NKvxXeuz7iDLYRmZLQbRLI9CsdOR5L qtMBRK5JdX/ziHQ+UR94JIoWFMAIyf+Wgh+12s6S3P5u4q5pMo2UHQwa2RIO4xUoKjtW eyCFNakzgtKU9/JIZlPS/iTEypNfjkaoHhDgE= Original-Received: by 10.204.153.217 with SMTP id l25mr4250565bkw.108.1261345144934; Sun, 20 Dec 2009 13:39:04 -0800 (PST) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:70764 Archived-At: --0015175d094e4d8fbe047b2fcdab Content-Type: text/plain; charset=UTF-8 I want to set the background color for a specific buffer, but I can't get it to work quite right. I am able to alter the color of the background for the face default using (face-remap-add-relative 'default :background "#F9F9F9"), but if the text ends before the end of the buffer, so does the differing color. By contrast, (set-face-attribute 'default (selected-frame) :background "#F9F9F9") will set the color for the whole buffer, but every other buffer in the frame as well. Is there a way to set the entire background of just the current buffer? Colin --0015175d094e4d8fbe047b2fcdab Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I want to set the background color for a specific buffer, but I can't g= et it to work quite right.=C2=A0 I am able to alter the color of the backgr= ound for the face default using (face-remap-add-relative 'default :back= ground "#F9F9F9"), but if the text ends before the end of the buf= fer, so does the differing color.=C2=A0 By contrast, (set-face-attribute &#= 39;default (selected-frame) :background "#F9F9F9") will set the c= olor for the whole buffer, but every other buffer in the frame as well.=C2= =A0 Is there a way to set the entire background of just the current buffer?=

Colin
--0015175d094e4d8fbe047b2fcdab--