]> git.eshelyaron.com Git - emacs.git/commitdiff
(custom-make-dependencies): Fix previous change.
authorRichard M. Stallman <rms@gnu.org>
Thu, 19 Sep 2002 18:57:55 +0000 (18:57 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 19 Sep 2002 18:57:55 +0000 (18:57 +0000)
lisp/ChangeLog
lisp/cus-dep.el

index 15a7d3c69795c98be290a26df8d58486081193e0..1730550dc9b2d509cfbe22982016a1597461982f 100644 (file)
@@ -1,3 +1,7 @@
+2002-09-19  Richard M. Stallman  <rms@gnu.org>
+
+       * cus-dep.el (custom-make-dependencies): Fix previous change.
+
 2002-09-19  Juanma Barranquero  <lektu@terra.es>
 
        * ielm.el (ielm-eval-input): Call `error-message-string' instead
index 9156bcec3bf9ab328fa23c667e7308a79557cebf..a73569203abe3d1a8e2adc83cfdd872c22f4635a 100644 (file)
@@ -87,7 +87,17 @@ Usage: emacs -batch -l ./cus-dep.el -f custom-make-dependencies DIRS"
                    item where found)
                (when members
                  ;; So x and no-x builds won't differ.
-                 (setq members (sort (copy-sequence members) 'string<))
+                 (setq members
+                       (sort (copy-sequence members) 
+                             (lambda (x y)
+                               (cond ((and (stringp x) (stringp y))
+                                      (string< x y))
+                                     ;; Put all non-strings before strings.
+                                     ((stringp y) t)
+                                     ((stringp x) nil)
+                                     ;; For two non-strings,
+                                     ;; use the order they appear in MEMBERS.
+                                     (t (member y (member x members)))))))
                  (while members
                    (setq item (car (car members))
                          members (cdr members)