[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
17/21: installer: Change N_ from a procedure to a macro.
From: |
John Darrington |
Subject: |
17/21: installer: Change N_ from a procedure to a macro. |
Date: |
Sat, 31 Dec 2016 14:54:18 +0000 (UTC) |
jmd pushed a commit to branch wip-installer
in repository guix.
commit 870976aa1019dd23335cb00ccead3ad79b789729
Author: John Darrington <address@hidden>
Date: Fri Dec 30 15:08:35 2016 +0100
installer: Change N_ from a procedure to a macro.
* gnu/system/installer/utils.scm (N_): Remove procedure. (N_): New macro.
---
gnu/system/installer/utils.scm | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/gnu/system/installer/utils.scm b/gnu/system/installer/utils.scm
index 04f53ab..25a8390 100644
--- a/gnu/system/installer/utils.scm
+++ b/gnu/system/installer/utils.scm
@@ -53,8 +53,10 @@
(ncurses form)
(ncurses curses))
-(define (N_ str) str)
-
+(define-syntax N_
+ (syntax-rules ()
+ ((N_ str)
+ str)))
(define (make-window-port win)
"Return a port which writes to the curses window WIN"
- 02/21: installer: Replace an instance of cdr with match., (continued)
- 02/21: installer: Replace an instance of cdr with match., John Darrington, 2016/12/31
- 12/21: installer: Close unused ports in pipe-cmd., John Darrington, 2016/12/31
- 08/21: installer: Use consistent window heights., John Darrington, 2016/12/31
- 20/21: installer: Do not use /tmp for holding the configuration., John Darrington, 2016/12/31
- 14/21: installer: Issue message to user on failure of filesystems task., John Darrington, 2016/12/31
- 07/21: installer: Rename module "new" to "guixsd-installer"., John Darrington, 2016/12/31
- 13/21: installer: Replace spawned mount command with the mount syscall., John Darrington, 2016/12/31
- 11/21: installer: Improve install page., John Darrington, 2016/12/31
- 10/21: installer: Replace "%temporary-configuration-file-port" with "config-file"., John Darrington, 2016/12/31
- 19/21: installer: Use global variable instead of string literal for "/gnu"., John Darrington, 2016/12/31
- 17/21: installer: Change N_ from a procedure to a macro.,
John Darrington <=
- 18/21: installer: Change the order of the filesystem task conditions., John Darrington, 2016/12/31
- 15/21: installer: Allow users to remove mount points during configuration., John Darrington, 2016/12/31
- 21/21: installer: Add a console-keymap service., John Darrington, 2016/12/31
- 09/21: installer: Fix bug where window-pipe did not return the proper exit status., John Darrington, 2016/12/31