help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: How to get asynchronous notifications from Emacs ?


From: Matthew Flaschen
Subject: Re: How to get asynchronous notifications from Emacs ?
Date: Sun, 25 Feb 2007 09:16:33 -0500
User-agent: Thunderbird 1.5.0.9 (X11/20070104)

David Soulayrol wrote:
> Hello,
> 
> I'm looking for a way to obtain asynchronous notifications
> of emacs actions, like: buffer was closed, displayed buffer has changed,
> and so on.

Emacs has hooks for many actions.  For example, kill-buffer-hook is run
when a buffer is closed.  Run C-h f on kill-buffer-hook and add-hook,
and C-h v on after-change-functions.  See also
http://www.delorie.com/gnu/docs/elisp-manual-21/elisp_540.html and
http://www.gnu.org/software/emacs/manual/html_node/Hooks.html .

Remember, emacs can do anything if you ask nicely enough.  Theoretical
limitations do not exist as with other programs. ;)

Matthew Flaschen

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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