From: Ihor Radchenko <yantar92@posteo.net>
To: SyedZuhair <syed@riseup.net>
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
Date: Fri, 10 Nov 2023 09:33:34 +0000 [thread overview]
Message-ID: <87leb60x75.fsf@localhost> (raw)
In-Reply-To: <87zfzmk0sv.fsf@hoborg.mail-host-address-is-not-set>
SyedZuhair <syed@riseup.net> 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 <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
prev parent reply other threads:[~2023-11-10 9:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-09 22:40 [BUG] org-resolve-clocks use of read-char-exclusive without telling EXWM to change the focus back to Emacs results in deadlock SyedZuhair
2023-11-10 9:33 ` Ihor Radchenko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87leb60x75.fsf@localhost \
--to=yantar92@posteo.net \
--cc=emacs-orgmode@gnu.org \
--cc=syed@riseup.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).