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: Nicolas Richard
Subject: Re: How to determine (from Elisp) whether the Emacs frame has focus?
Date: Mon, 16 Nov 2015 15:08:46 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Marcin Borkowski <mbork@mbork.pl> writes:
> Of course. However, what I really mean is not exactly
> (current-buffer), but "the buffer I'm working in now". This means that
> if e.g. current-buffer is the minibuffer (as might be the case during
> search or M-x or whatever), I would prefer /the buffer I'll get back
> to when I finish doing whatever I'm doing in the minibuffer/,

I think you want (window-buffer (minibuffer-selected-window))

-- 
Nico.



reply via email to

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