branch: master
commit d528f04c8b295cbb760d541c641a23a586b22e86
Author: Justin Burkett <[email protected]>
Commit: Oleh Krehel <[email protected]>

    ivy.el (ivy--virtual-buffers): Don't modify recentfs or bookmarks
    
    Copy recentf-list and bookmark-alist so that put-text-property doesn't 
modify
    them.
    
    Fixes #821
---
 ivy.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ivy.el b/ivy.el
index 17ec73e..7227cc1 100644
--- a/ivy.el
+++ b/ivy.el
@@ -2883,10 +2883,10 @@ CANDS is a list of strings."
   (unless recentf-mode
     (recentf-mode 1))
   (let ((bookmarks (and (boundp 'bookmark-alist)
-                        bookmark-alist))
+                        (copy-sequence bookmark-alist)))
         virtual-buffers)
     (dolist (head (append
-                   recentf-list
+                   (copy-sequence recentf-list)
                    (delq nil (mapcar (lambda (bookmark)
                                        (let (file)
                                          (when (setq file (assoc 'filename 
bookmark))

Reply via email to