emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r116318: * subr.el (add-to-list): Refill the paragra


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] trunk r116318: * subr.el (add-to-list): Refill the paragraphs.
Date: Sat, 08 Feb 2014 03:39:06 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 116318
revision-id: address@hidden
parent: address@hidden
fixes bug: http://debbugs.gnu.org/15791
committer: Lars Ingebrigtsen <address@hidden>
branch nick: trunk
timestamp: Fri 2014-02-07 19:37:57 -0800
message:
  * subr.el (add-to-list): Refill the paragraphs.
modified:
  lisp/ChangeLog                 changelog-20091113204419-o5vbwnq5f7feedwu-1432
  lisp/subr.el                   subr.el-20091113204419-o5vbwnq5f7feedwu-151
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2014-02-08 03:03:50 +0000
+++ b/lisp/ChangeLog    2014-02-08 03:37:57 +0000
@@ -1,5 +1,7 @@
 2014-02-08  Lars Ingebrigtsen  <address@hidden>
 
+       * subr.el (add-to-list): Refill the paragraphs (bug#15791).
+
        * macros.el (insert-kbd-macro): Doc fix (bug#16025).
 
 2014-02-08  Glenn Morris  <address@hidden>

=== modified file 'lisp/subr.el'
--- a/lisp/subr.el      2014-02-01 07:54:29 +0000
+++ b/lisp/subr.el      2014-02-08 03:37:57 +0000
@@ -1500,8 +1500,8 @@
 
 (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 @@
 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'.
+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."
+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)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]