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

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

[nongnu] elpa/nix-mode ef2efae30a 482/500: nix-flake: Use flatten-list a


From: ELPA Syncer
Subject: [nongnu] elpa/nix-mode ef2efae30a 482/500: nix-flake: Use flatten-list and bump Emacs to 27.1
Date: Sat, 29 Jan 2022 08:27:59 -0500 (EST)

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

    nix-flake: Use flatten-list and bump Emacs to 27.1
---
 nix-flake.el | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/nix-flake.el b/nix-flake.el
index 8d7dead24c..a9cb2f1828 100644
--- a/nix-flake.el
+++ b/nix-flake.el
@@ -1,7 +1,7 @@
 ;;; nix-flake.el --- Transient interface to Nix flake commands -*- 
lexical-binding: t -*-
 
 ;; Keywords: nix, languages, tools, unix
-;; Package-Requires: ((emacs "25.1") (transient "0.3"))
+;; Package-Requires: ((emacs "27.1") (transient "0.3"))
 
 ;;; Commentary:
 
@@ -105,8 +105,7 @@ already registered in either the user or the global 
registry."
     (mapcar (lambda (cells)
               (list (nth 1 cells)
                     (nth 2 cells))))
-    ;; You could use `flatten-tree' in Emacs 27.1.
-    (apply #'append)))
+    (flatten-list)))
 
 (defun nix-flake--registry-add-1 (flake-ref)
   "Add FLAKE-REF to the registry with a new name."
@@ -244,8 +243,7 @@ transient.el."
 
 (defun nix-flake--options ()
   "Return a list of options for `nix-flake-dispatch'."
-  ;; You could use `flatten-tree' in Emacs 27.1.
-  (apply #'append (transient-args 'nix-flake-dispatch)))
+  (flatten-list (transient-args 'nix-flake-dispatch)))
 
 (defun nix-flake--command (subcommand options flake-ref)
   "Build a command line for a Nix subcommand.



reply via email to

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