emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [PATCH] frame.c: focus hooks


From: Drew Adams
Subject: RE: [PATCH] frame.c: focus hooks
Date: Sun, 17 Nov 2013 14:33:43 -0800 (PST)

> I'd like to contribute the attached patch, which adds hooks into
> gain and loss of focus events.
> 
> This allows saving all buffers on loss of focus.  (Alt-tabbing
> between an editor and browser is a popular workflow for web
> programmers.)
> 
> It also allows reversion of buffers on regain of focus, convenient
> if one is switching between Emacs and another editor.
>
> People will probably find other handy uses for these hooks.

Sounds useful.

Is this only for a focus switch between Emacs (any frame) and some
other application?  Or is it also for a focus switch from one Emacs
frame to another.

(I hope it is the former, which is what you describe in your example
use cases.)



reply via email to

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