emacs-diffs
[Top][All Lists]
Advanced

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

scratch/emacs-editorconfig bf8bfe5f38d 105/364: Copy properties alists b


From: Stefan Monnier
Subject: scratch/emacs-editorconfig bf8bfe5f38d 105/364: Copy properties alists before using them
Date: Tue, 18 Jun 2024 01:40:43 -0400 (EDT)

branch: scratch/emacs-editorconfig
commit bf8bfe5f38d33ccfcebf7ee00eae697d90c19f0f
Author: 10sr <8slashes+git@gmail.com>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>

    Copy properties alists before using them
---
 editorconfig-core-handle.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/editorconfig-core-handle.el b/editorconfig-core-handle.el
index a80223056aa..0d664cbdc2a 100644
--- a/editorconfig-core-handle.el
+++ b/editorconfig-core-handle.el
@@ -86,7 +86,7 @@ The list returned will be ordered by the lines they appear.
 
 If HANDLE is nil return nil."
   (when handle
-    (mapcar 'cdr
+    (mapcar (lambda (prop) (copy-alist (cdr prop)))
       (cl-remove-if-not (lambda (prop)
                           (editorconfig-core-handle--fnmatch-p file
                             (car prop)



reply via email to

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