From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#21829: guix import hackage failures Date: Thu, 26 Nov 2015 09:46:00 +0100 Message-ID: <87h9k95et3.fsf@gnu.org> References: <87d1vghjhk.fsf@gnu.org> <87vb971t74.fsf@gnu.org> <87lha3ufxv.fsf@gnu.org> <87h9kp1ts2.fsf@gnu.org> <87k2pjq8qu.fsf@gnu.org> <87fuztda8k.fsf@gnu.org> 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]:36757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1sCn-0002b9-Cv for bug-guix@gnu.org; Thu, 26 Nov 2015 03:47:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a1sCk-0004Fb-6d for bug-guix@gnu.org; Thu, 26 Nov 2015 03:47:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:35457) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1sCk-0004FX-2a for bug-guix@gnu.org; Thu, 26 Nov 2015 03:47:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1a1sCj-0002vD-Ru for bug-guix@gnu.org; Thu, 26 Nov 2015 03:47:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: (Federico Beffa's message of "Thu, 26 Nov 2015 09:28:07 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Federico Beffa Cc: 21829@debbugs.gnu.org Federico Beffa skribis: > On Wed, Nov 25, 2015 at 10:45 PM, Ludovic Court=C3=A8s wro= te: >> Federico Beffa skribis: > > [...] > >>>>> + ;; indentation based block recognition. >>>>> + (begin (unread-char #\newline port) (read-char port) 0) >>>> >>>> Isn=E2=80=99t this equivalent to: 0 ? >>> >>> No. This is because at the start of a new line we check if and how >>> many indentation blocks have ended. If the last line doesn't terminate >>> this check is no done. >> >> More generally, it looks like: >> >> (begin (do-effect!) (undo-effect!) val) >> >> which I thought reduces to: >> >> val > > Since we are doing IO, there are side effects. The key difference is > the result of '(port-column port)' and that triggers what I mentioned. Oooh, I see, thanks for explaining! Then what about a comment like: Read a newline from PORT to reset its =E2=80=98port-column=E2=80=99, as e= xpected by the indentation-based block recognition code. I think it would be helpful for those like me who are hard of hearing. ;-) Ludo=E2=80=99.