From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id wMp+I4Rv1GGyhAEAgWs5BA (envelope-from ) for ; Tue, 04 Jan 2022 17:02:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id wNQ7IIRv1GEcUQAAauVa8A (envelope-from ) for ; Tue, 04 Jan 2022 17:02:12 +0100 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 10E892A147 for ; Tue, 4 Jan 2022 17:02:12 +0100 (CET) Received: from localhost ([::1]:51056 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n4mGJ-00088w-18 for larch@yhetil.org; Tue, 04 Jan 2022 11:02:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36742) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4m6A-0005DV-HS for help-guix@gnu.org; Tue, 04 Jan 2022 10:51:42 -0500 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:32803) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n4m68-00033C-Di for help-guix@gnu.org; Tue, 04 Jan 2022 10:51:42 -0500 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id BEE8C3200AC9 for ; Tue, 4 Jan 2022 10:51:36 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 04 Jan 2022 10:51:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fullmeta.me; h= from:to:subject:date:message-id:mime-version:content-type; s= fm3; bh=QeJQujEgwcLVxAtX+huvO5dI8yC+LuGHOHW8YIaUAAA=; b=oDF5nl/u jm2IWr6f/vME6KVd6x/CD9Y7/9gN1vTgL6sFjkjIBmbCUfBMsLenH1eErD+aGDDe gXcPcIV96MiuhVXE89ftRnFVKw+/dGq7FTfgPFQaQ9hUym+tdwsUimm4uTkBasRC FH949pBqN9LcoNgYavobOSV0j6cP9HqASJd55Ts4+/4UwVZIVakgRNyeyHNbCmpO HlkDHbH06/jsNiGRc3W4gVR+o71ZqUYpMskGy8z7R3Y3/Tq6c+7+Ye4o4cgifTbD h8o+I+NWyEVwkrnBRUBnnfRQNY6byGus20lsGqn/qjG1r1BWmbz4EQsurY1WAsUR LP7H0KHp0Uz67g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=QeJQujEgwcLVxAtX+huvO5dI8yC+L uGHOHW8YIaUAAA=; b=AQqWpHHgHOFdIjtvOOvFcC7aB5w5Am/wVxDDwHVSEk9rr ye3kOKF/J4S9Yb4CyLMwt4+joW5LHQlUbY5uBeny4uNp1faNwuBlrZ+H2nJ7GH9w zn435/bRhbkwvJ9jKd3/CIrrNVyxWaJlJcFqgmVBzAsBAjezR/pqqyWF2EaGI2+h NyxQtWyZ8/9jhsQZ76ykMkaBcSXU6ANh7graBnb4JD1AYBftF9cz98Nov5d8nTTF AzEXDBd69th7hE/7BH2L7+Z9vMy9i06HnCzTHD/cLqrmeo3Y7uxf+LaG2WbV9JHt 8Krl0C/gEfswhP+JsuzOssq0mdgTHc0dKRqZ3bKAg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrudeffedgkeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpegfhffvufffkfggtgesthdtredttd ertdenucfhrhhomhepthesfhhulhhlmhgvthgrrdhmvgenucggtffrrghtthgvrhhnpeef tedvleffjefgjeffuedvleeujedvueekvdduiedvjeetffevvdffffdtffdvjeenucffoh hmrghinhepghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhep mhgrihhlfhhrohhmpehtsehfuhhllhhmvghtrgdrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Tue, 4 Jan 2022 10:51:35 -0500 (EST) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id e257b6d7 for ; Tue, 4 Jan 2022 15:51:34 +0000 (UTC) User-agent: mu4e 1.6.9; emacs 28.0.50 From: t@fullmeta.me To: help-guix@gnu.org Subject: Ctrl-g inside `guix shell --container emacs` broken Date: Tue, 04 Jan 2022 15:30:58 +0000 Message-ID: <877dbfjy7t.fsf@fastmail.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=64.147.123.21; envelope-from=t@fullmeta.me; helo=wout5-smtp.messagingengine.com X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 04 Jan 2022 11:01:50 -0500 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1641312132; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=QeJQujEgwcLVxAtX+huvO5dI8yC+LuGHOHW8YIaUAAA=; b=bspX38KUSkFfXcClKRgjaB7FKvByyGmEhtmvvhew2C/3loeVk4x0NQpAnL8cHrRyCzm3H4 oxRs1fBAzt+TXmuDebMYJmViUyM04ej/P4LgP9hI3KUARZyrLtGKiRFfbtWlpMneTGL9+q x6w2s4JvVmATSTNTcVDCG7NsrhzJJa58dRVqAbRUXaVdqjNSoKPF+cKSB+L0W+1LKP2ibS DAMAEm9+FB7A2rthmqbq/OvASQAfiYgxDJy9eSPM69DklZEC2blPW4qDs4V8T8W+sOjJu/ Pyfn1d7Gjow05/Kp1AXnbU0aC7/gY8uyBfNhvYkWO4bvEnQlyAom8+LMndK3Ew== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641312132; a=rsa-sha256; cv=none; b=sRLsGG75J4PU08JqdBw6ITaOkZEdsBGj5n7b3IuRI10zPtNb5KFY2epc5QXXNn6RpMrS7L uhlneRtNi08lsdbTg5XxdyjxKPvhNsAeoVseO7qCpr3xqgrzapA4vWAKDyprn0tenGDiDy VwYt3ZpGt+n4x88+rSkcDaGlL/Wvg58k5QJub+xv7HpFMcKnDhwXUXC69mjYBajHpLmXvb qA3ShF+VuRb1K7YKkxr1ZPz3XDcdxd05XJTaaats8NnUwV7pqNlvxQuJKtxKGsqPk6nQcn vr5RNi6Q+OW4tRSppIwbgyoeRKiOUi9vhF6QOGtxDDNqGLlTOZ3J0UFijnGiVg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=fullmeta.me header.s=fm3 header.b="oDF5nl/u"; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=AQqWpHHg; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -12.19 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=fullmeta.me header.s=fm3 header.b="oDF5nl/u"; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=AQqWpHHg; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 10E892A147 X-Spam-Score: -12.19 X-Migadu-Scanner: scn0.migadu.com X-TUID: 7MDpTQ4Mobet Hi Guix. This one is both subtle and deadly given mussle memory we all develop with Emacs key bindings. Tested with both Emacs 27 and 28: $ guix shell --container --no-cwd --preserve='^TERM$' emacs -- emacs -nw -q -Q or $ guix shell --container --no-cwd --preserve='^TERM$' emacs-next -- emacs -nw -q -Q Starts terminal Emacs fine. Now Ctrl-g or M-x followed by Ctrl-g which typically would send `keyboard-quit` and also abort-recursive-edit. You get kicked out of Emacs and shell ends up in a weird state, with Ctrl-D being the only way to kill it. Replicated in xterm and gnome-terminal. This is specific to --container! The following works just fine: $ guix shell --preserve='^TERM$' emacs -- emacs -nw -q -Q For completness I also tried: $ guix shell --container --no-cwd --preserve='^TERM$' emacs bash -- bash -c 'emacs -nw -q -Q' Any idea where and why --container could be breaking things? Note that `abort-recursive-edit` works perfectly fine. How exactly --container starts those processes? Could it be running some weird "shell" version that treats C-g specially somehow? How do I make it stop? $ guix describe Generation 10 Dec 27 2021 15:36:01 (current) guix 9e9489f repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 9e9489fb11ac73e51abe293235738d70365affa9 Thanks