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: Stefan Monnier
Subject: Re: How to determine (from Elisp) whether the Emacs frame has focus?
Date: Sat, 14 Nov 2015 16:10:28 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> AFAIU, these hooks are best suited to situations like "run LaTeX on
> switching to a pdf viewer".

What makes you think so?

> 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.


        Stefan




reply via email to

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