emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 8610bd1: * lisp/mpc.el (mpc-songs-refresh): Don't s


From: Stefan Monnier
Subject: [Emacs-diffs] master 8610bd1: * lisp/mpc.el (mpc-songs-refresh): Don't side-effect `active'
Date: Tue, 13 Oct 2015 13:48:21 +0000

branch: master
commit 8610bd16e92c1a8639206847bd8c6ea523727cd5
Author: Stefan Monnier <address@hidden>
Commit: Stefan Monnier <address@hidden>

    * lisp/mpc.el (mpc-songs-refresh): Don't side-effect `active'
    
    ... since it might come straight from the memoizing table.
---
 lisp/mpc.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/mpc.el b/lisp/mpc.el
index a5fc376..21002ec 100644
--- a/lisp/mpc.el
+++ b/lisp/mpc.el
@@ -1960,7 +1960,7 @@ This is used so that they can be compared with `eq', 
which is needed for
             ;; I punt on it and just use file-name sorting, which does the
             ;; right thing if your library is properly arranged.
             (dolist (song (if dontsort active
-                            (sort active
+                            (sort (copy-sequence active)
                                   (lambda (song1 song2)
                                     (let ((cmp (mpc-compare-strings
                                                 (cdr (assq 'file song1))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]