all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Juanma Barranquero" <lekktu@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: change the background color of a single window
Date: Tue, 19 Dec 2006 15:08:56 +0100	[thread overview]
Message-ID: <f7ccd24b0612190608x3640da60jebb4e0c468b51539@mail.gmail.com> (raw)
In-Reply-To: <87zm9k80qg.fsf@hans.local.net>

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.

                    /L/e/k/t/u

  reply	other threads:[~2006-12-19 14:08 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 [this message]
2006-12-19 14:27       ` Dieter Wilhelm
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f7ccd24b0612190608x3640da60jebb4e0c468b51539@mail.gmail.com \
    --to=lekktu@gmail.com \
    --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.
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.