From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lowell Gilbert Newsgroups: gmane.emacs.help Subject: Re: Is there a hook when current window or buffer changes? Date: Tue, 02 Apr 2013 15:43:03 -0400 Organization: A noiseless patient Spider Message-ID: <444nfoafco.fsf@lowell-desk.lan> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1364934774 19177 80.91.229.3 (2 Apr 2013 20:32:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Apr 2013 20:32:54 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Apr 02 22:33:22 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 1UN7tQ-0007Dc-Jw for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Apr 2013 22:33:20 +0200 Original-Received: from localhost ([::1]:57062 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UN7t1-0007o7-SW for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Apr 2013 16:32:55 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 14 Injection-Info: mx05.eternal-september.org; posting-host="987c50db848b35afff7deb022985ba62"; logging-data="5716"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18B5bjdZ02TqTDIZ7cK4oaW" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) Cancel-Lock: sha1:UhaX/CBOZZ349BEHCwxWes7LWk0= sha1:PMDlt3iwjyh67ADh+inJpHdjnTA= Original-Xref: usenet.stanford.edu gnu.emacs.help:197640 X-Mailman-Approved-At: Tue, 02 Apr 2013 16:32:41 -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:89906 Archived-At: Steven Degutis writes: > Advising functions is limited. For example, if you select a window with > your mouse, no function is called interactively, it just changes the window. mouse-leave-buffer-hook? mouse-select-window? mouse-drag-region? > Maybe I can use the same hook modeline uses to know how to color itself > active or inactive? Not a good idea. A lot of the modeline handling isn't done in lisp.