From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Soulayrol Newsgroups: gmane.emacs.help Subject: Re: How to get asynchronous notifications from Emacs ? Date: 26 Feb 2007 08:43:57 GMT Organization: Guest of ProXad - France Message-ID: <45e29dcd$0$32749$426a74cc@news.free.fr> References: <45e1802d$0$28489$426a74cc@news.free.fr> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1172482857 30801 80.91.229.12 (26 Feb 2007 09:40:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Feb 2007 09:40:57 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 26 10:40:50 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HLcLi-0001o7-1O for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Feb 2007 10:40:50 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HLcLh-0003QU-E7 for geh-help-gnu-emacs@m.gmane.org; Mon, 26 Feb 2007 04:40:49 -0500 Original-Path: shelby.stanford.edu!newshub.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!proxad.net!cleanfeed3-b.proxad.net!nnrp9-1.free.fr!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: pan 0.119 (Karma Hunters) Original-Lines: 31 Original-NNTP-Posting-Date: 26 Feb 2007 09:43:57 MET Original-NNTP-Posting-Host: 82.253.126.33 Original-X-Trace: 1172479437 news-2.free.fr 32749 82.253.126.33:35450 Original-X-Complaints-To: abuse@proxad.net Original-Xref: shelby.stanford.edu gnu.emacs.help:145867 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41472 Archived-At: Le Sun, 25 Feb 2007 09:16:33 -0500, Matthew Flaschen a écrit: > 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 . I knew the principles in Emacs, but thanks a lot for this introduction. So I assume you are not aware of a tool which could be the companion of gnuserv for my needs ? I'll try to write this down. > Remember, emacs can do anything if you ask nicely enough. Theoretical > limitations do not exist as with other programs. ;) But it doesn't have a kitchen sink. > Matthew Flaschen Thanks. David.