changeset 47555:bb2e6b4867d5

(custom-make-dependencies): Fix previous change.
author Richard M. Stallman <rms@gnu.org>
date Thu, 19 Sep 2002 18:57:48 +0000
parents 173f3c942338
children 6ac4f3375d60
files lisp/cus-dep.el
diffstat 1 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/cus-dep.el	Thu Sep 19 15:25:38 2002 +0000
+++ b/lisp/cus-dep.el	Thu Sep 19 18:57:48 2002 +0000
@@ -87,7 +87,17 @@
 		    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)