[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: locate-library INTERACTIVE-CALL argument
From: |
Richard Stallman |
Subject: |
Re: locate-library INTERACTIVE-CALL argument |
Date: |
Wed, 06 Aug 2003 09:04:25 -0400 |
> Perhaps there ought to be a way to use interactive-p to get
> such a result. It could be a good feature.
Do you mean adding an &optional KEYBOARD-MACROS-TOO argument, so it
would return non-nil even when called while executing a keyboard macro?
Or do you mean distinguishing different non-nil return values, e.g.
call-interactively vs. execute-kbd-macro (instead of just t)?
I was thinking of the former, but the latter might be a good idea.
Or do you mean distinguishing different non-nil return values, e.g.
call-interactively vs. execute-kbd-macro (instead of just t)?
> But there may be a better feature. Ever since 1985 I had the idea
> that maybe (interactive...) could be extended with a second argument
> saying how to display the value. That would be complimentary with the
> existing arg saying how to provide the arguments. That might be the
> really clean way to do this job.
I don't know what you mean. (interactive ...) returns a list of values,
which are mapped to the lambda list symbols.
The `interactive' form, when evaluated, returns nil.
However, it holds one "argument", a form that can be evaluated
to produce a list of argument values. It could hold additional
"arguments" which could be used for various purposes,
including to display the command's return value.