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

[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



reply via email to

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