From: Taylor R. Campbell <net/mumble/campbell>
Date: Tue, 12 Feb 2008 00:37:54 +0000 (+0000)
Subject: Fix bug in last commit.  %MESSAGE-ORDER-KEY yields a pair of the key
X-Git-Tag: 20090517-FFI~329
X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=dcce97b5a4dc39d3d45b9eea47d664369e17341b;p=mit-scheme.git

Fix bug in last commit.  %MESSAGE-ORDER-KEY yields a pair of the key
and index already, so MESSAGE-ORDER-KEY doesn't need to add the index.
---

diff --git a/v7/src/imail/imail-core.scm b/v7/src/imail/imail-core.scm
index 264a9dde1..ba689d7b9 100644
--- a/v7/src/imail/imail-core.scm
+++ b/v7/src/imail/imail-core.scm
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: imail-core.scm,v 1.167 2008/02/11 22:48:02 riastradh Exp $
+$Id: imail-core.scm,v 1.168 2008/02/12 00:37:54 riastradh Exp $
 
 Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
     1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
@@ -802,8 +802,7 @@ USA.
     (let ((order (folder-order folder)))
       (if (not order)
           #f
-          (let ((index (%message-index message)))
-	    (cons (%message-order-key message order index) index))))))
+          (%message-order-key message order (%message-index message))))))
 
 (define (memoize-folder-order order folder)
   (let loop ((modification-count (object-modification-count folder)))