unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Matthew Flaschen <matthew.flaschen@gatech.edu>
To: emacs <help-gnu-emacs@gnu.org>
Subject: Re: How to get asynchronous notifications from Emacs ?
Date: Sun, 25 Feb 2007 09:16:33 -0500	[thread overview]
Message-ID: <45E19A41.5030403@gatech.edu> (raw)
In-Reply-To: <45e1802d$0$28489$426a74cc@news.free.fr>


[-- Attachment #1.1: Type: text/plain, Size: 666 bytes --]

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 #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]

[-- Attachment #2: Type: text/plain, Size: 152 bytes --]

_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

  reply	other threads:[~2007-02-25 14:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-25 12:25 How to get asynchronous notifications from Emacs ? David Soulayrol
2007-02-25 14:16 ` Matthew Flaschen [this message]
     [not found] ` <mailman.81.1172413015.7795.help-gnu-emacs@gnu.org>
2007-02-26  8:43   ` David Soulayrol
2007-02-26  9:49     ` Matthew Flaschen
2007-02-26 16:42       ` Lennart Borgman (gmail)
     [not found]       ` <mailman.120.1172508176.7795.help-gnu-emacs@gnu.org>
2007-02-27 20:37         ` David Soulayrol
2007-02-27 20:52           ` Lennart Borgman (gmail)
     [not found]           ` <mailman.181.1172609581.7795.help-gnu-emacs@gnu.org>
2007-02-27 21:47             ` Thorsten Bonow

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=45E19A41.5030403@gatech.edu \
    --to=matthew.flaschen@gatech.edu \
    --cc=help-gnu-emacs@gnu.org \
    /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.
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).