diff options
| author | Michaël Cadilhac | 2007-09-10 09:40:37 +0000 |
|---|---|---|
| committer | Michaël Cadilhac | 2007-09-10 09:40:37 +0000 |
| commit | 4bca9161bdb6896aeee8a85c8a31f0f9fbd23c59 (patch) | |
| tree | 816ee344787de472f5fcc78354403d715515ddea /src | |
| parent | ccb5c14f4b1eb18347c522dc53d67c558231641d (diff) | |
| download | emacs-4bca9161bdb6896aeee8a85c8a31f0f9fbd23c59.tar.gz emacs-4bca9161bdb6896aeee8a85c8a31f0f9fbd23c59.zip | |
(struct Lisp_Subr): Rename `prompt' field to `intspec'.
(DEFUN): Document `intspec', use it instead of `prompt'.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/lisp.h | 17 |
2 files changed, 13 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 04d261ffaef..9dcbaa21fa5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2007-09-10 Micha,Ak(Bl Cadilhac <michael@cadilhac.name> | 1 | 2007-09-10 Micha,Ak(Bl Cadilhac <michael@cadilhac.name> |
| 2 | 2 | ||
| 3 | * lisp.h (struct Lisp_Subr): Rename `prompt' field to `intspec'. | ||
| 4 | (DEFUN): Document `intspec', use it instead of `prompt'. | ||
| 5 | |||
| 3 | * callint.c (Fcall_interactively): Comment fixes. | 6 | * callint.c (Fcall_interactively): Comment fixes. |
| 4 | 7 | ||
| 5 | 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca> | 8 | 2007-09-10 Stefan Monnier <monnier@iro.umontreal.ca> |
diff --git a/src/lisp.h b/src/lisp.h index 230f3a05184..a241613c138 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -891,7 +891,7 @@ struct Lisp_Subr | |||
| 891 | Lisp_Object (*function) (); | 891 | Lisp_Object (*function) (); |
| 892 | short min_args, max_args; | 892 | short min_args, max_args; |
| 893 | char *symbol_name; | 893 | char *symbol_name; |
| 894 | char *prompt; | 894 | char *intspec; |
| 895 | char *doc; | 895 | char *doc; |
| 896 | }; | 896 | }; |
| 897 | 897 | ||
| @@ -1669,30 +1669,33 @@ typedef unsigned char UCHAR; | |||
| 1669 | followed by the address of a vector of Lisp_Objects | 1669 | followed by the address of a vector of Lisp_Objects |
| 1670 | which contains the argument values. | 1670 | which contains the argument values. |
| 1671 | UNEVALLED means pass the list of unevaluated arguments | 1671 | UNEVALLED means pass the list of unevaluated arguments |
| 1672 | `prompt' says how to read arguments for an interactive call. | 1672 | `intspec' says how interactive arguments are to be fetched. |
| 1673 | See the doc string for `interactive'. | 1673 | If the string starts with a `(', `intspec' is evaluated and the resulting |
| 1674 | list is the list of arguments. | ||
| 1675 | If it's a string that doesn't start with `(', the value should follow | ||
| 1676 | the one of the doc string for `interactive'. | ||
| 1674 | A null string means call interactively with no arguments. | 1677 | A null string means call interactively with no arguments. |
| 1675 | `doc' is documentation for the user. */ | 1678 | `doc' is documentation for the user. */ |
| 1676 | 1679 | ||
| 1677 | #if (!defined (__STDC__) && !defined (PROTOTYPES)) \ | 1680 | #if (!defined (__STDC__) && !defined (PROTOTYPES)) \ |
| 1678 | || defined (USE_NONANSI_DEFUN) | 1681 | || defined (USE_NONANSI_DEFUN) |
| 1679 | 1682 | ||
| 1680 | #define DEFUN(lname, fnname, sname, minargs, maxargs, prompt, doc) \ | 1683 | #define DEFUN(lname, fnname, sname, minargs, maxargs, intspec, doc) \ |
| 1681 | Lisp_Object fnname (); \ | 1684 | Lisp_Object fnname (); \ |
| 1682 | DECL_ALIGN (struct Lisp_Subr, sname) = \ | 1685 | DECL_ALIGN (struct Lisp_Subr, sname) = \ |
| 1683 | { PVEC_SUBR | (sizeof (struct Lisp_Subr) / sizeof (EMACS_INT)), \ | 1686 | { PVEC_SUBR | (sizeof (struct Lisp_Subr) / sizeof (EMACS_INT)), \ |
| 1684 | fnname, minargs, maxargs, lname, prompt, 0}; \ | 1687 | fnname, minargs, maxargs, lname, intspec, 0}; \ |
| 1685 | Lisp_Object fnname | 1688 | Lisp_Object fnname |
| 1686 | 1689 | ||
| 1687 | #else | 1690 | #else |
| 1688 | 1691 | ||
| 1689 | /* This version of DEFUN declares a function prototype with the right | 1692 | /* This version of DEFUN declares a function prototype with the right |
| 1690 | arguments, so we can catch errors with maxargs at compile-time. */ | 1693 | arguments, so we can catch errors with maxargs at compile-time. */ |
| 1691 | #define DEFUN(lname, fnname, sname, minargs, maxargs, prompt, doc) \ | 1694 | #define DEFUN(lname, fnname, sname, minargs, maxargs, intspec, doc) \ |
| 1692 | Lisp_Object fnname DEFUN_ARGS_ ## maxargs ; \ | 1695 | Lisp_Object fnname DEFUN_ARGS_ ## maxargs ; \ |
| 1693 | DECL_ALIGN (struct Lisp_Subr, sname) = \ | 1696 | DECL_ALIGN (struct Lisp_Subr, sname) = \ |
| 1694 | { PVEC_SUBR | (sizeof (struct Lisp_Subr) / sizeof (EMACS_INT)), \ | 1697 | { PVEC_SUBR | (sizeof (struct Lisp_Subr) / sizeof (EMACS_INT)), \ |
| 1695 | fnname, minargs, maxargs, lname, prompt, 0}; \ | 1698 | fnname, minargs, maxargs, lname, intspec, 0}; \ |
| 1696 | Lisp_Object fnname | 1699 | Lisp_Object fnname |
| 1697 | 1700 | ||
| 1698 | /* Note that the weird token-substitution semantics of ANSI C makes | 1701 | /* Note that the weird token-substitution semantics of ANSI C makes |