GNU bug report logs -
#9082
Add hints to documentation of car and cdr for (e)lisp newcomers
Previous Next
Reported by: asjo <at> koldfront.dk (Adam Sjøgren)
Date: Thu, 14 Jul 2011 16:42:02 UTC
Severity: minor
Tags: fixed
Fixed in version 24.1
Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
** Description
Adds hints to the documentation of car and cdr to help newbies remember
which is which.
Saying that (car|cdr) returns the (car|cdr) of a LIST is a little terse
for beginners (probably the only ones looking at the documentation of
such basic functions).
** ChangeLog
2011-07-14 Adam Sjøgren <asjo <at> koldfront.dk>
* data.c (car, cdr): add functionality hints to documentation.
** Patch
=== modified file 'src/data.c'
*** src/data.c 2011-07-10 08:20:10 +0000
--- src/data.c 2011-07-14 13:23:02 +0000
*************** DEFUN ("floatp", Ffloatp, Sfloatp, 1, 1,
*** 463,469 ****
/* Extract and set components of lists */
DEFUN ("car", Fcar, Scar, 1, 1, 0,
! doc: /* Return the car of LIST. If arg is nil, return nil.
Error if arg is not nil and not a cons cell. See also `car-safe'.
See Info node `(elisp)Cons Cells' for a discussion of related basic
--- 463,469 ----
/* Extract and set components of lists */
DEFUN ("car", Fcar, Scar, 1, 1, 0,
! doc: /* Return the car (first element) of LIST. If arg is nil, return nil.
Error if arg is not nil and not a cons cell. See also `car-safe'.
See Info node `(elisp)Cons Cells' for a discussion of related basic
*************** DEFUN ("car-safe", Fcar_safe, Scar_safe,
*** 481,487 ****
}
DEFUN ("cdr", Fcdr, Scdr, 1, 1, 0,
! doc: /* Return the cdr of LIST. If arg is nil, return nil.
Error if arg is not nil and not a cons cell. See also `cdr-safe'.
See Info node `(elisp)Cons Cells' for a discussion of related basic
--- 481,487 ----
}
DEFUN ("cdr", Fcdr, Scdr, 1, 1, 0,
! doc: /* Return the cdr (rest) of LIST. If arg is nil, return nil.
Error if arg is not nil and not a cons cell. See also `cdr-safe'.
See Info node `(elisp)Cons Cells' for a discussion of related basic
This bug report was last modified 13 years and 317 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.