From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.help Subject: Re: Highlighting current window Date: Wed, 04 Jul 2012 11:18:56 +0200 Message-ID: <4FF40A80.6090307@gmx.at> References: <4FF01318.9010407@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1341394650 21165 80.91.229.3 (4 Jul 2012 09:37:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 4 Jul 2012 09:37:30 +0000 (UTC) Cc: f@mazzo.li, help-gnu-emacs@gnu.org To: Le Wang Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 04 11:37:27 2012 Return-path: Envelope-to: geh-help-gnu-emacs@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 1SmM1W-0004Hk-IM for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Jul 2012 11:37:26 +0200 Original-Received: from localhost ([::1]:55068 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmLjr-0008Pq-Gz for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Jul 2012 05:19:11 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51519) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SmLjg-0008BQ-Kn for help-gnu-emacs@gnu.org; Wed, 04 Jul 2012 05:19:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SmLjb-00013u-VY for help-gnu-emacs@gnu.org; Wed, 04 Jul 2012 05:19:00 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:33132) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SmLjb-000135-L3 for help-gnu-emacs@gnu.org; Wed, 04 Jul 2012 05:18:55 -0400 Original-Received: (qmail invoked by alias); 04 Jul 2012 09:18:52 -0000 Original-Received: from 62-47-38-82.adsl.highway.telekom.at (EHLO [62.47.38.82]) [62.47.38.82] by mail.gmx.net (mp040) with SMTP; 04 Jul 2012 11:18:52 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1/O6C5gi6HOhEreHjvZnS5b7ZTRmf5nzgBHuBgjyl 1irtwEUmZpRWsO In-Reply-To: X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 213.165.64.22 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85648 Archived-At: > 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