[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
12/16: ui: Avoid '_' as a pattern variable in 'match'.
From: |
Ludovic Courtès |
Subject: |
12/16: ui: Avoid '_' as a pattern variable in 'match'. |
Date: |
Wed, 8 Mar 2017 17:44:34 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 30906825cb99122f6b068a1d9223937757d75ce5
Author: Ludovic Courtès <address@hidden>
Date: Wed Mar 8 21:36:54 2017 +0100
ui: Avoid '_' as a pattern variable in 'match'.
* guix/ui.scm (fill-paragraph): Don't use '_' as a pattern variable
since that is shadowed by the top-level '_' binding on Guile 2.2.
(show-manifest-transaction): Likewise.
---
guix/ui.scm | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/guix/ui.scm b/guix/ui.scm
index 6247944..5ae082f 100644
--- a/guix/ui.scm
+++ b/guix/ui.scm
@@ -687,7 +687,7 @@ replacement if PORT is not Unicode-capable."
"The following packages will be removed:~%~{~a~%~}~%"
len)
remove))))
- (_ #f))
+ (x #f))
(match downgrade
(((($ <manifest-entry> name old-version)
. ($ <manifest-entry> _ new-version output item)) ..1)
@@ -705,7 +705,7 @@ replacement if PORT is not Unicode-capable."
"The following packages will be
downgraded:~%~{~a~%~}~%"
len)
downgrade))))
- (_ #f))
+ (x #f))
(match upgrade
(((($ <manifest-entry> name old-version)
. ($ <manifest-entry> _ new-version output item)) ..1)
@@ -723,7 +723,7 @@ replacement if PORT is not Unicode-capable."
"The following packages will be upgraded:~%~{~a~%~}~%"
len)
upgrade))))
- (_ #f))
+ (x #f))
(match install
((($ <manifest-entry> name version output item _) ..1)
(let ((len (length name))
@@ -739,7 +739,7 @@ replacement if PORT is not Unicode-capable."
"The following packages will be
installed:~%~{~a~%~}~%"
len)
install))))
- (_ #f))))
+ (x #f))))
(define-syntax with-error-handling
(syntax-rules ()
@@ -820,7 +820,7 @@ converted to a space; sequences of more than one line break
are preserved."
(match (string-fold maybe-break
`(,column 0 ())
str)
- ((_ _ chars)
+ ((column newlines chars)
(list->string (reverse chars)))))
@@ -1024,7 +1024,7 @@ DURATION-RELATION with the current time."
(valid-generations (iota n 1)))
((lst ..1)
(valid-generations lst))
- (_ #f)))
+ (x #f)))
(define (filter-by-duration duration)
(define (time-at-midnight time)
- branch master updated (6f5d28f -> 7447aa3), Ludovic Courtès, 2017/03/08
- 03/16: services: prosody: Make sure 'id' is available at expansion time., Ludovic Courtès, 2017/03/08
- 02/16: gnu: Remove unneeded imports., Ludovic Courtès, 2017/03/08
- 04/16: services: prosody: Use 'id' to introduce unhygienic top-level identifiers., Ludovic Courtès, 2017/03/08
- 05/16: build: Unset 'NIX_BUILD_HOOK' when offloading support is missing., Ludovic Courtès, 2017/03/08
- 09/16: gnu: Add guile2.2-reader., Ludovic Courtès, 2017/03/08
- 01/16: guix archive: Allow compilation with Guile 2.2., Ludovic Courtès, 2017/03/08
- 06/16: hash: Close or flush sha256 output ports before calling their 'get' procedure., Ludovic Courtès, 2017/03/08
- 11/16: download: Update the Savannah mirror list., Ludovic Courtès, 2017/03/08
- 12/16: ui: Avoid '_' as a pattern variable in 'match'.,
Ludovic Courtès <=
- 15/16: packages: Use address@hidden syntax when reporting ambiguities., Ludovic Courtès, 2017/03/08
- 13/16: ui: Don't use '%default-port-encoding' to set the encoding of string ports., Ludovic Courtès, 2017/03/08
- 16/16: utils: Make sure to use the right 'bytevector->string'., Ludovic Courtès, 2017/03/08
- 14/16: list-runtime-roots: Bufferize the lsof pipe., Ludovic Courtès, 2017/03/08
- 07/16: tests: Avoid zero-expression 'begin' form., Ludovic Courtès, 2017/03/08
- 08/16: gnu: guile-reader: Update to 0.6.2., Ludovic Courtès, 2017/03/08
- 10/16: gnu: Add guile2.2-haunt., Ludovic Courtès, 2017/03/08