From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id yGxHOEcJ7WUoLwAA62LTzQ:P1 (envelope-from ) for ; Sun, 10 Mar 2024 02:13:44 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id yGxHOEcJ7WUoLwAA62LTzQ (envelope-from ) for ; Sun, 10 Mar 2024 02:13:44 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b=k7V8y67f; dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b="AzmTc/c4"; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=wolfsden.cz (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1710033223; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post:dkim-signature; bh=flTgtFFSeIzqVj/DzXoqoWGEBNhWlB6EMmmvyL5ZtWI=; b=syTOrMy1LVUblKwqf34aNoVaeAdkiCnQTIRIebbA+VXEeEPHxE4qztoAAmZeTejyywLTgF yw5vLFrOFbZbTS3qrEhy7t2i/qytZBWYG+3chgXVY4LnXgi5DKYt4Fy2HleexV/jbBIC/R hxt4kduaLWjCMlHiwOhIav6dqkgfbS6oYLM7kHU2s5JOVsN8/VXeU1eHoei0D+hcYpA2wb pPmy97ItIaT1ZJplzTQW1KWK3OSK/4tXr4bB1weJwwsQ2ks2D63eoElUvuYvdijoSWM4wx 3mzZk3JtU2kED1uSMZGpf9ef39FrS0cbubJNuxBuQSEEz04c3ZNn9Ift+8dBVw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b=k7V8y67f; dkim=fail ("headers rsa verify failed") header.d=wolfsden.cz header.s=mail header.b="AzmTc/c4"; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=wolfsden.cz (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1710033223; a=rsa-sha256; cv=none; b=ijdOOKwvBY9bSOupq7rJGhahoqesVJU/0PZJkA7WLLAHW9Mms0aFyIOwHcZR4wYZ9a9tli c3wS3OIn8bzJo+oEVfiJ4q0GE7k6yIwJ8MzRFrCi7zW0zSkky9SXBTPRcLVraN5p0uzLop kqtqIKRauzTCCIPQUBehuR+IkW+r622Iq9KYgMNA6C9YUDdTwEx/cFzK+b9sAsZFg0439j jm6jdOhHpf6nAf/HP3mUETZCnIw4RnUU8V8EZtedoPDu9GHlcqVJm+HUcC/sWToIS5WhF1 yiiTAaLNDtLXDXOV4lhzi7rNvKiZTnUvG0QQpV6OR/Jk76rvMwrMwPh+MmW6NA== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id DBF2411155 for ; Sun, 10 Mar 2024 02:13:42 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rj7ko-0001Zx-KP; Sat, 09 Mar 2024 20:13:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rj7kn-0001Zn-Rp for bug-guix@gnu.org; Sat, 09 Mar 2024 20:13:29 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rj7kn-0003MH-Jm for bug-guix@gnu.org; Sat, 09 Mar 2024 20:13:29 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rj7lK-0008Et-9X for bug-guix@gnu.org; Sat, 09 Mar 2024 20:14:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#69686: Geiser is slow when running with geiser-guile-load-init-file set to t Resent-From: Tomas Volf <~@wolfsden.cz> Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sun, 10 Mar 2024 01:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 69686 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 69686@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.171003323131645 (code B ref -1); Sun, 10 Mar 2024 01:14:02 +0000 Received: (at submit) by debbugs.gnu.org; 10 Mar 2024 01:13:51 +0000 Received: from localhost ([127.0.0.1]:35022 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rj7l8-0008EK-Fr for submit@debbugs.gnu.org; Sat, 09 Mar 2024 20:13:50 -0500 Received: from lists.gnu.org ([209.51.188.17]:47184) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <~@wolfsden.cz>) id 1rj7l4-0008E9-6R for submit@debbugs.gnu.org; Sat, 09 Mar 2024 20:13:49 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <~@wolfsden.cz>) id 1rj7kW-0001Z4-QO for bug-guix@gnu.org; Sat, 09 Mar 2024 20:13:12 -0500 Received: from wolfsden.cz ([37.205.8.62]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <~@wolfsden.cz>) id 1rj7kU-0003K5-Ev for bug-guix@gnu.org; Sat, 09 Mar 2024 20:13:12 -0500 Received: by wolfsden.cz (Postfix, from userid 104) id 241B028828A; Sun, 10 Mar 2024 01:13:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1710033186; bh=ofQG1ICjsPGw9APSjH8P5UvjnneZX/MdO0uQqHdrsLo=; h=Date:From:To:Subject; b=k7V8y67fTVC1MnokCLLw2YJ+vimHNmmdP0x4qtLKLFOdXxlM0NMUzLm5nycNAmVMX 1VKDXCeHUURUCamBPt0Nzc04Gc4VYZfKSLuQbm/xniKFreFW0+hSD+dblnKsEQoC8v HolN43FL+wB2jojknVLPza0W08RV0zBIxDJGXVNA05iMNS5Y0c/fMJO13pukM0w6s+ k2sVYJDaPctDeg+0xf8gx27y7OFwO/ukP+ENzrY4Da8WOkGo4TsTRYoLW2IAPDvm4T +AYDmmHgeU7YRVOhSd6Xijf4nnRWgHPlx1sWJgQMKHyOk3wpzDHXtLWGU3relFA8wT aCDx2ziZSjMASVHXKqDozfmyIZu1jgB9Qn6Qy0GIgN2sG3UvrLOfB/YtBqSkDNtMyb IkLMH7H2tG88VDHbmRWS95oK2JHqQfpTWGKkXizXxQ6IOIhxQXcIIQ5Gcip2JFr5pK 1EYVlMhn7Q9z8RKGqJXDO1By1PulF9hCC9/6psAOJVK6MJaGLu79dRu2PJmR4IoIMD jZAfuV5S6/aDN2JogvXwD4NxdNAJche74nBJa6j7ueAhuVdndDrup9NNJBmvTsdGAu b8TplbiIe9pa/u62T1neJRkOWV3WoRzhqj06YYWx6cXBeCW87c8tqoFouwS/URE4vR 6vH5TyJVucJ7UnXxvYI8/WHQ= Received: from localhost (unknown [193.32.127.135]) by wolfsden.cz (Postfix) with ESMTPSA id 3C424289B83 for ; Sun, 10 Mar 2024 01:13:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=wolfsden.cz; s=mail; t=1710033185; bh=ofQG1ICjsPGw9APSjH8P5UvjnneZX/MdO0uQqHdrsLo=; h=Date:From:To:Subject; b=AzmTc/c4yOpaon8eucAnordG5Y9W09pHP7tx3BkF2SVmXAD4roUUpxBmnkLRTv1pD LhGicxC1Q4GHQUfwnMB7c/LWFoVVMScwCnE9yiKqxYxa8D9WEC8DhLN00lrKNh6U62 U2/e05QmT6cG608i1FzDkZnONJaD7PrkkbJv3pLTK5n7XFy4Q0grp8C52FClqEefh8 gYni1io4hDfQhzNTxisbngFNXK0Qm8Pq4MElnc73SdyqvaJ0zUqC53UAMXchFzi09w NL4ypgX6FYR2Kh5qxMAQvsn6TeijsWZwcUMJ0SrpMxBaKy5e76kb3mI+RHitmOc/7v en0rGbI6sGnVIN0w518sijBpbyeMAO9QW8mX2NKfFoRQOrISFxAT/+hRb4vhixV6H6 dgEffFKKXH3476ZXiAqdYrfX8dE0TW3j7T9ZQfnQq3M/+yBGIPwy2zUW2+MQjDjZ+k H+j39WwnmblCdeyXByrMxgnVqdkU3TkrVsMRWfRCCs5ZNTe0bWtKDW731nDGx38lZY zHpXP2ZCjaS3vSZL1bvONjZvJpAVlyOI5mLkDxC/v/3SjhiK6yeNQ5HaSBvQqcymRs n7R1/pp8Po8cFG4ePEV9sb4scdFgjcxACnERQtEVtAmZkxV2cXMkXr5+WUoxRq1jGf 8tQW9NlB2utLod700mh69BFI= Date: Sun, 10 Mar 2024 02:13:04 +0100 From: Tomas Volf <~@wolfsden.cz> Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ql8fpCOkvfJ0CER8" Content-Disposition: inline Received-SPF: pass client-ip=37.205.8.62; envelope-from=~@wolfsden.cz; helo=wolfsden.cz X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.97 X-Spam-Score: -6.97 X-Migadu-Queue-Id: DBF2411155 X-Migadu-Scanner: mx13.migadu.com X-TUID: p49kt9MrjwrP --ql8fpCOkvfJ0CER8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello, I discovered that when I run Geiser with geiser-guile-load-init-file set to t, it results in horrible experience, when the REPL seems to technically work, but anything takes a long time (completion is on order of seconds). I found out that it is caused by the readline activation. I am unsure how to solve this properly. For me the workaround was to move the readline check inside the (unless (getenv "INSIDE_EMACS") ...), since I do not need it there. I was contemplating sending a patch doing just so, but I realized that also disables readline in any shell mode. I personally do not care about that (I only interact with guile from Emacs using Geiser, at least for now), but someone else might care. Ignoring the fact that disabling the colors for ansi-term (and other modes?) might not be necessary neither, I am not sure how to write more robust check. The patch I was considering is at the end of the email, feel free to use it if the trade-off would be acceptable. diff --git a/gnu/system/shadow.scm b/gnu/system/shadow.scm index d9f13271d8..fcd1d76c18 100644 --- a/gnu/system/shadow.scm +++ b/gnu/system/shadow.scm @@ -215,24 +215,26 @@ (define %default-nanorc (define %default-dotguile (plain-file "dot-guile" - "(cond ((false-if-exception (resolve-interface '(ice-9 readline))) - => - (lambda (module) - ;; Enable completion and input history at the REPL. - ((module-ref module 'activate-readline)))) - (else - (display \"Consider installing the 'guile-readline' package for -convenient interactive line editing and input history.\\n\\n\"))) + ";;; -*- mode: scheme -*- - (unless (getenv \"INSIDE_EMACS\") - (cond ((false-if-exception (resolve-interface '(ice-9 colorized))) - => - (lambda (module) - ;; Enable completion and input history at the REPL. - ((module-ref module 'activate-colorized)))) - (else - (display \"Consider installing the 'guile-colorized' package -for a colorful Guile experience.\\n\\n\"))))\n")) +(unless (getenv \"INSIDE_EMACS\") + (cond ((false-if-exception (resolve-interface '(ice-9 readline))) + => + (lambda (module) + ;; Enable completion and input history at the REPL. + ((module-ref module 'activate-readline)))) + (else + (display \"Consider installing the 'guile-readline' package for +convenient interactive line editing and input history.\n\n\"))) + + (cond ((false-if-exception (resolve-interface '(ice-9 colorized))) + => + (lambda (module) + ;; Enable completion and input history at the REPL. + ((module-ref module 'activate-colorized)))) + (else + (display \"Consider installing the 'guile-colorized' package +for a colorful Guile experience.\n\n\"))))\n")) (define %default-skeleton-home-config (plain-file "default-home-config" "\ Have a nice day, Tomas Volf -- There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors. --ql8fpCOkvfJ0CER8 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEt4NJs4wUfTYpiGikL7/ufbZ/wakFAmXtCSAACgkQL7/ufbZ/ walGjw/+KX85f6vr22hatMyIOD35OpF9kz89VoPvuq8dKZ1n60lTDzxxv52OM7W8 fc1jkCr2+3PleJ8nzHKbm8zdSW4yuXglQiZykZmsydwjqHiaaBkh2PedDoYIY3RY 6OjdGV4ujmVHQc4dD1JAHzENa92YdcdMkyPKFaSbOWnIKvuZAaGLY0ypiNedY3FO kfejzp1Eg5AOLSgXIGj4A6PnVpwF8j6g6SwgFUy+ccN23aoPT3lUPsgFpCQQLFpv U2SdmCh1uLws6f87FBeKb+huaxxobnNscGcQgnvcACnqpscp6xaz12w+f7X+MM3J 4BpLFuA53X3fy5BCQ9JWqBjzlaoxl/dWRSNEUi3tO0z1pX/sYsZO7Xb3XFKm9Kig bU94NdDaUiI8sisnwa2hFaZJ3p5YxsvxlNmA/NKHVjEGa7DUbnZOHU2kMW1yzg4P pXM+Dzu/2o4rPTxt58ymTI2wdc0IH87g4M+lz0/IbrvYwNRYT+NxblsDTV33R0tp 5zuT0aagItt5O5nCM2abiocJSs5q9UvJZEj5KSffqaXdjkxH3Ri/lfSSQVlaa8zH lgKI4oyXzJxQjHUFZfT4+Gaxk81r7ChioBZZX+MiUxSX8iPorpc3gfuU4pbm5F1O WvVBri5xUZDGCS/Omg2nhTfKUd53wavsDRwFNiheVFlE7R6sxLM= =kHFO -----END PGP SIGNATURE----- --ql8fpCOkvfJ0CER8--