From: Yuri D'Elia <wavexx@thregr.org>
To: emacs-devel@gnu.org
Subject: Re: Background color past the end of the buffer
Date: Sun, 12 Jul 2015 20:54:59 +0200 [thread overview]
Message-ID: <mnud64$ahg$1@ger.gmane.org> (raw)
In-Reply-To: <559F8153.6020805@gmail.com>
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...
next prev parent reply other threads:[~2015-07-12 18:54 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-09 18:36 Background color past the end of the buffer Yuri D'Elia
2015-07-10 8:24 ` Vaidheeswaran C
2015-07-12 18:54 ` Yuri D'Elia [this message]
2015-07-12 19:08 ` Achim Gratz
2015-07-12 19:37 ` Yuri D'Elia
2015-07-12 19:44 ` Yuri D'Elia
2015-07-12 19:56 ` Eli Zaretskii
2015-07-12 20:02 ` Yuri D'Elia
2015-07-13 2:33 ` Eli Zaretskii
2015-07-13 3:34 ` Vaidheeswaran C
2015-07-13 14:45 ` Eli Zaretskii
2015-07-12 20:03 ` Achim Gratz
2015-07-12 20:07 ` Yuri D'Elia
2015-07-13 2:08 ` Vaidheeswaran C
2015-08-07 17:22 ` Yuri D'Elia
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='mnud64$ahg$1@ger.gmane.org' \
--to=wavexx@thregr.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.