From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Helmut Eller Newsgroups: gmane.emacs.bugs Subject: bug#65837: 30.0.50; Debugger in non-main threads Date: Sat, 09 Sep 2023 17:35:22 +0200 Message-ID: References: <83bkebvbsj.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4110"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 65837@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 09 17:36:19 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qf00Q-0000vF-Pp for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Sep 2023 17:36:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qf009-00027M-Gi; Sat, 09 Sep 2023 11:36:01 -0400 Original-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 1qf008-00027B-KD for bug-gnu-emacs@gnu.org; Sat, 09 Sep 2023 11:36:00 -0400 Original-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 1qf008-00089b-Bd for bug-gnu-emacs@gnu.org; Sat, 09 Sep 2023 11:36:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qf00A-0008Ce-9f for bug-gnu-emacs@gnu.org; Sat, 09 Sep 2023 11:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Helmut Eller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Sep 2023 15:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65837 X-GNU-PR-Package: emacs Original-Received: via spool by 65837-submit@debbugs.gnu.org id=B65837.169427373831501 (code B ref 65837); Sat, 09 Sep 2023 15:36:02 +0000 Original-Received: (at 65837) by debbugs.gnu.org; 9 Sep 2023 15:35:38 +0000 Original-Received: from localhost ([127.0.0.1]:48311 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qezzl-0008C1-OJ for submit@debbugs.gnu.org; Sat, 09 Sep 2023 11:35:38 -0400 Original-Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]:59422) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qezzg-0008Bk-MP for 65837@debbugs.gnu.org; Sat, 09 Sep 2023 11:35:36 -0400 Original-Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-401da71b7faso35203545e9.2 for <65837@debbugs.gnu.org>; Sat, 09 Sep 2023 08:35:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694273724; x=1694878524; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=zGfImGE2i0Oa/11mM60HNUIqRHTuhK49A+miOddTXek=; b=LXOv9oXZkVlUhlJAYvJdOnEL9ph7nfcY7bBGUYxi2xEGen2vRPuHWLOtrYPKs8wORn y/ZC3zs8MIYEnaPU/FYP0bnO8FBNcj6aX7CpdZvjZxCaAPfoyS647xmisq0jnUYJYzbO BsNhTlE1lYwhE1KErXUusU0q1Yx65/WoAyThkg1naVz4Le8UXIt1BGMEh0c96bx3X2vF 1lLW/J1Vf55yYRzsdZ+m2h93vaP0qXKBVPS+hbETl29CWuSm3npF8n2NMNDw2m28Tukz /XYFf69W2jeGlESgt9MJAYPfMBjz0uCWg+++ochuEcg3DFRx+N80etwdWjSLLlNWWyxi IxHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694273724; x=1694878524; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=zGfImGE2i0Oa/11mM60HNUIqRHTuhK49A+miOddTXek=; b=lM82VSShNWTGActa0S+0+Pcl9XK60NntQ8xBm+QWwjx0o5seqYzovm7R/3W1U6NREI H0KLsCe3hXDhmlmGNUyVewUnBGFkzUAtogNTMK8wgw8H57v9XC53X5iD/DD1FciJHVcf tZOG6it1Dus7YxGiBEqStrx9bQOLZa/HpkkfQw1X7YHwE/9DWvhtdZay4hmw7oUshqZl 4wIK/Ak64Jqv2DSicrCSwqpVTzzm11uyB4a/Pv60E6ZKYs50/g76TCDvi9Y7okrQODW4 QHe0NMAhIUp0NFq8zckqO2O7QdVhLe3Tpa4BjMK00skMtEW3RQuj/TM3IW0uE74bF49X M/NA== X-Gm-Message-State: AOJu0YykOYputJW7ezEwoXnpzhNiW6wl/JfyKzv3iqNjLiiTK2n0473j UjKElVCkmKRhe77ATLYmrTR6pAgiGPQ= X-Google-Smtp-Source: AGHT+IGiGtN94AMttN0mrMqdFfCi7f4elFfhKEMIKwhpn+9h0CKKyamQ1SJD3ykz4n/X56dsur74vA== X-Received: by 2002:a7b:c4c5:0:b0:3fe:db1b:8c39 with SMTP id g5-20020a7bc4c5000000b003fedb1b8c39mr4821207wmk.41.1694273723593; Sat, 09 Sep 2023 08:35:23 -0700 (PDT) Original-Received: from caladan ([31.177.119.112]) by smtp.gmail.com with ESMTPSA id p7-20020a1c7407000000b003fe23b10fdfsm8124873wmc.36.2023.09.09.08.35.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Sep 2023 08:35:23 -0700 (PDT) In-Reply-To: <83bkebvbsj.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 09 Sep 2023 14:14:20 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:269875 Archived-At: On Sat, Sep 09 2023, Eli Zaretskii wrote: > AFAIR, it is not trivial to improve > the thread error handling significantly, but patches are welcome, of > course. Is there a design/plan for how recursive-edit is supposed to work in non-main threads? E.g. some options that come to mind: 1) It should be allowed without restriction (what currently seems to be happening). 2) There should be some locking/multiplexing scheme so that only some "foreground thread" is allowed to read events from the keyboard. 3) Only the main thread is allowed to call recursive-edit; all other threads have to communicate with the main thread in some way. (Maybe there should be one thread per terminal that runs a command loop, but that's an exotic detail.) Helmut