[Top][All Lists]

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

Re: table.el

From: Tak Ota
Subject: Re: table.el
Date: Sat, 01 Dec 2001 22:31:25 -0800 (PST)

Sun, 02 Dec 2001 01:11:36 -0500: "Stefan Monnier" <monnier+gnu/address@hidden> 

> Now if you want to allow to put more than one function on a wrapper-hook,
> then you can use something like
>       (defun kill-region (blabla)
>         (if kill-region-functions
>             (let ((kill-region-functions kill-region-functions))
>               (funcall (pop kill-region-function) blabla))
>           ..do the usual thing..))

I think this is almost identical to the macro implementation that
Miles refined.   The difference is above the macro is expanded as an
idiom and a bit more compact by using `pop'.

> But I'd still advocate for passing not just the arguments but the
> function itself so that the same wrapper-hook can be used for
> several functions.

I think this is a good idea.


reply via email to

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