From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Ted Zlatanov <tzz@lifelogs.com>
Cc: emacs-devel@gnu.org
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 [thread overview]
Message-ID: <jwvwslycmi3.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <86od7apaxl.fsf@lifelogs.com> (Ted Zlatanov's message of "Tue, 13 May 2008 08:53:42 -0500")
> 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
prev parent reply other threads:[~2008-05-13 14:26 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-13 13:53 is there a hook for when a buffer loses/gains the cursor or the frame loses/gains focus? Ted Zlatanov
2008-05-13 14:26 ` Stefan Monnier [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvwslycmi3.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=tzz@lifelogs.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).