Mercurial > emacs
comparison lisp/subr.el @ 43833:37bc1e73d4b3
(add-to-list): Doc fix.
author | Pavel Janík <Pavel@Janik.cz> |
---|---|
date | Mon, 11 Mar 2002 13:31:50 +0000 |
parents | d51d403fd80a |
children | 444bd245e176 |
comparison
equal
deleted
inserted
replaced
43832:5d834c3f5d18 | 43833:37bc1e73d4b3 |
---|---|
796 The test for presence of ELEMENT is done with `equal'. | 796 The test for presence of ELEMENT is done with `equal'. |
797 If ELEMENT is added, it is added at the beginning of the list, | 797 If ELEMENT is added, it is added at the beginning of the list, |
798 unless the optional argument APPEND is non-nil, in which case | 798 unless the optional argument APPEND is non-nil, in which case |
799 ELEMENT is added at the end. | 799 ELEMENT is added at the end. |
800 | 800 |
801 The return value is the new value of LIST-VAR. | |
802 | |
801 If you want to use `add-to-list' on a variable that is not defined | 803 If you want to use `add-to-list' on a variable that is not defined |
802 until a certain package is loaded, you should put the call to `add-to-list' | 804 until a certain package is loaded, you should put the call to `add-to-list' |
803 into a hook function that will be run only after loading the package. | 805 into a hook function that will be run only after loading the package. |
804 `eval-after-load' provides one way to do this. In some cases | 806 `eval-after-load' provides one way to do this. In some cases |
805 other hooks, such as major mode hooks, can do the job." | 807 other hooks, such as major mode hooks, can do the job." |