From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "rgb" Newsgroups: gmane.emacs.help Subject: Re: Detect focus on emacs. Date: 3 May 2005 09:57:05 -0700 Organization: http://groups.google.com Message-ID: <1115139425.462031.118380@z14g2000cwz.googlegroups.com> References: <87acnm5v9h.fsf@mahaena.lrde><87y8b47coy.fsf@mahaena.lrde> <874qdsjav6.fsf@mahaena.lrde> <1115041811.936210.104400@f14g2000cwb.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1115230604 12559 80.91.229.2 (4 May 2005 18:16:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 4 May 2005 18:16:44 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 04 20:16:41 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DTOP3-0005iE-RO for geh-help-gnu-emacs@m.gmane.org; Wed, 04 May 2005 20:15:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DTOTc-0005SI-72 for geh-help-gnu-emacs@m.gmane.org; Wed, 04 May 2005 14:20:04 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!z14g2000cwz.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: 198.74.20.118 Original-X-Trace: posting.google.com 1115139430 25483 127.0.0.1 (3 May 2005 16:57:10 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 3 May 2005 16:57:10 +0000 (UTC) In-Reply-To: User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: z14g2000cwz.googlegroups.com; posting-host=198.74.20.118; posting-account=C7LM4w0AAAD23IRuMuUUJVCLQTuHhTK8 Original-Xref: shelby.stanford.edu gnu.emacs.help:130624 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:26276 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:26276 Mathias Dahl wrote: > "rgb" writes: > > >> The aim is to allow the user to be warned with a > > `xmessage(1)' > >> that some message arrived, but only if Emacs doesn't have the > > focus. > >> > > > > Any frame of Emacs or some particular frame? > > My guess is the frame with a buffer where a new IM message is > displayed. That was my thought too but the requirements, as stated, would be so much easier to implement. Personally I think that if one were to go thru the trouble of implementing a solution it should just provide a hook that is called upon loosing focus and another upon getting focus. Some hook code could then maintain a focus flag but I'm sure more cool & useful stuff would spring from the hook than the flag.