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 | |
| 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')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/data.c | 10 |
2 files changed, 13 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index ac6b24aaffa..bfdf9abb5d2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * data.c (Finteractive_form): Use a `interactive-form' property if | ||
| 4 | present, analogous to the function-documentation property. | ||
| 5 | |||
| 1 | 2007-07-22 Nick Roberts <nickrob@snap.net.nz> | 6 | 2007-07-22 Nick Roberts <nickrob@snap.net.nz> |
| 2 | 7 | ||
| 3 | * xdisp.c (decode_mode_spec): Add case 'R' for to test for | 8 | * xdisp.c (decode_mode_spec): Add case 'R' for to test for |
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)); |