248 |
@tindex pop |
@tindex pop |
249 |
@defmac pop listname |
@defmac pop listname |
250 |
This macro is a way of examining the @sc{car} of a list, |
This macro is a way of examining the @sc{car} of a list, |
251 |
and taking it off the list, all at once. It is new in Emacs 21. |
and taking it off the list, all at once. |
252 |
|
|
253 |
It operates on the list which is stored in the symbol @var{listname}. |
It operates on the list which is stored in the symbol @var{listname}. |
254 |
It removes this element from the list by setting @var{listname} |
It removes this element from the list by setting @var{listname} |
436 |
@defmac push newelt listname |
@defmac push newelt listname |
437 |
This macro provides an alternative way to write |
This macro provides an alternative way to write |
438 |
@code{(setq @var{listname} (cons @var{newelt} @var{listname}))}. |
@code{(setq @var{listname} (cons @var{newelt} @var{listname}))}. |
|
It is new in Emacs 21. |
|
439 |
|
|
440 |
@example |
@example |
441 |
(setq l '(a b)) |
(setq l '(a b)) |