summaryrefslogtreecommitdiff
path: root/guix/ui.scm
diff options
context:
space:
mode:
Diffstat (limited to 'guix/ui.scm')
-rw-r--r--guix/ui.scm6
1 files changed, 4 insertions, 2 deletions
diff --git a/guix/ui.scm b/guix/ui.scm
index dce97fb7b9..fbe2b70485 100644
--- a/guix/ui.scm
+++ b/guix/ui.scm
@@ -591,7 +591,8 @@ nicely."
\"1MiB\", to a number of bytes. Raise an error if STR could not be
interpreted."
(define unit-pos
- (string-rindex str char-set:digit))
+ (string-rindex str
+ (char-set-union (char-set #\.) char-set:digit)))
(define unit
(and unit-pos (substring str (+ 1 unit-pos))))
@@ -1472,7 +1473,8 @@ them. If PORT is a terminal, print at most a full screen of results."
#:hyperlinks? links?
#:extra-fields
`((relevance . ,score)))))))
- (if (and max-rows
+ (if (and (not (getenv "INSIDE_EMACS"))
+ max-rows
(> (port-line port) first-line) ;print at least one result
(> (+ 4 (line-count text) (port-line port))
max-rows))