diff options
| author | Stefan Monnier | 2012-06-26 19:09:09 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2012-06-26 19:09:09 -0400 |
| commit | 8edd4a2b64e78462eb9d50f905e9e72d20381dd9 (patch) | |
| tree | 6f682d8130e5dea36d5d4fd73872626d23863435 /src | |
| parent | 3ea82dffd7b2c17a504e336019b70c65c198f6fa (diff) | |
| download | emacs-8edd4a2b64e78462eb9d50f905e9e72d20381dd9.tar.gz emacs-8edd4a2b64e78462eb9d50f905e9e72d20381dd9.zip | |
* src/eval.c (Fapply): Allow calling it with a single argument.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/eval.c | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index ef1f210ba66..9b412fd01e3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-06-26 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * eval.c (Fapply): Allow calling it with a single argument. | ||
| 4 | |||
| 1 | 2012-06-26 Eli Zaretskii <eliz@gnu.org> | 5 | 2012-06-26 Eli Zaretskii <eliz@gnu.org> |
| 2 | 6 | ||
| 3 | * s/ms-w32.h (strcasecmp, strncasecmp) [_MSC_VER]: Redirect to | 7 | * s/ms-w32.h (strcasecmp, strncasecmp) [_MSC_VER]: Redirect to |
| @@ -9,7 +13,7 @@ | |||
| 9 | * alloc.c (allocate_window): Zero out non-Lisp part of newly | 13 | * alloc.c (allocate_window): Zero out non-Lisp part of newly |
| 10 | allocated window. | 14 | allocated window. |
| 11 | (allocate_process): Likewise for new process. | 15 | (allocate_process): Likewise for new process. |
| 12 | (allocate_terminal): Changed to use offsetof. | 16 | (allocate_terminal): Change to use offsetof. |
| 13 | (allocate_frame): Likewise. | 17 | (allocate_frame): Likewise. |
| 14 | * frame.c (make_frame): Omit redundant initialization. | 18 | * frame.c (make_frame): Omit redundant initialization. |
| 15 | * window.c (make_parent_window): Use memset. | 19 | * window.c (make_parent_window): Use memset. |
diff --git a/src/eval.c b/src/eval.c index 3360a6b9a56..bff997439e0 100644 --- a/src/eval.c +++ b/src/eval.c | |||
| @@ -2242,7 +2242,7 @@ eval_sub (Lisp_Object form) | |||
| 2242 | return val; | 2242 | return val; |
| 2243 | } | 2243 | } |
| 2244 | 2244 | ||
| 2245 | DEFUN ("apply", Fapply, Sapply, 2, MANY, 0, | 2245 | DEFUN ("apply", Fapply, Sapply, 1, MANY, 0, |
| 2246 | doc: /* Call FUNCTION with our remaining args, using our last arg as list of args. | 2246 | doc: /* Call FUNCTION with our remaining args, using our last arg as list of args. |
| 2247 | Then return the value FUNCTION returns. | 2247 | Then return the value FUNCTION returns. |
| 2248 | Thus, (apply '+ 1 2 '(3 4)) returns 10. | 2248 | Thus, (apply '+ 1 2 '(3 4)) returns 10. |