[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lispref/functions.texi
From: |
Miles Bader |
Subject: |
[Emacs-diffs] Changes to emacs/lispref/functions.texi |
Date: |
Fri, 04 Apr 2003 01:23:22 -0500 |
Index: emacs/lispref/functions.texi
diff -c emacs/lispref/functions.texi:1.20 emacs/lispref/functions.texi:1.21
*** emacs/lispref/functions.texi:1.20 Sat Sep 28 14:45:54 2002
--- emacs/lispref/functions.texi Tue Feb 4 09:47:53 2003
***************
*** 1,7 ****
@c -*-texinfo-*-
@c This is part of the GNU Emacs Lisp Reference Manual.
@c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999
! @c Free Software Foundation, Inc.
@c See the file elisp.texi for copying conditions.
@setfilename ../info/functions
@node Functions, Macros, Variables, Top
--- 1,7 ----
@c -*-texinfo-*-
@c This is part of the GNU Emacs Lisp Reference Manual.
@c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999
! @c Free Software Foundation, Inc.
@c See the file elisp.texi for copying conditions.
@setfilename ../info/functions
@node Functions, Macros, Variables, Top
***************
*** 18,24 ****
* Defining Functions:: Lisp expressions for defining functions.
* Calling Functions:: How to use an existing function.
* Mapping Functions:: Applying a function to each element of a list, etc.
! * Anonymous Functions:: Lambda expressions are functions with no names.
* Function Cells:: Accessing or setting the function definition
of a symbol.
* Inline Functions:: Defining functions that the compiler will open code.
--- 18,24 ----
* Defining Functions:: Lisp expressions for defining functions.
* Calling Functions:: How to use an existing function.
* Mapping Functions:: Applying a function to each element of a list, etc.
! * Anonymous Functions:: Lambda expressions are functions with no names.
* Function Cells:: Accessing or setting the function definition
of a symbol.
* Inline Functions:: Defining functions that the compiler will open code.
***************
*** 746,755 ****
"Apply FUNCTION to successive cars of all ARGS.
Return the list of results."
;; @r{If no list is exhausted,}
! (if (not (memq 'nil args))
;; @r{apply function to @sc{car}s.}
! (cons (apply function (mapcar 'car args))
! (apply 'mapcar* function
;; @r{Recurse for rest of elements.}
(mapcar 'cdr args)))))
@end group
--- 746,755 ----
"Apply FUNCTION to successive cars of all ARGS.
Return the list of results."
;; @r{If no list is exhausted,}
! (if (not (memq 'nil args))
;; @r{apply function to @sc{car}s.}
! (cons (apply function (mapcar 'car args))
! (apply 'mapcar* function
;; @r{Recurse for rest of elements.}
(mapcar 'cdr args)))))
@end group
***************
*** 779,785 ****
argument and return a string. The argument @var{sequence} can be any
kind of sequence except a char-table; that is, a list, a vector, a
bool-vector, or a string.
!
@smallexample
@group
(mapconcat 'symbol-name
--- 779,785 ----
argument and return a string. The argument @var{sequence} can be any
kind of sequence except a char-table; that is, a list, a vector, a
bool-vector, or a string.
!
@smallexample
@group
(mapconcat 'symbol-name
***************
*** 841,847 ****
the function @code{mapcar}, which applies any given function to each
element of a list.
! Here we define a function @code{change-property} which
uses a function as its third argument:
@example
--- 841,847 ----
the function @code{mapcar}, which applies any given function to each
element of a list.
! Here we define a function @code{change-property} which
uses a function as its third argument:
@example
***************
*** 915,921 ****
@cindex @samp{#'} syntax
The read syntax @code{#'} is a short-hand for using @code{function}.
! For example,
@example
#'(lambda (x) (* x x))
--- 915,921 ----
@cindex @samp{#'} syntax
The read syntax @code{#'} is a short-hand for using @code{function}.
! For example,
@example
#'(lambda (x) (* x x))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] Changes to emacs/lispref/functions.texi,
Miles Bader <=