"Richard M. Stallman" <[EMAIL PROTECTED]> writes:

>     2006/2/1, Kim F. Storm <[EMAIL PROTECTED]>:
>     > + DEFUN ("indirect-function-noerror", Findirect_function_noerror, 
> Sindirect_function_noerror, 1, 1, 0,
>     ...
>     > + If the final symbol is unbound, return OBJECT
>
>     Instead of making a new function, how about adding an optional
>     "default" argument to the existing `indirect-function' function?
>
> I like the idea of adding an arg to `indirect-function', but it
> would be more consistent with usual Emacs conventions to
> call it NOERROR, and say that it means "return nil instead of
> an error".

In the specific case where this is used, it is more
useful to return OBJECT than nil when OBJECT is unbound,
but your proposal is cleaner.

-- 
Kim F. Storm <[EMAIL PROTECTED]> http://www.cua.dk



_______________________________________________
emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug

Reply via email to