[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: replacing process sentinels and filters with hooks
From: |
Stefan Monnier |
Subject: |
Re: replacing process sentinels and filters with hooks |
Date: |
Tue, 13 Nov 2012 17:58:54 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
> I think something along the lines of what with-wrapper-hook does is
> a good model (i.e. (add-function (process-filter proc) fun) would take
> a `fun' which expects 3 args: the proc, the string, and a
> "keep-running-the-hook" function which expects 2 args (the proc and the
> string)).
This is now implemented on the Emacs trunk. It's called `add-function' and
takes an additional argument, for convenience, which says whether to add the
function before, after, or around the existing function.
It's the basis of the new advice mechanism (whose main entry point
is `advice-add').
Stefan
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: replacing process sentinels and filters with hooks,
Stefan Monnier <=