From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yuri D'Elia Newsgroups: gmane.emacs.devel Subject: Re: Background color past the end of the buffer Date: Sun, 12 Jul 2015 20:54:59 +0200 Message-ID: References: <559F8153.6020805@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1436727325 11098 80.91.229.3 (12 Jul 2015 18:55:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 12 Jul 2015 18:55:25 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 12 20:55:19 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZEMPH-0004TW-9x for ged-emacs-devel@m.gmane.org; Sun, 12 Jul 2015 20:55:19 +0200 Original-Received: from localhost ([::1]:51665 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEMPG-0004IE-Rr for ged-emacs-devel@m.gmane.org; Sun, 12 Jul 2015 14:55:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59887) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEMPA-0004I3-S7 for emacs-devel@gnu.org; Sun, 12 Jul 2015 14:55:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZEMP6-0004uW-Gh for emacs-devel@gnu.org; Sun, 12 Jul 2015 14:55:12 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:40842) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEMP6-0004tI-Ae for emacs-devel@gnu.org; Sun, 12 Jul 2015 14:55:08 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZEMP4-0004NB-CO for emacs-devel@gnu.org; Sun, 12 Jul 2015 20:55:06 +0200 Original-Received: from 193.106.183.18 ([193.106.183.18]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 12 Jul 2015 20:55:06 +0200 Original-Received: from wavexx by 193.106.183.18 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 12 Jul 2015 20:55:06 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 26 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 193.106.183.18 X-Enigmail-Draft-Status: N1110 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.0 In-Reply-To: <559F8153.6020805@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:187832 Archived-At: On 10/07/15 10:24, Vaidheeswaran C wrote: > (defun highlight-buffer-footer () > (interactive) > (custom-set-variables > '(buffer-face-mode-face (quote buffer-footer))) > (buffer-face-mode 1) > (overlay-put (make-overlay (point-min) (point-max)) 'face 'buffer-text)) Huh, that's pretty nasty indeed. > If you are only intereseted in catching whitespaces at the tail end of > the buffer, you can turn on the `empty' style in M-x whitespace-mode > and M-x whitespace-toggle-options. Not quite. In a hack I'm doing, I want to define a binary boundary in the text (in the sense: above/below), and I do that by changing the background color of one of the two. I just overlay the region I'm interested in, but I want to extend the background color of the face to the end of the frame, since it creates a visually ambiguous situation otherwise (besides not looking good). Maybe I can just temporarily extend the buffer content instead, but I would loose the EOF fringe indicator and need to calculate how much lines I need to append...