summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1999-05-22 19:42:01 +0000
committerRichard M. Stallman <rms@gnu.org>1999-05-22 19:42:01 +0000
commit508bcbcaad1b1db1aacc6ff19a6fb9f91d5bcf11 (patch)
tree2ae012d0cb38e6ff33eccabe796a745b2375de1d /lisp
parentb7b978978c1f6b3e2318e495053c6af62c884c04 (diff)
downloademacs-508bcbcaad1b1db1aacc6ff19a6fb9f91d5bcf11.tar.gz
emacs-508bcbcaad1b1db1aacc6ff19a6fb9f91d5bcf11.tar.bz2
emacs-508bcbcaad1b1db1aacc6ff19a6fb9f91d5bcf11.zip
(add-to-list): Doc fix.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/subr.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/subr.el b/lisp/subr.el
index c2464c942f1..1abfb4797f5 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -676,6 +676,8 @@ To make a hook variable buffer-local, always use
(defun add-to-list (list-var element)
"Add to the value of LIST-VAR the element ELEMENT if it isn't there yet.
The test for presence of ELEMENT is done with `equal'.
+If ELEMENT is added, it is added at the beginning of the list.
+
If you want to use `add-to-list' on a variable that is not defined
until a certain package is loaded, you should put the call to `add-to-list'
into a hook function that will be run only after loading the package.