emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] master d528f04 260/348: ivy.el (ivy--virtual-buffers): Don't modi


From: Oleh Krehel
Subject: [elpa] master d528f04 260/348: ivy.el (ivy--virtual-buffers): Don't modify recentfs or bookmarks
Date: Sat, 8 Apr 2017 11:04:11 -0400 (EDT)

branch: master
commit d528f04c8b295cbb760d541c641a23a586b22e86
Author: Justin Burkett <address@hidden>
Commit: Oleh Krehel <address@hidden>

    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

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