all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Le Wang <l26wang@gmail.com>
Cc: f@mazzo.li, help-gnu-emacs@gnu.org
Subject: Re: Highlighting current window
Date: Wed, 04 Jul 2012 11:18:56 +0200	[thread overview]
Message-ID: <4FF40A80.6090307@gmx.at> (raw)
In-Reply-To: <CAM=K+iqTCPf7hQ+W2LMhbaX3CsepaXwCOpuhqxu9=bXP+8t2UA@mail.gmail.com>

 > Can you elaborate on the "better way" in 24?

The basic problem we have to solve is how to extend the window
background to the entire window and not only to the last buffer
position.  That's inherently what the after-string property of the
hiselwin overlay accomplishes.

Emacs 24.1 offers a better solution following the discussion of

bug#11068: 24.0.94; Face-remapped background does not extend to end of window

which you can find here:

http://lists.gnu.org/archive/html/bug-gnu-emacs/2012-03/msg00569.html

The solution has one drawback wrt to highlighting the selected window:
When the same buffer appears in the selected window _and_ in another
window, that other window will be highlighted too.

The solution is similar to the one proposed by Francesco Mazzoli: Show
the overlay only in the current buffer and give it a 'window property to
show it only in the selected window.

martin



  reply	other threads:[~2012-07-04  9:18 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-01  9:06 Highlighting current window martin rudalics
2012-07-04  1:20 ` Le Wang
2012-07-04  9:18   ` martin rudalics [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-06-30 10:30 Francesco Mazzoli
2012-06-30 18:23 ` Drew Adams
2012-06-30 19:30   ` Francesco Mazzoli
2012-06-30 20:16     ` Christopher Grubert
2012-07-01  1:22       ` Drew Adams
2012-07-01  1:48         ` Christopher Grubert
     [not found]       ` <mailman.3792.1341105740.855.help-gnu-emacs@gnu.org>
2012-07-01  1:56         ` Michael Heerdegen
2012-07-01 11:49       ` Francesco Mazzoli

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=4FF40A80.6090307@gmx.at \
    --to=rudalics@gmx.at \
    --cc=f@mazzo.li \
    --cc=help-gnu-emacs@gnu.org \
    --cc=l26wang@gmail.com \
    /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.