changeset 4463:5c651a4e8ed3

Fix add-to-list.
author Stephen J. Turnbull <stephen@xemacs.org>
date Wed, 14 May 2008 21:54:54 -0700
parents 34b42224a066
children 61aff09a7589
files lisp/ChangeLog lisp/subr.el
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Wed May 14 23:55:13 2008 +0200
+++ b/lisp/ChangeLog	Wed May 14 21:54:54 2008 -0700
@@ -1,3 +1,7 @@
+2008-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
+
+	* subr.el (add-to-list): Fix Aidan's last commit.
+
 2008-05-14  Aidan Kehoe  <kehoea@parhasard.net>
 
 	* subr.el (add-to-list): Implement the same logic with a more
--- a/lisp/subr.el	Wed May 14 23:55:13 2008 +0200
+++ b/lisp/subr.el	Wed May 14 21:54:54 2008 -0700
@@ -402,8 +402,7 @@
 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 (member* (member* element (symbol-value list-var)
-                        :test (or compare-fn #'equal)))
+  (if (member* element (symbol-value list-var) :test (or compare-fn #'equal))
       (symbol-value list-var)
     (set list-var
          (if append