[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to determine (from Elisp) whether the Emacs frame has focus?
From: |
Marcin Borkowski |
Subject: |
Re: How to determine (from Elisp) whether the Emacs frame has focus? |
Date: |
Mon, 16 Nov 2015 18:00:23 +0100 |
User-agent: |
mu4e 0.9.15; emacs 25.0.50.1 |
On 2015-11-14, at 22:10, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
>> AFAIU, these hooks are best suited to situations like "run LaTeX on
>> switching to a pdf viewer".
>
> What makes you think so?
Well, probably my tunnel vision;-).
>> Would it be possible to introduce a function like (emacs-has-focus-p)
>> for that? Would it make sense?
>
> Of course. But its implementation would most likely be based on
> focus-*-hook anyway.
Assuming they would be written in Elisp and not in C. But (as I've
written before) it probably doesn't make sense to add them to the core.
> Stefan
Best,
--
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University
- Re: How to determine (from Elisp) whether the Emacs frame has focus?, (continued)
- Re: How to determine (from Elisp) whether the Emacs frame has focus?, Eli Zaretskii, 2015/11/14
- Re: How to determine (from Elisp) whether the Emacs frame has focus?, Random832, 2015/11/14
- Re: How to determine (from Elisp) whether the Emacs frame has focus?, Eli Zaretskii, 2015/11/14
- Re: How to determine (from Elisp) whether the Emacs frame has focus?, Marcin Borkowski, 2015/11/14
- Re: How to determine (from Elisp) whether the Emacs frame has focus?, Eli Zaretskii, 2015/11/14
- Re: How to determine (from Elisp) whether the Emacs frame has focus?, Marcin Borkowski, 2015/11/16
- Re: How to determine (from Elisp) whether the Emacs frame has focus?, Eli Zaretskii, 2015/11/16
- Re: How to determine (from Elisp) whether the Emacs frame has focus?, Nicolas Richard, 2015/11/16
- Re: How to determine (from Elisp) whether the Emacs frame has focus?, Marcin Borkowski, 2015/11/16
- Re: How to determine (from Elisp) whether the Emacs frame has focus?, Stefan Monnier, 2015/11/16
- Re: How to determine (from Elisp) whether the Emacs frame has focus?,
Marcin Borkowski <=
Re: How to determine (from Elisp) whether the Emacs frame has focus?, Michael Heerdegen, 2015/11/14
Re: How to determine (from Elisp) whether the Emacs frame has focus?, Marcin Borkowski, 2015/11/14
Re: How to determine (from Elisp) whether the Emacs frame has focus?, Dan Espen, 2015/11/16