From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH 1/3] emacs: Display guix command errors in the minibuffer. Date: Mon, 14 Sep 2015 13:55:24 +0200 Message-ID: <871te1user.fsf@gnu.org> References: <1442173161-527-1-git-send-email-alezost@gmail.com> <1442173161-527-2-git-send-email-alezost@gmail.com> <871te1fos9.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41301) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbSMA-0001TC-Vu for guix-devel@gnu.org; Mon, 14 Sep 2015 07:55:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZbSM6-00063N-Vc for guix-devel@gnu.org; Mon, 14 Sep 2015 07:55:34 -0400 In-Reply-To: <871te1fos9.fsf@gmail.com> (Alex Kost's message of "Mon, 14 Sep 2015 10:22:46 +0300") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Alex Kost Cc: guix-devel@gnu.org Alex Kost 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=E2=80=99.