From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.bugs Subject: bug#26909: 25.1; A face for margins Date: Sat, 13 May 2017 21:59:29 +0700 Message-ID: References: <83lgq096iz.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1494687670 20227 195.159.176.226 (13 May 2017 15:01:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 13 May 2017 15:01:10 +0000 (UTC) Cc: 26909@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 13 17:01:06 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d9YXX-00057Y-Gt for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 May 2017 17:01:03 +0200 Original-Received: from localhost ([::1]:57883 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9YXd-0003I9-59 for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 May 2017 11:01:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58268) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9YWc-0002mn-1i for bug-gnu-emacs@gnu.org; Sat, 13 May 2017 11:00:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d9YWZ-000455-39 for bug-gnu-emacs@gnu.org; Sat, 13 May 2017 11:00:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40415) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d9YWZ-000450-0R for bug-gnu-emacs@gnu.org; Sat, 13 May 2017 11:00:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d9YWY-0000Rg-K6 for bug-gnu-emacs@gnu.org; Sat, 13 May 2017 11:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Yuri Khan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 13 May 2017 15:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26909 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 26909-submit@debbugs.gnu.org id=B26909.14946875971672 (code B ref 26909); Sat, 13 May 2017 15:00:02 +0000 Original-Received: (at 26909) by debbugs.gnu.org; 13 May 2017 14:59:57 +0000 Original-Received: from localhost ([127.0.0.1]:43092 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d9YWT-0000Qu-6m for submit@debbugs.gnu.org; Sat, 13 May 2017 10:59:57 -0400 Original-Received: from mail-wr0-f193.google.com ([209.85.128.193]:34784) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d9YWR-0000Qh-Cq for 26909@debbugs.gnu.org; Sat, 13 May 2017 10:59:55 -0400 Original-Received: by mail-wr0-f193.google.com with SMTP id 6so10083811wrb.1 for <26909@debbugs.gnu.org>; Sat, 13 May 2017 07:59:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=VtSX/DmpE6CrApNOmho1PcsUtbeHovcxkokiZ/7n1Jw=; b=JEmWjPqjLQATQqhPxzlEoy6Zlolh43cR7VO7+JlZoEJha/dTJHCs/OZaVZpjrxx++o iBREqo3xy4PMkwUQjPhHVpemoLfImz6FJAOC+21GVhgnMhtk1rNySQk0eYRC8zyPvoRD 0tcoldENqkxXuV6lutlckk5pQSRCi2qoTFRA9Y2WuLVmCpjCtV/QNJO0sgL/OoVEc14C F4dMeZCw78cBGKaunujGYhEJaZautyGy2smX9zO0vFx7cx3f4SLk2ORZWQTVmH1lFkqO xunlqWI4z6ZqW8FsDPlOwLjp59Htw+01w3ETvbApUBUd5l3zVEA/Me8X4ovbShj4WIjI Yp6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=VtSX/DmpE6CrApNOmho1PcsUtbeHovcxkokiZ/7n1Jw=; b=cL90vYEckmtG2sbnQH4HGdEQqW44Hb5ofpqDHnVCA+umqTbeZRTRvRLYNnSUV/RBXf 2BHVIklR4sjJuVhhcfg4ZUzPprYcvJxnN1UoGoUGLAd2RMlVdZYrnDmofJABf+DOftBO zBMbW3DszXTacqLZudEi9hisSav875AKR7I62OblZNazhiRr+um56lSzLDn+ExXmif0n ahLOkOMLTDp1Nj/dBRYpabMNCym2LMLfyd3YBDj+X5k9JsqhXPMPC7qr2nJbAKhtUsGJ qeO2A9KnFc5hb17YE1HcSPQ8Lc0V1c8iMZvc6cfon0/moJSbzqiQSxYmgVkKguiJJ2Ma 3bpw== X-Gm-Message-State: AODbwcB+RFIhl+PsKP1oklzZAk87qlKXS6xByYOAy2Jdpa8OC9jq34+g TduBBUSHYSIC+8kFYffNMVWJoOw+6w== X-Received: by 10.223.179.199 with SMTP id x7mr6862887wrd.72.1494687589660; Sat, 13 May 2017 07:59:49 -0700 (PDT) Original-Received: by 10.223.163.196 with HTTP; Sat, 13 May 2017 07:59:29 -0700 (PDT) In-Reply-To: <83lgq096iz.fsf@gnu.org> X-Google-Sender-Auth: 36NQUYR14BXtfq71dDR47tCc9PU X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:132472 Archived-At: On Sat, May 13, 2017 at 9:27 PM, Eli Zaretskii wrote: > A face can only affect places where something is displayed using that > face. Display margins only display text if the buffer specifies text > properties or overlays which display in the margins. But what you > would like to do calls for having a face that would affect screen > space where _nothing_ is displayed, and such screen space in Emacs is > always displayed using the frame's background color, not by using some > face. > > You could specify a light gray background color for the frame, and > another color for the default face, but I think this would cause > unpleasant effects elsewhere on display, e.g. in the text area beyond > EOB. That might in fact work for me. However, I do not seem to be able to do tha= t. (linum-mode) ^X^E (set-frame-parameter nil 'background-color "gray95") ^X^E * The backgrounds of both the margin and the buffer turn light gray. (set-face-background 'default "white") ^X^E * The backgrounds of both the buffer and the margin turn back to white. Indeed, (elisp) Font and Color Parameters says: | =E2=80=98background-color=E2=80=99 | The color to use for the background of characters. It is | equivalent to the =E2=80=98:background=E2=80=99 attribute of the =E2= =80=98default=E2=80=99 face. So the =E2=80=98default=E2=80=99 face is already special in that its :backg= round is used to draw the frame background. The proposed new face could be also special that way. (If by =E2=80=9Cbackground color for the frame=E2=80=9D you meant something= other than the =E2=80=98background-color=E2=80=99 frame parameter, please point me to = it.)