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: Bozhidar Batsov
Subject: Re: [PATCH] frame.c: focus hooks
Date: Sun, 17 Nov 2013 20:29:52 +0200

I welcome your idea! In fact I've been thinking for quite some time we needed something like this. I don't like the names of the hooks, however, since they don't seem particularly standard - usually the terminology used with focus is "focus gained" and "focus lost" (or "on focus" and "on lose focus").


On 17 November 2013 19:50, Brian Jenkins <address@hidden> wrote:
Hello.

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.

Best,
Brian Jenkins


reply via email to

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