[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: is there a hook for when a buffer loses/gains the cursor or the fram
From: |
Stefan Monnier |
Subject: |
Re: is there a hook for when a buffer loses/gains the cursor or the frame loses/gains focus? |
Date: |
Tue, 13 May 2008 10:26:47 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
> http://www.postal-code.com/binarycode/2008/05/12/save-should-die/
> go me thinking that it would be nice to save every time the buffer loses
> the cursor. Is there a way in Emacs to do that? Similarly, I'd like to
> save every time the frame loses focus. I didn't find any hooks or
> functions for this.
I don't think there is such a thing yet. We have a `switch-frame'
event, but it's only triggered when you enter another frame, not when
you leave a frame (if your whole display is covered with nothing but
Emacs frames, it's equivalent, of course, but not in general).
Stefan