Here is a brief summary of some recently introduced functions.
car returns the first element of a list;
cdr returns the
second and subsequent elements of a list.
(car '(1 2 3 4 5 6 7)) ⇒ 1 (cdr '(1 2 3 4 5 6 7)) ⇒ (2 3 4 5 6 7)
cons constructs a list by prepending its first argument to its
(cons 1 '(2 3 4)) ⇒ (1 2 3 4)
funcall evaluates its first argument as a function. It passes
its remaining arguments to its first argument.
Return the result of taking CDR ‘n’ times on a list. The ‘rest of the rest’, as it were.
(nthcdr 3 '(1 2 3 4 5 6 7)) ⇒ (4 5 6 7)
setcar changes the first element of a list;
changes the second and subsequent elements of a list.
(setq triple '(1 2 3)) (setcar triple '37) triple ⇒ (37 2 3) (setcdr triple '("foo" "bar")) triple ⇒ (37 "foo" "bar")
Evaluate each argument in sequence and then return the value of the last.
(progn 1 2 3 4) ⇒ 4
Record whatever narrowing is in effect in the current buffer, if any, and restore that narrowing after evaluating the arguments.
Search for a string, and if the string is found, move point. With a
regular expression, use the similar
(See Regular Expression Searches, for an
explanation of regular expression patterns and searches.)
re-search-forward take four
nilor an error message.
kill-region cuts the text between point and mark from the
buffer and stores that text in the kill ring, so you can get it back
copy-region-as-kill copies the text between point and mark into
the kill ring, from which you can get it by yanking. The function
does not cut or remove the text from the buffer.
delete-and-extract-region removes the text between point and
mark from the buffer and throws it away. You cannot get it back.
(This is not an interactive command.)