From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 sAi0Bpz4TWWYzQAAG6o9tA:P1 (envelope-from ) for ; Fri, 10 Nov 2023 10:32:12 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id sAi0Bpz4TWWYzQAAG6o9tA (envelope-from ) for ; Fri, 10 Nov 2023 10:32: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 DBF445C77B for ; Fri, 10 Nov 2023 10:32:11 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=UVvqdwHq; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1699608732; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=9EVI2BfVpZKZKbs932Ygr1lISJTf5vgfJW6rbKzTIPs=; b=tNfjJNSxhiMcpr8NbfkyCdEAVRy9zCmIAPQRBrc4WerXwU9QP+yWRgqV82LPvrFmDp670C ThQYrOVD/tupqppndVyE1PfjVztcB1dS8XhfeiXNd4r1nGbItHIxl7/ifNZ8j/wxo8yUgV hZX38uhEhdo370HehWChnNQTk7+G7mjywNJ+WeO1NaF03Sj6KMToef+v0XXiByz4L5wOMC RyjE/IakcmKXHmtuqAPA8t3oLfRS6LiErVRraomdottQRbRbAMD00WKd8nWiVhdhx2QB3L DcQURFItritsBYUMyw07bV2QHjFjhRdNchSjDixGvaZLpe51ylwWNoM6EfUVKQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=UVvqdwHq; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1699608732; a=rsa-sha256; cv=none; b=uEcz8qznJwnCrUPQM+6pAHGvokye09KFEmBcnSHZGP0wabEdYlV1ViPznYUApEjKmUbePm OZs5VvpCfrumIf+6mVNLmlXgUoH8vcqp2lHdK6dHf2zrOLbKTKRaS6u3p0dykrCNrqMHef YYuI+xz7icFYw2bCQu2VLiuICUo14iMgF+ZQxadGd0eKiB44jE537txzzhChb2B5VLTFOa LeYV3mTbrUODvBGFFrUous2ELzxEpN4UMXEbw48Max9Is076YrAUS/FsQphkT22H7N/rlm rIoJJ6W1r32SoA4DlA6YfnZPkphW2v/LzPz0awIV09tWQVABb+/MFJRVzqSGpQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r1NrS-0002Jh-Pc; Fri, 10 Nov 2023 04:31:35 -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 1r1NrR-0002Gf-4O for emacs-orgmode@gnu.org; Fri, 10 Nov 2023 04:31:33 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r1NrO-0005XO-N3 for emacs-orgmode@gnu.org; Fri, 10 Nov 2023 04:31:32 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id D11B6240104 for ; Fri, 10 Nov 2023 10:31:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1699608687; bh=xcm0SBubkFQw88cP/cavdu/T2OaJOrW+XiG7Dgu4pq4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=UVvqdwHqV2HykzRN7JnG2O1akZ85kxEJy38oLwefMjzo9szpUf3U12CiZFrA5QLV6 xJ6/5vXr/MEQx+d5f1IVSEhwbYro/aiEB6zTvZX28B3s/CaLjVaJIPTtJBQBKqS5fs meIxUmbzZGpIUlPFjMuzqjvXYAuludE0AXWAutXgH1yp40pwo9j0mJBKjV8trWOttS Q3QyyRss8ouVguOvSJlYDVJ1eZVt1OqJ1NjMcaYylKwLL87rI3ZBSeeU4XnzpP03Bm VaSBkgQRSLqgp5WSUxCDpMQJ94XNNB8Xy8r2kpWQxPIZavIlX0X4pM2brGY9AeN/PK iU3UNN485Xn5A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SRYVQ2R62z9rxG; Fri, 10 Nov 2023 10:31:26 +0100 (CET) From: Ihor Radchenko To: SyedZuhair Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] org-resolve-clocks use of read-char-exclusive without telling EXWM to change the focus back to Emacs results in deadlock In-Reply-To: <87zfzmk0sv.fsf@hoborg.mail-host-address-is-not-set> References: <87zfzmk0sv.fsf@hoborg.mail-host-address-is-not-set> Date: Fri, 10 Nov 2023 09:33:34 +0000 Message-ID: <87leb60x75.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=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: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -7.05 X-Spam-Score: -7.05 X-Migadu-Queue-Id: DBF445C77B X-Migadu-Scanner: mx13.migadu.com X-TUID: R7cgifD2qrpu SyedZuhair writes: > The deadlock happens if org-resolve-clocks is called automatically (for > resolving idle time) while focus is in a EXWM-mode buffer. The > result is that the focus is stuck with the EXWM-mode buffer away from > Emacs and the user can not tell EXWM to change the focus to the > mini-buffer to interact with org because org is grabbing all the input > away from EXWM. > > The only way out for the user is to kill the application in EXWM buffer > from another ttyn terminal to be able to interact with > org-resolve-clocks. > > See the issue discussion here as well: https://github.com/ch11ng/exwm/issues/921 There is a reason why we switched to `read-char-exclusive'. See https://orgmode.org/list/87o82yaeie.fsf@gmail.com I also do not see any reason why Org should not use `read-char-exclusive' - the fact that EXWM does not support certain Emacs primitives is not Org's problem, but a shortcoming of EXWM. I would not mind changing `read-char-exclusive' to another equivalent if that solves EXWM problem, but I am not aware about anything equivalent. As you see in the above link, using `read-char' is not an option. Not an Org bug. Canceled. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at