Re: [PATCH] Fix 'Undefined command' error message

Andrew STUBBS
2005-11-16T13:05:14Z

Eli Zaretskii wrote:
> Why is there a need for testing *p to be non-zero? AFAIK, isalnum is
> well defined for a zero argument.
>
> What is the reason for additional tests under TUI?
>
> Is this for some kind of compatibility with XDB?

I do not know the answer to these questions, although I'm sure I could
look into it. There are already two instances of this code in this file
and each is implemented identically to the others.

The reason the code is like this here is because it must replicate the
tests in lookup_cmd_1 if it is to give the right message. I do not know
why lookup_cmd_1 is the way it is.

If you prefer I would be happy to pull out the code into a static function.

Andrew