[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ELISP] Detect focus on emacs.
From: |
Joe Corneli |
Subject: |
Re: [ELISP] Detect focus on emacs. |
Date: |
Mon, 02 May 2005 22:09:44 -0500 |
Probably just the GNU Coding Standards. Expect to post the "patch" as
a stand-alone file first. See the GNU Emacs Sources mailing list or
Emacs Lisp List for many examples.
Neat sig by the way. What is "coin coin angle"? I've heard of "angle
side angle" and "side angle side". "coin coin angle" sounds like some
weird marriage of Mario Brothers and Trigonometry. I like it.
Stefan Monnier <monnier@iro.umontreal.ca> 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 |
~^~^`---'~^~^~^`---'~^~^~^`---'~^~^
_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
- Re: [ELISP] Detect focus on emacs., Stefan Monnier, 2005/05/02
- Re: [ELISP] Detect focus on emacs., Michael Cadilhac, 2005/05/02
- Re: [ELISP] Detect focus on emacs.,
Joe Corneli <=
- Re: [ELISP] Detect focus on emacs., Peter Dyballa, 2005/05/03
- RE: [ELISP] Detect focus on emacs., Drew Adams, 2005/05/04
- Re: [ELISP] Detect focus on emacs., Peter Dyballa, 2005/05/04
- RE: [ELISP] Detect focus on emacs., Drew Adams, 2005/05/04
- Re: [ELISP] Detect focus on emacs., Peter Dyballa, 2005/05/04
- Message not available
- Re: [ELISP] Detect focus on emacs., Michael Cadilhac, 2005/05/04
- Message not available
- Re: [ELISP] Detect focus on emacs., Michael Cadilhac, 2005/05/04
- Re: [ELISP] Detect focus on emacs., Michael Cadilhac, 2005/05/04
- Re: [ELISP] Detect focus on emacs., Joe Corneli, 2005/05/04
- Message not available
- Re: [ELISP] Detect focus on emacs., David Kastrup, 2005/05/05