From 508bcbcaad1b1db1aacc6ff19a6fb9f91d5bcf11 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 22 May 1999 19:42:01 +0000 Subject: [PATCH] (add-to-list): Doc fix. --- lisp/subr.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/subr.el b/lisp/subr.el index c2464c942f..1abfb4797f 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. -- 2.20.1