From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxim Cournoyer Subject: bug#35192: `current-source-directory' fails when file-name #f Date: Mon, 18 Nov 2019 13:24:59 +0900 Message-ID: <87wobxu7z8.fsf@gmail.com> References: <87h8b8y6ek.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:49916) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iWYbz-0005BL-ED for bug-guix@gnu.org; Sun, 17 Nov 2019 23:26:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iWYby-0003ob-9p for bug-guix@gnu.org; Sun, 17 Nov 2019 23:26:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:34197) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iWYby-0003oN-4e for bug-guix@gnu.org; Sun, 17 Nov 2019 23:26:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iWYbx-0005zX-UK for bug-guix@gnu.org; Sun, 17 Nov 2019 23:26:01 -0500 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: In-Reply-To: <87h8b8y6ek.fsf@gmail.com> (Alex Sassmannshausen's message of "Mon, 08 Apr 2019 14:26:43 +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" To: Alex Sassmannshausen Cc: 35192-done@debbugs.gnu.org Hello Alex! Alex Sassmannshausen writes: > Hello, > > re: /guix/utils.scm:748: > > When file-name is #f (e.g. in a geiser repl), the procedure's match > fails. `assq' returns ('filename . #f). This is handled in the match > bodies cond clause, but excluded as possibility by the encapsulating > match clause. > > Alex Thank you for the fix! I had the same problem when experimenting at the REPL, and the comment about Geiser in the code didn't help. I've pushed this change as commit b997d43214445462f23947afbbcadf24c6018217. Closing! Maxim