From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: Hooks for new buffers? Date: Fri, 05 Apr 2013 13:09:45 +0200 Message-ID: <515EB0F9.8010007@easy-emacs.de> References: <515E8F86.7090400@easy-emacs.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1365278804 32003 80.91.229.3 (6 Apr 2013 20:06:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Apr 2013 20:06:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 06 22:06:45 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 1UOZJy-00023j-Ap for geh-help-gnu-emacs@m.gmane.org; Sat, 06 Apr 2013 22:02:42 +0200 Original-Received: from localhost ([::1]:60902 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UO4VW-0001sR-3Q for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Apr 2013 07:08:34 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38026) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UO4VI-0001oY-Mj for help-gnu-emacs@gnu.org; Fri, 05 Apr 2013 07:08:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UO4VH-0003Mq-7M for help-gnu-emacs@gnu.org; Fri, 05 Apr 2013 07:08:20 -0400 Original-Received: from moutng.kundenserver.de ([212.227.17.9]:61897) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UO4VG-0003MP-Tx for help-gnu-emacs@gnu.org; Fri, 05 Apr 2013 07:08:19 -0400 Original-Received: from [192.168.178.21] (brln-4db9a8f7.pool.mediaWays.net [77.185.168.247]) by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis) id 0MfVBH-1Tzf6Q0mq3-00P6QV; Fri, 05 Apr 2013 13:08:17 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130307 Thunderbird/17.0.4 In-Reply-To: <515E8F86.7090400@easy-emacs.de> X-Provags-ID: V02:K0:W7/cQgxMu/koa7UBcP5NJAI4wOWq7DOIxoOQG+Znd8c o3VrDZMEZZYPDBCCMNkPWvMjeZyQXnpQxgFtpgTqiykoVPTtMl tnAUfWa2ZxTWj9tdY3BMPZziu10kg1uIFy+vstMhfOxdDHJLwc ydkkGbDSJrkN8UcKK58McDUS4I73sd7hP9psAwAGLNFsaCo7/t vcE5trBuIqwBoBgOcei3MYrSp3CsTD8KTM/ERzsUy739Iu8UFy U6dQZSbuq6h00sIuB9Fu50tKjRdl65L5ExQ4MsMU/hbDO3mLmp Fhu502uBnoWm5mCr7HQJ/QI6yB0d4fWFteZlMRWGuhAuQnE8tB zMm2u0eCdwS0COIEo7xI1/UhEfpyw/S/Vbtsvh2Kq X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.17.9 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:90030 Archived-At: Am 05.04.2013 10:47, schrieb Andreas Röhler: > Am 04.04.2013 22:12, schrieb Steven Degutis: >> I wrote auto-dim-other-buffers.el ( >> https://github.com/sdegutis/auto-dim-other-buffers.el) a few days ago, >> which applies a "dimmed" face to non-current buffers. >> >> It adds to post-command-hook and after-change-major-mode-hook, the first as >> a catch-all "something changed" and the second as a hacky way of saying "a >> new buffer just got created". >> >> This mostly works. But sometimes new buffers are created that don't change >> major modes. > > Hi Steven, > > AFAIU it's quite simple: there is only one buffer current, where all other will be subject to "dimmed". > If right, solution will not be to look what others do, but run-with-idle timer a routine dimming > everything except the current buffer. > > Just my thoght, > > Andreas > Apropos if some other buffers like *Help* should not be dimmed though, register them in a list.