Function: setcar
setcar is a function defined in data.c.
Signature
(setcar CELL NEWCAR)
Documentation
Set the car of CELL to be NEWCAR. Returns NEWCAR.
Other relevant functions are documented in the list group.
Probably introduced at or before Emacs version 1.6.
Shortdoc
;; list
(setcar list 'c)
=> c
Aliases
Source Code
// Defined in /usr/src/emacs/src/data.c
{
CHECK_CONS (cell);
XSETCAR (cell, newcar);
return newcar;
}