help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ELISP] Detect focus on emacs.


From: Michael Cadilhac
Subject: Re: [ELISP] Detect focus on emacs.
Date: Mon, 02 May 2005 23:21:52 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>>   I need to know if emacs has the global input focus, that's to say,
>>   if emacs' window is the selected one in the wm.
>
> I don't think you can do that from elisp as of Emacs-22.
> Patches are welcome to add the functionality, of course,

    Ok, why not !

    A   function   like  `window-focus-p',   that   will  check   with
  XGetInputFocus(3x)/GetForegroundWindow(w32)  if  the current  window
  has the input focus ?

    So I'll  have a try. BTW,  is there guidelines  for emacs patches,
  some must-know coding style or whatever like that somewhere ?

-- 
    Michael Cadilhac, a.k.a. Micha [mika] |    _ coin     _ coin     _ angle
                    Epita/LRDE promo 2007 |  >(')____,  >(')____,  >(')____,
  2 rue de la Convention | 01.46.70.90.75 |    (` =~~/    (` =~~/    (` =~~/
94270 Le Kremlin Bicetre | 06.23.20.31.30 | ~^~^`---'~^~^~^`---'~^~^~^`---'~^~^




reply via email to

[Prev in Thread] Current Thread [Next in Thread]