summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorTaiju HIGASHI <higashi@taiju.info>2022-06-08 18:50:28 +0900
committerLudovic Courtès <ludo@gnu.org>2022-06-16 23:57:41 +0200
commitc8803d89fe531a1ff0de8ccdbc77c86249d5e778 (patch)
tree06142478b57671037d4c4d1d834698deb38a62e5 /doc
parenta88de093fb22a6feb07aaeee7a7663a2aab6678f (diff)
downloadguix-c8803d89fe531a1ff0de8ccdbc77c86249d5e778.tar.gz
ui: Improve pager selection logic when less is not installed.
* guix/ui.scm (find-available-pager): New procedure.
(call-with-paginated-output-port): Use it.
* guix/utils.scm (call-with-environment-variables): Allow clearing of
specified environment variables.
* tests/ui.scm (make-empty-file, assert-equals-find-available-pager):
New procedures.
("find-available-pager, GUIX_PAGER takes precedence")
("find-available-pager, PAGER takes precedence")
("find-available-pager, 'less' takes precedence")
("find-available-pager, 'more' takes precedence")
("find-available-pager, no pager"): New tests.

Co-authored-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions