From: Joe Corneli <jcorneli@math.utexas.edu>
Subject: Re: [ELISP] Detect focus on emacs.
Date: Mon, 02 May 2005 22:09:44 -0500 [thread overview]
Message-ID: <E1DSnn6-00007R-00@lab1.ma.utexas.edu> (raw)
In-Reply-To: <877jihb9xr.fsf@mahaena.lrde> (message from Michael Cadilhac on Mon, 02 May 2005 23:21:52 +0200)
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
next prev parent reply other threads:[~2005-05-03 3:09 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-25 22:47 [ELISP] Detect focus on emacs Micha
2005-04-27 10:10 ` Micha
2005-04-27 12:10 ` Peter Dyballa
[not found] ` <mailman.3175.1114604433.2895.help-gnu-emacs@gnu.org>
2005-04-27 17:41 ` Mathias Dahl
2005-04-27 19:08 ` Micha
2005-05-02 13:50 ` rgb
2005-05-03 13:15 ` Mathias Dahl
2005-05-03 16:57 ` rgb
2005-05-02 0:38 ` [ELISP] " Stefan Monnier
2005-05-02 21:21 ` Michael Cadilhac
2005-05-03 3:09 ` Joe Corneli [this message]
2005-05-03 19:33 ` Peter Dyballa
2005-05-04 20:29 ` Drew Adams
2005-05-04 21:15 ` Peter Dyballa
2005-05-04 21:31 ` Drew Adams
2005-05-04 22:28 ` Peter Dyballa
[not found] ` <mailman.3325.1115241750.2819.help-gnu-emacs@gnu.org>
2005-05-04 21:44 ` Michael Cadilhac
[not found] ` <mailman.3162.1115148898.2819.help-gnu-emacs@gnu.org>
2005-05-04 19:57 ` Michael Cadilhac
2005-05-04 20:03 ` Michael Cadilhac
2005-05-05 2:53 ` Joe Corneli
[not found] ` <mailman.3390.1115261851.2819.help-gnu-emacs@gnu.org>
2005-05-05 5:30 ` David Kastrup
[not found] ` <mailman.1224.1115069322.2819.help-gnu-emacs@gnu.org>
2005-05-03 8:56 ` Tim X
2005-05-04 3:46 ` Joe Corneli
2005-05-04 15:56 ` Kevin Rodgers
2005-05-04 20:13 ` Michael Cadilhac
2005-05-03 23:24 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1DSnn6-00007R-00@lab1.ma.utexas.edu \
--to=jcorneli@math.utexas.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.