all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: Matthew Flaschen <matthew.flaschen@gatech.edu>
Cc: emacs <help-gnu-emacs@gnu.org>
Subject: Re: How to get asynchronous notifications from Emacs ?
Date: Mon, 26 Feb 2007 17:42:47 +0100	[thread overview]
Message-ID: <45E30E07.6050007@gmail.com> (raw)
In-Reply-To: <45E2AD3A.1080706@gatech.edu>

Matthew Flaschen wrote:
> David Soulayrol wrote:
>> 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.
> 
> I'm afraid I don't know what gnuserv is.  I use regular emacsclient, and
> am fairly new to emacs in general.  What exactly do you want to do?
> I.E. what's your end goal?
> 
>> But it doesn't have a kitchen sink.
> 
> Patience.


Well, if you want to communicate with the kitchen sink you can not do 
that (at least not in both directions) with emacsclient (or gnuclient, 
which is similar in spirit). Emacsclient will only send commands to 
Emacs, it does not take command from Emacs.

What you should do is write a program that can talk and listen on 
standard output resp input. That program can then be run as an inferior 
process (Emacs parlang, a subprocess) in a buffer.

Take a look for example at "shell" command in Emacs for example code.

This way you do not have to buy an Emacs aware kitchen sink.

  reply	other threads:[~2007-02-26 16:42 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
     [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) [this message]
     [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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45E30E07.6050007@gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=matthew.flaschen@gatech.edu \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.