Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
89835619
Commit
89835619
authored
Jul 25, 2007
by
Stefan Monnier
Browse files
(Finteractive_form): Use a `interactive-form' property if
present, analogous to the function-documentation property.
parent
bffa7817
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
2 deletions
+17
-2
etc/NEWS
etc/NEWS
+4
-0
src/ChangeLog
src/ChangeLog
+5
-0
src/data.c
src/data.c
+8
-2
No files found.
etc/NEWS
View file @
89835619
...
...
@@ -204,6 +204,10 @@ remote connection has been established already.
** The two new functions `looking-at-p' and `string-match-p' can do
the same matching as `looking-at' and `string-match' without changing
the match data.
** The interactive-form of a function can be added post-facto via the
`interactive-form' symbol property. Mostly useful to add complex interactive
forms to subroutines.
* New Packages for Lisp Programming in Emacs 23.1
...
...
src/ChangeLog
View file @
89835619
2007-07-25 Stefan Monnier <monnier@iro.umontreal.ca>
* data.c (Finteractive_form): Use a `interactive-form' property if
present, analogous to the function-documentation property.
2007-07-22 Nick Roberts <nickrob@snap.net.nz>
* xdisp.c (decode_mode_spec): Add case 'R' for to test for
...
...
src/data.c
View file @
89835619
...
...
@@ -751,8 +751,14 @@ Value, if non-nil, is a list \(interactive SPEC). */)
Lisp_Object
cmd
;
{
Lisp_Object
fun
=
indirect_function
(
cmd
);
if
(
SUBRP
(
fun
))
Lisp_Object
tmp
;
if
(
SYMBOLP
(
cmd
)
/* Use an `interactive-form' property if present, analogous to the
function-documentation property. */
&&
(
tmp
=
Fget
(
cmd
,
intern
(
"interactive-form"
)),
!
NILP
(
tmp
)))
return
tmp
;
else
if
(
SUBRP
(
fun
))
{
if
(
XSUBR
(
fun
)
->
prompt
)
return
list2
(
Qinteractive
,
build_string
(
XSUBR
(
fun
)
->
prompt
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment