# HG changeset patch # User Richard M. Stallman # Date 927402121 0 # Node ID f4127409d184e89518e78dcd32ad14477d3e093b # Parent 4582b492a6510d068a4dce5ec41355ed0f427b4c (add-to-list): Doc fix. diff -r 4582b492a651 -r f4127409d184 lisp/subr.el --- a/lisp/subr.el Sat May 22 17:38:01 1999 +0000 +++ b/lisp/subr.el Sat May 22 19:42:01 1999 +0000 @@ -676,6 +676,8 @@ (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.