]> git.eshelyaron.com Git - emacs.git/commitdiff
* subr.el (add-to-list): Refill the paragraphs.
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 8 Feb 2014 03:37:57 +0000 (19:37 -0800)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 8 Feb 2014 03:37:57 +0000 (19:37 -0800)
Fixes: debbugs:15791
lisp/ChangeLog
lisp/subr.el

index 7d11d09fc98f2bf7dc7d2e6c85dc2b0b009f3080..fe5e2914ee16c894d18842b8a135dd5462e0a5ac 100644 (file)
@@ -1,5 +1,7 @@
 2014-02-08  Lars Ingebrigtsen  <larsi@gnus.org>
 
+       * subr.el (add-to-list): Refill the paragraphs (bug#15791).
+
        * macros.el (insert-kbd-macro): Doc fix (bug#16025).
 
 2014-02-08  Glenn Morris  <rgm@gnu.org>
index 3101cc8b6f09f3746e5526ba54ce7e7f6b70fc15..7730a4327b4dfe970efda47308e1fbaa68ee5b41 100644 (file)
@@ -1500,8 +1500,8 @@ FUN is then called once."
 
 (defun add-to-list (list-var element &optional append compare-fn)
   "Add ELEMENT to the value of LIST-VAR if it isn't there yet.
-The test for presence of ELEMENT is done with `equal',
-or with COMPARE-FN if that's non-nil.
+The test for presence of ELEMENT is done with `equal', or with
+COMPARE-FN if that's non-nil.
 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.
@@ -1509,14 +1509,15 @@ ELEMENT is added at the end.
 The return value is the new value of LIST-VAR.
 
 This is handy to add some elements to configuration variables,
-but please do not abuse it in Elisp code, where you are usually better off
-using `push' or `cl-pushnew'.
-
-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.
-`eval-after-load' provides one way to do this.  In some cases
-other hooks, such as major mode hooks, can do the job."
+but please do not abuse it in Elisp code, where you are usually
+better off using `push' or `cl-pushnew'.
+
+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.  `eval-after-load' provides one way to
+do this.  In some cases other hooks, such as major mode hooks,
+can do the job."
   (declare
    (compiler-macro
     (lambda (exp)