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

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

[nongnu] elpa/with-editor c05420c 020/140: don't use pcase-dolist, not a


From: Jonas Bernoulli
Subject: [nongnu] elpa/with-editor c05420c 020/140: don't use pcase-dolist, not all supported Emacsen have it
Date: Fri, 6 Aug 2021 12:51:12 -0400 (EDT)

branch: elpa/with-editor
commit c05420c75edaca71b15326d1fba629be9054749f
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    don't use pcase-dolist, not all supported Emacsen have it
    
    Fixes #13.
---
 with-editor.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/with-editor.el b/with-editor.el
index fa01a9d..f2269b1 100644
--- a/with-editor.el
+++ b/with-editor.el
@@ -541,7 +541,8 @@ which may or may not insert the text into the PROCESS' 
buffer."
 
 (defun server-visit-files--with-editor-file-name-history-exclude
     (files _proc &optional _nowait)
-  (pcase-dolist (`(,file _) files)
+  (dolist (file files)
+    (setq  file (car file))
     (when (--any (string-match-p it file)
                  with-editor-file-name-history-exclude)
       (setq file-name-history (delete file file-name-history)))))



reply via email to

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