From: Dieter Wilhelm <dieter@duenenhof-wilhelm.de>
Cc: help-gnu-emacs@gnu.org
Subject: Re: change the background color of a single window
Date: Tue, 19 Dec 2006 15:27:38 +0100 [thread overview]
Message-ID: <87vek87yg5.fsf@hans.local.net> (raw)
In-Reply-To: <f7ccd24b0612190608x3640da60jebb4e0c468b51539@mail.gmail.com> (Juanma Barranquero's message of "Tue\, 19 Dec 2006 15\:08\:56 +0100")
"Juanma Barranquero" <lekktu@gmail.com> writes:
> On 12/19/06, Dieter Wilhelm <dieter@duenenhof-wilhelm.de> wrote:
>
>> (I
>> wanted to show a helper window in the frame with another background to
>> distinguish the windows better while saving the mode line space);
>
> With a little elisp programming you could try using overlays. You can
> use one overlay over the whole buffer, and you could even limit the
> overlay to only being visible in a particular window (so other windows
> showing the same buffer would not display the overlay's effects).
>
> (let ((ov (make-overlay (point-min) (point-max) nil nil t)))
> (overlay-put ov 'window (get-buffer-window MY-BUFFER))
> (overlay-put ov 'face MY-BACKGROUND-FACE))
>
> Be sure to have a \n at the end of the last line, and it should work
> reasonably enough, I think.
>
Good idea, this might be the way to proceed. I'll try it, thanks.
--
Best wishes
H. Dieter Wilhelm
Darmstadt, Germany
next prev parent reply other threads:[~2006-12-19 14:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.2085.1166480958.2155.help-gnu-emacs@gnu.org>
2006-12-19 11:41 ` change the background color of a single window Johan Bockgård
2006-12-19 13:38 ` Dieter Wilhelm
2006-12-19 14:08 ` Juanma Barranquero
2006-12-19 14:27 ` Dieter Wilhelm [this message]
2006-12-18 22:24 Dieter Wilhelm
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vek87yg5.fsf@hans.local.net \
--to=dieter@duenenhof-wilhelm.de \
--cc=help-gnu-emacs@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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).