From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: `auto-dim-other-windows` -- scrutiny invited Date: 4 Apr 2013 07:27:20 GMT Message-ID: References: <87ehersl1c.fsf@wanadoo.es> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1365107954 31959 80.91.229.3 (4 Apr 2013 20:39:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Apr 2013 20:39:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 04 22:39:42 2013 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 1UNqwg-0003RZ-Fz for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Apr 2013 22:39:42 +0200 Original-Received: from localhost ([::1]:55605 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNqwH-0002Z2-K7 for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Apr 2013 16:39:17 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 38 Original-X-Trace: individual.net Gu1M3Zd/p/xtv3t8nxkD3wagElrv5FwTGCBFaEi/MHqWKQe49X Cancel-Lock: sha1:UrqNy6HNxIk5xNEKMntBXUwMO8g= Mail-Copies-To: nobody X-Editor: Emacs of course! User-Agent: slrn/pre1.0.0-18 (Linux) Original-Xref: usenet.stanford.edu gnu.emacs.help:197709 X-Mailman-Approved-At: Thu, 04 Apr 2013 16:37:58 -0400 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:89993 Archived-At: Steven Degutis wrote: > --bcaec52e5b73a191b104d976fe3f > Content-Type: text/plain; charset=ISO-8859-1 > Content-Transfer-Encoding: quoted-printable > > Hmm, it seems that using overlays could allow the dimming to be per-window > instead of per-buffer. > > But overlays have a few quirks. > > First, they're still per-buffer. You can copy them around different > buffers, but each buffer has to have its own. So if we were going to use > them to dim other windows, every buffer would have to always have an extra > overlay in it. i only skimmed the rest of this thread so perhaps i'm suggesting something that's already been mentioned, but couldn't you do it the other way around? instead of dimming all other windows, why not highlight the selected one? apply some magic to the default font perhaps and then undo that effect is the selected window. i have no idea if something like that might work, but it may be worth a look. another hint might be to look at ace-jump-mode: it dims everything in the current frame except for a number of jump targets. there might be some useful ideas in there. finally, you might want to consider that there are windows whose contents are meant to be seen even if they're not selected. i don't know of any good heuristic to find those windows, so you may want to consider adding a customise option that the user can use to set his or her favourite "do not dim" buffers, which are not dimmed when displayed in some non-selected window (preferably a list of regexps, i'd say). -- Joost Kremers joostkremers@fastmail.fm Selbst in die Unterwelt dringt durch Spalten Licht EN:SiS(9)