From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Micha Newsgroups: gmane.emacs.help Subject: Re: [ELISP] Detect focus on emacs. Date: Wed, 27 Apr 2005 21:08:45 +0200 Organization: Blacorp Message-ID: <874qdsjav6.fsf@mahaena.lrde> References: <87acnm5v9h.fsf@mahaena.lrde> <87y8b47coy.fsf@mahaena.lrde> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1114628697 12137 80.91.229.2 (27 Apr 2005 19:04:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 27 Apr 2005 19:04:57 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 27 21:04:55 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DQrpk-0000aR-1u for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Apr 2005 21:04:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DQrvi-0006Hl-M2 for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Apr 2005 15:10:38 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!proxad.net!infeed-2.proxad.net!news10-e.free.fr!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:larsox44kMTKZLQwWMH4Oto2Y8o= Original-Lines: 31 Original-NNTP-Posting-Date: 27 Apr 2005 21:08:44 MEST Original-NNTP-Posting-Host: 82.66.115.113 Original-X-Trace: 1114628924 news10-e.free.fr 16072 82.66.115.113:42108 Original-X-Complaints-To: abuse@proxad.net Original-Xref: shelby.stanford.edu gnu.emacs.help:130529 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:26097 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:26097 Mathias Dahl writes: > Peter Dyballa writes: > >> Am 27.04.2005 um 12:10 schrieb Micha: >> >>> No idea or workaround guys ? >>> >> >> XFocusChangeEvent(3)? XmImSetFocusValues(3)? XmProcessTraversal(3)? > > My guess is that Micha wanted to do this from elisp. The above seems > to be... something else... :) > > I would like to have this too. For example, I think jabber-activity.el > could make use of it. Right, Magnus? That's exactly my point, as I'm developing an IM client for another protocol. 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. And I really don't want to add an extra executable file that tells, with X functions, if it's the case :-/ -- Michael Cadilhac, a.k.a. Micha * + - - --. | -Epita 2007 - Ing 1 - CSI- @ r '@' ***** O `@ | | ,)´ (. ********* `(. | `-- - - ******************************************'