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 09:52:22 -0500 Message-ID: References: <20130403144705.GA2375@earth> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec544f03068af0904d9760047 X-Trace: ger.gmane.org 1365000787 22306 80.91.229.3 (3 Apr 2013 14:53:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Apr 2013 14:53:07 +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 16:53:32 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 1UNP48-000629-Aw for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Apr 2013 16:53:32 +0200 Original-Received: from localhost ([::1]:45650 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNP3j-0006OJ-KS for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Apr 2013 10:53:07 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58914) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNP3A-0005tU-S7 for help-gnu-emacs@gnu.org; Wed, 03 Apr 2013 10:52:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UNP32-0006dx-DJ for help-gnu-emacs@gnu.org; Wed, 03 Apr 2013 10:52:32 -0400 Original-Received: from mail-pa0-f44.google.com ([209.85.220.44]:55660) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNP32-0006dk-4C for help-gnu-emacs@gnu.org; Wed, 03 Apr 2013 10:52:24 -0400 Original-Received: by mail-pa0-f44.google.com with SMTP id bi5so946889pad.3 for ; Wed, 03 Apr 2013 07:52:23 -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=ttRCFNG/b3sTpgjEZGFGyiVWjkYNdDf1+pmGbHXDTQw=; b=fCJjOaEPB0a44oCiz1uZB1VWPpwhgHv2S5AkDr3Tvcah34rvOji7VOGHrxS8oYLvRw PNYWU8Ys+arSQJ50YEr72ssrGS670p7+urdchVjmV4QfJFGmDN+OtYKg0spqfuacnX1Y mQt2g82EhXEnup7rSfCpDaBk/n7XO11jDGSJDZRB6n1Ysi3SUwxQtLbhSienzNjZRLYe wv2wHmAZaeKitpNBh1VTIlVS8z014AXoqcy1Q0L4OuW3z0IiegRYfUqmbrAEv8ZaQ9wS KI4Y8xtRhhD7wd6k6JmCc1VCo0YKCbpSpAWs2Q6lWHRT3/XpipjX4FWQ2DimIoh2zF05 ry+Q== X-Received: by 10.68.40.165 with SMTP id y5mr2861029pbk.218.1365000743069; Wed, 03 Apr 2013 07:52:23 -0700 (PDT) Original-Received: by 10.70.6.100 with HTTP; Wed, 3 Apr 2013 07:52:22 -0700 (PDT) In-Reply-To: <20130403144705.GA2375@earth> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.220.44 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:89936 Archived-At: --bcaec544f03068af0904d9760047 Content-Type: text/plain; charset=ISO-8859-1 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 > > > > --bcaec544f03068af0904d9760047 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Okay okay I admit, that was an arrogant and pointless thin= g to say. Forgive me.

-Steven


On Wed, Apr 3, 201= 3 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 l= ot more
> efficient and faster: https://github.com/sdegutis/auto-dim-ot= her-buffers.el
>
> There's one bug left that I don't know how to fix: for some re= ason,
> anything echoed in the echo area is dimmed. Not really sure why or eve= n how.
>
> Why didn't anything like this exist all this time? I've checke= d
> 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 <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 :backgrou= nd "black")
> >
> > =A0 =A0 =A0 (defun sd/prominantize-current-buffer (fn)
> > =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)
> > =A0 =A0 =A0 (sd/advise-window-changing-fn next-buffer)
> > =A0 =A0 =A0 (sd/advise-window-changing-fn previous-buffer)
> > =A0 =A0 =A0 (sd/advise-window-changing-fn quit-window)
> > =A0 =A0 =A0 (sd/advise-window-changing-fn mouse-select-window)) > >
> > -Steven
> >

--bcaec544f03068af0904d9760047--