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

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

[elpa] externals/yaml 5b352258f5 067/124: Merge pull request #24 from j-


From: ELPA Syncer
Subject: [elpa] externals/yaml 5b352258f5 067/124: Merge pull request #24 from j-shilling/fix-alist-to-hash
Date: Fri, 29 Nov 2024 16:00:02 -0500 (EST)

branch: externals/yaml
commit 5b352258f50ec9d2e7ff8bd16323a24fb484b52b
Merge: f9fbe392e3 b0d95e7e81
Author: Zachary Romero <zacromero@posteo.net>
Commit: GitHub <noreply@github.com>

    Merge pull request #24 from j-shilling/fix-alist-to-hash
    
    Use `alist-get` to converting alist to hash table
---
 yaml.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/yaml.el b/yaml.el
index 835efab913..8fe332b1a4 100644
--- a/yaml.el
+++ b/yaml.el
@@ -2429,8 +2429,8 @@ auto-detecting the indentation.  Functionality defers to
   (when (and (listp l) (seq-every-p (lambda (x) (and (consp x) (atom (car 
x)))) l))
     (let ((h (make-hash-table)))
       (seq-map (lambda (cpair)
-                 (let ((k (car cpair))
-                       (v (cdr cpair)))
+                 (let* ((k (car cpair))
+                        (v (alist-get k l)))
                    (puthash k v h)))
                l)
       h)))



reply via email to

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