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:07:03 +0700 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1494684491 24313 195.159.176.226 (13 May 2017 14:08:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 13 May 2017 14:08:11 +0000 (UTC) To: 26909@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 13 16:08: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 1d9XiI-0006EG-6r for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 May 2017 16:08:06 +0200 Original-Received: from localhost ([::1]:57750 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9XiN-00049p-Nk for geb-bug-gnu-emacs@m.gmane.org; Sat, 13 May 2017 10:08:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48673) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9XiF-00049j-Lu for bug-gnu-emacs@gnu.org; Sat, 13 May 2017 10:08:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d9XiE-0001I2-E1 for bug-gnu-emacs@gnu.org; Sat, 13 May 2017 10:08:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:40381) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d9XiE-0001Hw-AY for bug-gnu-emacs@gnu.org; Sat, 13 May 2017 10:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d9XiE-0007gd-60 for bug-gnu-emacs@gnu.org; Sat, 13 May 2017 10:08: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 14:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 26909 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.149468445929513 (code B ref -1); Sat, 13 May 2017 14:08:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 May 2017 14:07:39 +0000 Original-Received: from localhost ([127.0.0.1]:43058 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d9Xhq-0007fw-Mr for submit@debbugs.gnu.org; Sat, 13 May 2017 10:07:38 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57641) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d9Xho-0007fi-IK for submit@debbugs.gnu.org; Sat, 13 May 2017 10:07:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d9Xhh-0001DY-VR for submit@debbugs.gnu.org; Sat, 13 May 2017 10:07:31 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:44430) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d9Xhh-0001DR-Ry for submit@debbugs.gnu.org; Sat, 13 May 2017 10:07:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48610) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9Xhg-000482-Am for bug-gnu-emacs@gnu.org; Sat, 13 May 2017 10:07:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d9Xhe-0001D8-Sh for bug-gnu-emacs@gnu.org; Sat, 13 May 2017 10:07:28 -0400 Original-Received: from mail-wm0-x22a.google.com ([2a00:1450:400c:c09::22a]:35622) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d9Xhe-0001Cs-HT for bug-gnu-emacs@gnu.org; Sat, 13 May 2017 10:07:26 -0400 Original-Received: by mail-wm0-x22a.google.com with SMTP id b84so42373541wmh.0 for ; Sat, 13 May 2017 07:07:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:from:date:message-id:subject:to; bh=DVMmG0cvkeMkPWjXL9PefVZff8bwHAIWCT86Pic0QD4=; b=Cei/JzuHiGD3cvfk+qbfMIv3HqGkhQHzDB3iihH3rF4MpNKwGMtIBPwWptyNeVBBhp DHUcPY1+vR99GoR4kP/U5eTwfvfefqiZbQSxiCfGNzAQJqnWW73gwa1QSRZY4s5eNpwf 50AjEqMmTBqD7vtiQ2psfnzMRU0/cGJY4b+nBWwmslGifeCjRO+wflNKMEYuAISb2vEJ 9x4ZWXfOu51xGCoGg5ox8TvshZsU2t2rEbKs1Xww2qc8lrMfQB7Gx2uHH3BqEqFAUsE8 6zdFTdS2Yy+Ro/+AE3h1T71lsE0/BAaqRU2SAZsrYZxLqTVm2SJPhIDhIUfOR+NHuMJE 9shA== 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:from:date:message-id:subject :to; bh=DVMmG0cvkeMkPWjXL9PefVZff8bwHAIWCT86Pic0QD4=; b=N9cgMtUZ9RXsGmWrXd4Gan05IRsIfKzqv0OwZl1yGfPdq598lRJyivsP6QJ9nC9gAE Osp9/j3evzlh2Ml78JBt1j3spRM1syBx8ScTCP7FevZriNUiyDGvLmkPXhD7Pypl4raI avLqiZ7WAJC8yGChviVxCF+gZ5GfbDOB4a0U7GZuYwB92MDe6BprUEkio3HLvcoNpdxu DE/AQzYyFbYCg2/BT3wqRQCMtyBZA/qb4GdygPgeY0RN2FPNUw42o1LBciaTRy61cLJZ dGoOZE0rPBbXLbXx7l95hMG1bbMdsPioDC/F/c0XbN4vAyGp3t69/nJ6u+UaHXy9SLKq de/w== X-Gm-Message-State: AODbwcAbudJfZJDK/4bjk1a8X0LYaiykg168G7WMV2H12lDOjkLEwviq K71Oagvr38E+5CyagWGgC1+Y07Xcief+ X-Received: by 10.28.14.17 with SMTP id 17mr6078885wmo.95.1494684443793; Sat, 13 May 2017 07:07:23 -0700 (PDT) Original-Received: by 10.223.163.196 with HTTP; Sat, 13 May 2017 07:07:03 -0700 (PDT) X-Google-Sender-Auth: q2jRhFred4BzVClP37BZTNHAdX8 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:132470 Archived-At: $ emacs -Q Observed behavior: *scratch* buffer with two lines of text and an empty line. M-x linum-mode RET (Note: Linum is only used as a demonstration example. Other modes that enable margins are affected similarly.) Observed behavior: A margin appears on the left of the fringe. The margin is white, the fringe is light gray. Line numbers 1, 2, and 3 are displayed in the margin. Desired behavior: I would like to make the margin background the same color as the fringe, and different from the default background. M-: (set-face-attribute 'linum nil :inherit '(shadow fringe default)) RET Observed behavior: Line numbers 1, 2, and 3 are displayed over light gray background. Empty space below line number 3 is displayed in default background color. DEL Observed behavior: Lines formerly numbered 1 and 2 are joined into a long line. It is wrapped over so there is a gap between line numbers 1 and 2. The gap is displayed in default background color. The last two actions demonstrate that customizing the faces of whatever is displayed in the margin is not sufficient. A mechanism is needed that will allow customization of the margin where nothing is displayed. A new face would serve nicely. In GNU Emacs 25.1.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2016-12-13, modified by Debian built on lgw01-55 Windowing system distributor 'The X.Org Foundation', version 11.0.11804000 System Description: Ubuntu 16.04.2 LTS Configured using: 'configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs25:/etc/emacs:/usr/local/share/emacs/25.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.1/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs25:/etc/emacs:/usr/local/share/emacs/25.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.1/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro'' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LC_MONETARY: en_RU.UTF-8 value of $LC_NUMERIC: en_RU.UTF-8 value of $LC_TIME: en_RU.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: linum-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: Back to top level Type C-x 1 to delete the help window. mouse-2, RET: describe this symbol nil [2 times] C-c C-g is undefined Quit [2 times] Type C-x 1 to delete the help window, C-M-v to scroll help. C-x is undefined Mark saved where search started [2 times] scroll-down-command: Beginning of buffer Load-path shadows: None found. Features: (shadow sort mail-extr misearch multi-isearch emacsbug message dired format-spec rfc822 mml mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cl-extra thingatpt help-fns help-mode easymenu cl-loaddefs pcase cl-lib debug linum time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 91665 11380) (symbols 48 19957 0) (miscs 40 93 221) (strings 32 15138 4640) (string-bytes 1 432034) (vectors 16 12162) (vector-slots 8 438633 9404) (floats 8 169 186) (intervals 56 736 16) (buffers 976 20) (heap 1024 47507 1126))