|
From: | Ludovic Courtès |
Subject: | Re: [PATCH 1/3] emacs: Display guix command errors in the minibuffer. |
Date: | Mon, 14 Sep 2015 13:55:24 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Alex Kost <address@hidden> skribis: > Alex Kost (2015-09-13 22:39 +0300) wrote: > > [...] >> (define (guix-command-output . args) >> - "Return string with 'guix ARGS ...' output." >> - (with-output-to-string >> - (lambda () (apply guix-command args)))) >> + "Return 2 strings with 'guix ARGS ...' output and error output." >> + (output+error >> + (lambda () >> + (guix-warning-port (current-error-port)) >> + (apply guix-command args)))) > > Ouch, it should be: > > (lambda () > (parameterize ((guix-warning-port (current-error-port))) > (apply guix-command args))) Yes, right. Ludo’.
[Prev in Thread] | Current Thread | [Next in Thread] |