[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r110739: cl-mapc small fixes
From: |
Glenn Morris |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r110739: cl-mapc small fixes |
Date: |
Tue, 30 Oct 2012 01:03:22 -0700 |
User-agent: |
Bazaar (2.5.0) |
------------------------------------------------------------
revno: 110739
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Tue 2012-10-30 01:03:22 -0700
message:
cl-mapc small fixes
* lisp/emacs-lisp/cl-extra.el (cl-mapc): Add autoload cookie. Doc fix.
* doc/misc/cl.texi (Mapping over Sequences): Mention cl-mapc naming oddity.
modified:
doc/misc/ChangeLog
doc/misc/cl.texi
lisp/ChangeLog
lisp/emacs-lisp/cl-extra.el
=== modified file 'doc/misc/ChangeLog'
--- a/doc/misc/ChangeLog 2012-10-30 07:54:17 +0000
+++ b/doc/misc/ChangeLog 2012-10-30 08:03:22 +0000
@@ -5,6 +5,7 @@
(Setf Extensions): Partially restore note about cl-getf,
mainly moved to lispref/variables.texi.
(Property Lists): Fix cl-getf typos.
+ (Mapping over Sequences): Mention cl-mapc naming oddity.
2012-10-29 Glenn Morris <address@hidden>
=== modified file 'doc/misc/cl.texi'
--- a/doc/misc/cl.texi 2012-10-30 07:54:17 +0000
+++ b/doc/misc/cl.texi 2012-10-30 08:03:22 +0000
@@ -199,6 +199,8 @@
Finally, in a very few cases the old @file{cl.el} versions do not
behave in exactly the same way as the @file{cl-lib.el} versions.
@xref{Obsolete Features}.
address@hidden There is also cl-mapc, which was called cl-mapc even before
cl-lib.el.
address@hidden But not autoloaded, so maybe not much used?
Since the old @file{cl.el} does not use a clean namespace, Emacs has a
policy that packages distributed with Emacs must not load @code{cl} at
@@ -3309,13 +3311,15 @@
@code{car}s of the advancing pointers.
@end defun
address@hidden FIXME does not exist?
@defun cl-mapc function seq &rest more-seqs
This function is like @code{cl-mapcar}, except that the values returned
by @var{function} are ignored and thrown away rather than being
collected into a list. The return value of @code{cl-mapc} is @var{seq},
the first sequence. This function is more general than the Emacs
-primitive @code{mapc}.
+primitive @code{mapc}. (Note that this function is called
address@hidden even in @file{cl.el}, rather than @code{map*} as you
+might expect.)
address@hidden http://debbugs.gnu.org/6575
@end defun
@defun cl-mapl function list &rest more-lists
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog 2012-10-30 07:34:37 +0000
+++ b/lisp/ChangeLog 2012-10-30 08:03:22 +0000
@@ -1,5 +1,7 @@
2012-10-30 Glenn Morris <address@hidden>
+ * emacs-lisp/cl-extra.el (cl-mapc): Add autoload cookie. Doc fix.
+
* emacs-lisp/cl.el (letf): Doc fix. (Bug#12760)
2012-10-29 Chong Yidong <address@hidden>
=== modified file 'lisp/emacs-lisp/cl-extra.el'
--- a/lisp/emacs-lisp/cl-extra.el 2012-09-28 23:30:52 +0000
+++ b/lisp/emacs-lisp/cl-extra.el 2012-10-30 08:03:22 +0000
@@ -149,8 +149,9 @@
(setq cl-list (cdr cl-list)))
(nreverse cl-res))))
+;;;###autoload
(defun cl-mapc (cl-func cl-seq &rest cl-rest)
- "Like `mapcar', but does not accumulate values returned by the function.
+ "Like `cl-mapcar', but does not accumulate values returned by the function.
\n(fn FUNCTION SEQUENCE...)"
(if cl-rest
(progn (apply 'cl-map nil cl-func cl-seq cl-rest)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r110739: cl-mapc small fixes,
Glenn Morris <=