diff options
| author | Stefan Monnier | 2007-07-25 06:24:58 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2007-07-25 06:24:58 +0000 |
| commit | 89835619ddf133f28a7c015db964f491c5eab610 (patch) | |
| tree | 3eb0ee4b0b4a2393258c7a41b0f43c69ad858ada /src/data.c | |
| parent | bffa7817189d138036ba6da7686e2a4e2701daa2 (diff) | |
| download | emacs-89835619ddf133f28a7c015db964f491c5eab610.tar.gz emacs-89835619ddf133f28a7c015db964f491c5eab610.zip | |
(Finteractive_form): Use a `interactive-form' property if
present, analogous to the function-documentation property.
Diffstat (limited to 'src/data.c')
| -rw-r--r-- | src/data.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/data.c b/src/data.c index 0b3be2fc694..f705aa559e8 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -751,8 +751,14 @@ Value, if non-nil, is a list \(interactive SPEC). */) | |||
| 751 | Lisp_Object cmd; | 751 | Lisp_Object cmd; |
| 752 | { | 752 | { |
| 753 | Lisp_Object fun = indirect_function (cmd); | 753 | Lisp_Object fun = indirect_function (cmd); |
| 754 | 754 | Lisp_Object tmp; | |
| 755 | if (SUBRP (fun)) | 755 | |
| 756 | if (SYMBOLP (cmd) | ||
| 757 | /* Use an `interactive-form' property if present, analogous to the | ||
| 758 | function-documentation property. */ | ||
| 759 | && (tmp = Fget (cmd, intern ("interactive-form")), !NILP (tmp))) | ||
| 760 | return tmp; | ||
| 761 | else if (SUBRP (fun)) | ||
| 756 | { | 762 | { |
| 757 | if (XSUBR (fun)->prompt) | 763 | if (XSUBR (fun)->prompt) |
| 758 | return list2 (Qinteractive, build_string (XSUBR (fun)->prompt)); | 764 | return list2 (Qinteractive, build_string (XSUBR (fun)->prompt)); |