From daebae3d8c6e8bb309a65b3360066d8ff4d9d642 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Pavel=20Jan=C3=ADk?= Date: Mon, 11 Mar 2002 13:31:50 +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 210a8f571ce..189ec1f74e2 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -798,6 +798,8 @@ If ELEMENT is added, it is added at the beginning of the list, unless the optional argument APPEND is non-nil, in which case ELEMENT is added at the end. +The return value is the new value of LIST-VAR. + 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.39.2