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: Wed, 3 Apr 2013 10:09:59 -0500 Message-ID: References: <20130403144705.GA2375@earth> <20130403145552.GB2375@earth> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bf0c1b866717b04d9763f6d X-Trace: ger.gmane.org 1365001827 8060 80.91.229.3 (3 Apr 2013 15:10:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Apr 2013 15:10:27 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Mark Skilbeck Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 03 17:10:55 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 1UNPKt-0001Yh-Es for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Apr 2013 17:10:51 +0200 Original-Received: from localhost ([::1]:50586 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNPKU-0004x3-Dc for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Apr 2013 11:10:26 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35720) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNPKC-0004tz-1C for help-gnu-emacs@gnu.org; Wed, 03 Apr 2013 11:10:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UNPK5-000583-0q for help-gnu-emacs@gnu.org; Wed, 03 Apr 2013 11:10:07 -0400 Original-Received: from mail-pd0-f172.google.com ([209.85.192.172]:63426) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNPK4-00057i-OT for help-gnu-emacs@gnu.org; Wed, 03 Apr 2013 11:10:00 -0400 Original-Received: by mail-pd0-f172.google.com with SMTP id 5so903167pdd.3 for ; Wed, 03 Apr 2013 08:10:00 -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=v5nqs84IXfvnGUXAG+273MYhwdmpWWOS2SjTY3u9X2E=; b=0qR9dpYHRrBsDWrE5HTWnoQaGzTQYpqoxD3fV+dmAzukg+0uZvnb2f2bfY/tP8D3by +kKpXHXMpEpYYdmfbjbKczls0wBRk9w24EwAHfFzgWDBYluLj3uewqbNelSTG4hawJPv o+fHzxQFfBCmD9cLhV7MQn3y+PChdjFax5Pmj7POTaqi40AFhRPNmup6/d83mf7SDHV2 RMrsY7j85NZBjvZYb8cQRZtTkjmPvXlbvebSzMmsf4Orz6BWZ95+yk2zcXuW6UYd8g5m 32gpR+qUbdY/fF8bLdAW16sE83aGMaYetu92vkKDeMlb+tit9r3F3VePh/l9UBFFg17i O3RA== X-Received: by 10.66.117.196 with SMTP id kg4mr3718311pab.95.1365001799887; Wed, 03 Apr 2013 08:09:59 -0700 (PDT) Original-Received: by 10.70.6.100 with HTTP; Wed, 3 Apr 2013 08:09:59 -0700 (PDT) In-Reply-To: <20130403145552.GB2375@earth> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.192.172 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:89938 Archived-At: --047d7bf0c1b866717b04d9763f6d Content-Type: text/plain; charset=ISO-8859-1 I forgive you of course. :) By the way, I announced it too soon: the version in melpa is still a day old so it's pretty inefficient and buggy and doesn't match up to the one in github, so you may want to wait an hour or so before installing to let melpa catch up. :( -Steven On Wed, Apr 3, 2013 at 9:55 AM, Mark Skilbeck wrote: > Apologies for being an ass in response. > > - mgsks (a new auto-dim-other-buffers user) > > On Wed, Apr 03, 2013 at 09:52:22AM -0500, Steven Degutis wrote: > > Okay okay I admit, that was an arrogant and pointless thing to say. > Forgive > > me. > > > > -Steven > > > > > > On Wed, Apr 3, 2013 at 9:47 AM, Mark Skilbeck wrote: > > > > > On Wed, Apr 03, 2013 at 09:44:07AM -0500, Steven Degutis wrote: > > > > It's now called `auto-dim-other-buffers` and it just got a whole lot > more > > > > efficient and faster: > > > https://github.com/sdegutis/auto-dim-other-buffers.el > > > > > > > > There's one bug left that I don't know how to fix: for some reason, > > > > anything echoed in the echo area is dimmed. Not really sure why or > even > > > how. > > > > > > > > Why didn't anything like this exist all this time? I've checked > > > > stackoverflow for something like this months ago and the "chosen > answer" > > > > was to just use a more distinct modeline. But this is much better. > > > > > > You're a real hero. > > > > > > > > > > > -Steven > > > > > > > > > > > > On Tue, Apr 2, 2013 at 4:06 PM, Steven Degutis > > > wrote: > > > > > > > > > (defun auto-dim-other-windows () > > > > > (make-face 'sd/dimmed-font) > > > > > (set-face-attribute 'sd/dimmed-font nil :background "black") > > > > > > > > > > (defun sd/prominantize-current-buffer (fn) > > > > > (buffer-face-set 'sd/dimmed-font) > > > > > (funcall fn) > > > > > (buffer-face-set nil)) > > > > > > > > > > (defmacro sd/advise-window-changing-fn (fn) > > > > > `(defadvice ,fn (around window-changing-fn-advice activate) > > > > > (sd/prominantize-current-buffer (lambda () ad-do-it)))) > > > > > > > > > > (sd/advise-window-changing-fn other-window) > > > > > (sd/advise-window-changing-fn other-frame) > > > > > (sd/advise-window-changing-fn next-buffer) > > > > > (sd/advise-window-changing-fn previous-buffer) > > > > > (sd/advise-window-changing-fn quit-window) > > > > > (sd/advise-window-changing-fn mouse-select-window)) > > > > > > > > > > -Steven > > > > > > > > > --047d7bf0c1b866717b04d9763f6d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I forgive you of course. :)

By the way,= I announced it too soon: the version in melpa is still a day old so it'= ;s pretty inefficient and buggy and doesn't match up to the one in gith= ub, so you may want to wait an hour or so before installing to let melpa ca= tch up. :(

-Steven


On Wed, Apr 3, 2013 at 9:55 AM, = Mark Skilbeck <m@iammark.us> wrote:
Apologies for being an ass in response.

- mgsks (a new auto-dim-other-buffers user)

On Wed, Apr 03, 2013 at 09:52:22AM -0500, Steven Degutis wrote:
> Okay okay I admit, that was an arrogant and pointless thing to say. Fo= rgive
> me.
>
> -Steven
>
>
> On Wed, Apr 3, 2013 at 9:47 AM, Mark Skilbeck <m@iammark.us> wrote:
>
> > On Wed, Apr 03, 2013 at 09:44:07AM -0500, Steven Degutis wrote: > > > It's now called `auto-dim-other-buffers` and it just got= a whole lot more
> > > efficient and faster:
> > https://github.com/sdegutis/auto-dim-other-buffers.el
> > >
> > > There's one bug left that I don't know how to fix: f= or some reason,
> > > anything echoed in the echo area is dimmed. Not really sure = why or even
> > how.
> > >
> > > Why didn't anything like this exist all this time? I'= ;ve checked
> > > stackoverflow for something like this months ago and the &qu= ot;chosen answer"
> > > was to just use a more distinct modeline. But this is much b= etter.
> >
> > You're a real hero.
> >
> > >
> > > -Steven
> > >
> > >
> > > On Tue, Apr 2, 2013 at 4:06 PM, Steven Degutis <
sbdegutis@gmail.com>
> > wrote:
> > >
> > > > =A0 =A0 (defun auto-dim-other-windows ()
> > > > =A0 =A0 =A0 (make-face 'sd/dimmed-font)
> > > > =A0 =A0 =A0 (set-face-attribute 'sd/dimmed-font nil= :background "black")
> > > >
> > > > =A0 =A0 =A0 (defun sd/prominantize-current-buffer (fn)<= br> > > > > =A0 =A0 =A0 =A0 (buffer-face-set 'sd/dimmed-font) > > > > =A0 =A0 =A0 =A0 (funcall fn)
> > > > =A0 =A0 =A0 =A0 (buffer-face-set nil))
> > > >
> > > > =A0 =A0 =A0 (defmacro sd/advise-window-changing-fn (fn)=
> > > > =A0 =A0 =A0 =A0 `(defadvice ,fn (around window-changing= -fn-advice activate)
> > > > =A0 =A0 =A0 =A0 =A0 =A0(sd/prominantize-current-buffer = (lambda () ad-do-it))))
> > > >
> > > > =A0 =A0 =A0 (sd/advise-window-changing-fn other-window)=
> > > > =A0 =A0 =A0 (sd/advise-window-changing-fn other-frame)<= br> > > > > =A0 =A0 =A0 (sd/advise-window-changing-fn next-buffer)<= br> > > > > =A0 =A0 =A0 (sd/advise-window-changing-fn previous-buff= er)
> > > > =A0 =A0 =A0 (sd/advise-window-changing-fn quit-window)<= br> > > > > =A0 =A0 =A0 (sd/advise-window-changing-fn mouse-select-= window))
> > > >
> > > > -Steven
> > > >
> >

--047d7bf0c1b866717b04d9763f6d--