branch: externals/ebdb
commit f28b6656b27d2ff44d478b3d756409d2cf5d7500
Author: Eric Abrahamsen <e...@ericabrahamsen.net>
Commit: Eric Abrahamsen <e...@ericabrahamsen.net>

    Prevent sort from actually altering record mails
    
    * ebdb.el (ebdb-record-mail): Is this actually necessary? Obviously
    there's something I don't understand about sort.
---
 ebdb.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ebdb.el b/ebdb.el
index 3fb6e75..977bacf 100644
--- a/ebdb.el
+++ b/ebdb.el
@@ -4499,7 +4499,7 @@ addresses.  Sort mails by descending priority."
                        mails)))
     (if label
        (object-assoc label 'label mails)
-      (sort mails #'ebdb-field-compare))))
+      (sort (copy-sequence mails) #'ebdb-field-compare))))
 
 
 

Reply via email to