emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: command remapping problem


From: Kim F. Storm
Subject: Re: command remapping problem
Date: Thu, 02 Feb 2006 13:46:16 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

"Richard M. Stallman" <address@hidden> writes:

>     2006/2/1, Kim F. Storm <address@hidden>:
>     > + 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 <address@hidden> http://www.cua.dk





reply via email to

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