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

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

[nongnu] elpa/nix-mode 0d65c482b2 477/500: nix-flake: Avoid use of flatt


From: ELPA Syncer
Subject: [nongnu] elpa/nix-mode 0d65c482b2 477/500: nix-flake: Avoid use of flatten-list to support older Emacs versions
Date: Sat, 29 Jan 2022 08:27:58 -0500 (EST)

branch: elpa/nix-mode
commit 0d65c482b2307dedbb86c0737165f23cb355a414
Author: Akira Komamura <akira.komamura@gmail.com>
Commit: Akira Komamura <akira.komamura@gmail.com>

    nix-flake: Avoid use of flatten-list to support older Emacs versions
---
 nix-flake.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/nix-flake.el b/nix-flake.el
index 56af10f11f..92976f0fa7 100644
--- a/nix-flake.el
+++ b/nix-flake.el
@@ -105,7 +105,8 @@ already registered in either the user or the global 
registry."
     (mapcar (lambda (cells)
               (list (nth 1 cells)
                     (nth 2 cells))))
-    (flatten-list)))
+    ;; You could use `flatten-tree' in Emacs 27.1.
+    (apply #'append)))
 
 (defun nix-flake--registry-add-1 (flake-ref)
   "Add FLAKE-REF to the registry with a new name."
@@ -243,7 +244,8 @@ transient.el."
 
 (defun nix-flake--args ()
   "Return arguments for Nix command."
-  (flatten-list (transient-args 'nix-flake-dispatch)))
+  ;; You could use `flatten-tree' in Emacs 27.1.
+  (apply #'append (transient-args 'nix-flake-dispatch)))
 
 (defun nix-flake--command (subcommand nix-args flake-ref &optional args)
   "Build a command line for a Nix subcommand.



reply via email to

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