emacs-devel
[Top][All Lists]
Advanced

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

Re: table.el


From: Stefan Monnier
Subject: Re: table.el
Date: Mon, 03 Dec 2001 20:19:45 -0500

> Richard Stallman <address@hidden> writes:
> > 3. Establish a convention that the user should write the outside
> > function name, quoted, as the second element of WRAPPER-FORM.
> > 
> > It is be useful to be able to test the function name, so I think 3 is
> > best.
> 
> I suspect that if this is done, people will sometimes want to pass
> _another_ name to `with-wrapper-mumble', for instance:
> 
> (defun kill-region (beg end)
>   ...do some preprocessing...
>   (with-wrapper-mumble (kill-region-wrapper-hook 'kill-region-helper beg end)
>     ...do main stuff...))
> 
> where `kill-region-helper' is used if there are any wrappers, and ...do
> main stuff... is used otherwise (perhaps it will just call
> kill-region-helper too).

Indeed.

> Should such usage be discouraged?

Definitely not: I see this flexibility as a feature.

> If wrappers actually test the value
> of the passed function name, then such usage might be relevant.

It is part of the specific convention of that wrapper-hook.
Just like for foo-functions where the docstring has to explain
how the functions get called, with what parameters, ...


        Stefan




reply via email to

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