|
From: | Alex Kost |
Subject: | Re: [PATCH 1/3] emacs: Display guix command errors in the minibuffer. |
Date: | Mon, 14 Sep 2015 10:22:46 +0300 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
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))) -- Alex
[Prev in Thread] | Current Thread | [Next in Thread] |