diff options
author | Richard M. Stallman <rms@gnu.org> | 2002-09-19 18:57:55 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2002-09-19 18:57:55 +0000 |
commit | 4986d1f19bfa64532a9e0c07be43f3c13c167687 (patch) | |
tree | cd8dbe1b52aad34cc7b72352407616f1081caf08 /lisp/cus-dep.el | |
parent | 9811b1cf6fad6f23aece50b19bac827a459daae4 (diff) | |
download | emacs-4986d1f19bfa64532a9e0c07be43f3c13c167687.tar.gz |
(custom-make-dependencies): Fix previous change.
Diffstat (limited to 'lisp/cus-dep.el')
-rw-r--r-- | lisp/cus-dep.el | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lisp/cus-dep.el b/lisp/cus-dep.el index 9156bcec3bf..a73569203ab 100644 --- a/lisp/cus-dep.el +++ b/lisp/cus-dep.el @@ -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) |