ui: Don't truncate search output when inside Emacs.

* guix/ui.scm (display-search-results): Loop over all results when
  INSIDE_EMACS is set.
This commit is contained in:
Pierre Neidhardt 2020-02-17 14:38:48 +01:00
parent 672d3d4a87
commit 9b7f9e6f9b
No known key found for this signature in database
GPG Key ID: 9BDCF497A4BBCC7F

View File

@ -1473,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))