From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Steven Degutis Newsgroups: gmane.emacs.help Subject: Re: `auto-dim-other-windows` -- scrutiny invited Date: Tue, 2 Apr 2013 18:19:47 -0500 Message-ID: References: <87vc84shhw.fsf@wanadoo.es> <87r4issey8.fsf@wanadoo.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bf0ccc82d93fa04d968f959 X-Trace: ger.gmane.org 1364944803 20102 80.91.229.3 (2 Apr 2013 23:20:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Apr 2013 23:20:03 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: =?ISO-8859-1?Q?=D3scar_Fuentes?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 03 01:20:31 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 1UNAVC-0002Zq-Ml for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Apr 2013 01:20:30 +0200 Original-Received: from localhost ([::1]:45407 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNAUn-0006Fp-VO for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Apr 2013 19:20:05 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58824) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNAUa-0006Ff-KQ for help-gnu-emacs@gnu.org; Tue, 02 Apr 2013 19:19:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UNAUW-0004ZF-KK for help-gnu-emacs@gnu.org; Tue, 02 Apr 2013 19:19:52 -0400 Original-Received: from mail-da0-x230.google.com ([2607:f8b0:400e:c00::230]:45690) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNAUW-0004Yo-Cr for help-gnu-emacs@gnu.org; Tue, 02 Apr 2013 19:19:48 -0400 Original-Received: by mail-da0-f48.google.com with SMTP id p8so390078dan.21 for ; Tue, 02 Apr 2013 16:19:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=xNIwnYAYKZ1IFViWPTb63r7AmacoKZsHgFsoNdJSYv8=; b=P2ZYafyB7Vp2MaoNm9nr0LzGgWBLOjjMb7ZLRoKm8Jh3yNt3Oak8Yw0A9mK1i4Zsc3 eOH9T6fYY5j5gd+rm3kZIGBvPLVURwIk973rCR9zj5TCa4uEmyX7AdSA1smRJerU3cZ8 ydsoahlyNM5vPFEiGBkIDtAQVBbgSM7+koYFoneO9fuQ0qByrxO6nyLWexYQCan8SW4m 2YnJ0UiJZDqcVFjq2MSGqNkeqwxfsJr5Kl2YSQnmoiPfBUAEuO7DdX3HZa3AXxGBIUxq PigX10NBYkwUvGFOC8H12s5rDzgVaNMJ4H7WBqIQK2v9G+O+db9bn6n6XYQ0j5aR0HFS gXtQ== X-Received: by 10.66.187.231 with SMTP id fv7mr27760590pac.46.1364944787181; Tue, 02 Apr 2013 16:19:47 -0700 (PDT) Original-Received: by 10.70.30.35 with HTTP; Tue, 2 Apr 2013 16:19:47 -0700 (PDT) In-Reply-To: <87r4issey8.fsf@wanadoo.es> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c00::230 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:89917 Archived-At: --047d7bf0ccc82d93fa04d968f959 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Originally I wanted to make it change the face per-window, so I could easily know which window I'm editing in. I even named it auto-dim-other-windows at first. Then I realized emacs only allows us to set per-buffer faces. It doesn't allow us to set per-window faces. Please file a bug asking for the feature to set per-window faces. For now, this is the best we can do with what emacs gives us. -Steven On Tue, Apr 2, 2013 at 6:14 PM, =D3scar Fuentes wrote: > Steven Degutis writes: > > > Thanks for the ideas. > > > > I've made an official github repo here: > > https://github.com/sdegutis/auto-dim-other-buffers.el/ > > > > The face is now customizable, with the black-background one being a dum= b > > default. This way, everyone can choose for themselves what will look > right, > > whether the background should get lighter or darker or maybe the text > color > > should instead. > > After trying your code from github, I have to ask: what is its purpose? > I thought that it is used for easily locating the window where the > cursor is. If that's true, you need to work with windows instead of > buffers (think of two windows showing the same buffer: as the buffer for > both is the "current" one, neither window is considered as "other" by > your code as long as the cursor is in one of them.) > > > --047d7bf0ccc82d93fa04d968f959 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Originally I wanted to make it change the face = per-window, so I could easily know which window I'm editing in. I even = named it auto-dim-other-windows at first.

Then I realized emacs only allows us to set per-buffer faces. It doesn'= t allow us to set per-window faces. Please file a bug asking for the featur= e to set per-window faces. For now, this is the best we can do with what em= acs gives us.

-Steven


On Tue, Apr 2, 2013 at 6:14 PM, =D3sc= ar Fuentes <ofv@wanadoo.es> wrote:
Steven Degutis <sbdegutis@gmail.com> writes:

> Thanks for the ideas.
>
> I've made an official github repo here:
> https://github.com/sdegutis/auto-dim-other-buffers.el/ >
> The face is now customizable, with the black-background one being a du= mb
> default. This way, everyone can choose for themselves what will look r= ight,
> whether the background should get lighter or darker or maybe the text = color
> should instead.

After trying your code from github, I have to ask: what is its purpos= e?
I thought that it is used for easily locating the window where the
cursor is. If that's true, you need to work with windows instead of
buffers (think of two windows showing the same buffer: as the buffer for both is the "current" one, neither window is considered as "= other" by
your code as long as the cursor is in one of them.)



--047d7bf0ccc82d93fa04d968f959--