GNU bug report logs -
#39642
[PATCH 1/3] ui: Only display link in capable terminals.
Previous Next
Reported by: Pierre Neidhardt <mail <at> ambrevar.xyz>
Date: Mon, 17 Feb 2020 13:41:01 UTC
Severity: normal
Tags: patch
Done: Pierre Neidhardt <mail <at> ambrevar.xyz>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hi Pierre,
Thank you for looking at. :-)
On Mon, 17 Feb 2020 at 14:41, Pierre Neidhardt <mail <at> ambrevar.xyz> wrote:
> ---
> guix/scripts/describe.scm | 16 ++++++++++++----
> guix/ui.scm | 2 +-
> 2 files changed, 13 insertions(+), 5 deletions(-)
>
> diff --git a/guix/scripts/describe.scm b/guix/scripts/describe.scm
> index f13f221da9..9a7bd52163 100644
> --- a/guix/scripts/describe.scm
> +++ b/guix/scripts/describe.scm
> @@ -201,7 +201,12 @@ way and displaying details about the channel's source code."
> (format #t (G_ " commit: ~a~%")
> (if (supports-hyperlinks?)
> (channel-commit-hyperlink channel commit)
> - commit))))
> + commit))
> + (when (not (supports-hyperlinks?)
> + )
Issue on the closing parenthesis ')'.
Indent?
> @@ -233,9 +238,12 @@ way and displaying details about the channel's source code."
>
> (define* (channel-commit-hyperlink channel
> #:optional
> - (commit (channel-commit channel)))
> + (commit (channel-commit channel))
> + (transformer hyperlink))
> "Return a hyperlink for COMMIT in CHANNEL, using COMMIT as the hyperlink's
> -text. The hyperlink links to a web view of COMMIT, when available."
> +text. The hyperlink links to a web view of COMMIT, when available.
> +TRANSFORMER is a procedure of 2 arguments, a URI and text, and returns a
I do not have tried with another 'transformer' than 'hyperlink' or
'identity'. :-)
Cheers,
simon
This bug report was last modified 5 years and 85 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.