Mercurial > hg > xemacs-beta
comparison man/lispref/variables.texi @ 1024:ccaf90c5a53a
[xemacs-hg @ 2002-10-02 09:29:37 by stephent]
21.4 -> R21.5 stuff
manual improvements <87k7l1p6su.fsf@tleepslib.sk.tsukuba.ac.jp>
regexp tests <87fzvpp6mf.fsf@tleepslib.sk.tsukuba.ac.jp>
add-to-list doc Ville Skyttä <87bs6dp6io.fsf@tleepslib.sk.tsukuba.ac.jp>
Move filename associations Ville Skyttä <877kh1p6ee.fsf@tleepslib.sk.tsukuba.ac.jp>
lookup-syntax-properties <87admil2e0.fsf_-_@tleepslib.sk.tsukuba.ac.jp>
fix stale submatches <873crpp50v.fsf_-_@tleepslib.sk.tsukuba.ac.jp>
info for developers <87y99hnqc4.fsf@tleepslib.sk.tsukuba.ac.jp>
author | stephent |
---|---|
date | Wed, 02 Oct 2002 09:31:40 +0000 |
parents | c33ae14dd6d0 |
children | 6780963faf78 |
comparison
equal
deleted
inserted
replaced
1023:ce9bdd48654f | 1024:ccaf90c5a53a |
---|---|
723 @end defun | 723 @end defun |
724 | 724 |
725 One other function for setting a variable is designed to add | 725 One other function for setting a variable is designed to add |
726 an element to a list if it is not already present in the list. | 726 an element to a list if it is not already present in the list. |
727 | 727 |
728 @defun add-to-list symbol element | 728 @defun add-to-list symbol element &optional append |
729 This function sets the variable @var{symbol} by consing @var{element} | 729 This function sets the variable @var{symbol} by consing @var{element} |
730 onto the old value, if @var{element} is not already a member of that | 730 onto the old value, if @var{element} is not already a member of that |
731 value. It returns the resulting list, whether updated or not. The | 731 value. It returns the resulting list, whether updated or not. The |
732 value of @var{symbol} had better be a list already before the call. | 732 value of @var{symbol} had better be a list already before the call. |
733 | |
734 If the optional argument @var{append} is non-@code{nil}, @var{element} | |
735 is added at the end of the list. | |
733 | 736 |
734 The argument @var{symbol} is not implicitly quoted; @code{add-to-list} | 737 The argument @var{symbol} is not implicitly quoted; @code{add-to-list} |
735 is an ordinary function, like @code{set} and unlike @code{setq}. Quote | 738 is an ordinary function, like @code{set} and unlike @code{setq}. Quote |
736 the argument yourself if that is what you want. | 739 the argument yourself if that is what you want. |
737 | 740 |