unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: Alex Kost <alezost@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: [PATCH 1/3] emacs: Display guix command errors in the minibuffer.
Date: Mon, 14 Sep 2015 13:55:24 +0200	[thread overview]
Message-ID: <871te1user.fsf@gnu.org> (raw)
In-Reply-To: <871te1fos9.fsf@gmail.com> (Alex Kost's message of "Mon, 14 Sep 2015 10:22:46 +0300")

Alex Kost <alezost@gmail.com> 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’.

  reply	other threads:[~2015-09-14 11:55 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-13 19:39 [PATCH 0/3] emacs: Add 'guix-build-log-mode' and friends Alex Kost
2015-09-13 19:39 ` [PATCH 1/3] emacs: Display guix command errors in the minibuffer Alex Kost
2015-09-14  7:22   ` Alex Kost
2015-09-14 11:55     ` Ludovic Courtès [this message]
2015-09-14 11:54   ` Ludovic Courtès
2015-09-13 19:39 ` [PATCH 2/3] emacs: Add modes for viewing build logs Alex Kost
2015-09-14 12:01   ` Ludovic Courtès
2015-09-14 12:02   ` Ludovic Courtès
2015-09-15 12:21     ` Alex Kost
2015-09-15 18:56     ` [PATCH] emacs: Add commands to show/hide build log phases Alex Kost
2015-09-18  9:42       ` Ludovic Courtès
2015-09-13 19:39 ` [PATCH 3/3] emacs: Add "View build log" action to build popup Alex Kost
2015-09-14 12:03   ` Ludovic Courtès
2015-09-14 11:54 ` [PATCH 0/3] emacs: Add 'guix-build-log-mode' and friends Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871te1user.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=alezost@gmail.com \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).