From mboxrd@z Thu Jan 1 00:00:00 1970 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 Message-ID: <871te1fos9.fsf@gmail.com> References: <1442173161-527-1-git-send-email-alezost@gmail.com> <1442173161-527-2-git-send-email-alezost@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41382) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbO6G-0000Uz-H5 for guix-devel@gnu.org; Mon, 14 Sep 2015 03:22:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZbO6D-0003XI-E1 for guix-devel@gnu.org; Mon, 14 Sep 2015 03:22:52 -0400 Received: from mail-la0-x22c.google.com ([2a00:1450:4010:c03::22c]:34115) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbO6D-0003X8-68 for guix-devel@gnu.org; Mon, 14 Sep 2015 03:22:49 -0400 Received: by lahg1 with SMTP id g1so50992350lah.1 for ; Mon, 14 Sep 2015 00:22:48 -0700 (PDT) Received: from leviafan ([217.107.192.146]) by smtp.gmail.com with ESMTPSA id d7sm2140396laa.14.2015.09.14.00.22.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Sep 2015 00:22:47 -0700 (PDT) In-Reply-To: <1442173161-527-2-git-send-email-alezost@gmail.com> (Alex Kost's message of "Sun, 13 Sep 2015 22:39:19 +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: guix-devel@gnu.org 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