Skip to content

C-g doesn't work in EXWM buffers #118

@walseb

Description

@walseb

Hello!

The C-g key is useful for when you something causes Emacs to hang.

It seems, currently in EXWM, the C-g key isn't forwarded to Emacs while it's busy, even when it's in the prefix keys.

Here's how to reproduce it.

Put this in your config to ensure EXWM allows C-g through:

(setopt exwm-input-prefix-keys
        '(
          ;; C-g
          7
          ))
  1. Open any EXWM buffer
  2. Type M-x eval-expression RET
  3. Type (sleep-for 10)
  4. Type C-g

You should now have to wait for the entire 10 seconds for Emacs to unblock.

quit should be shown in the minibuffer, which is the C-g you ran in step 4 being executed late.

Try it in a normal buffer, and pressing C-g should cancel the sleep right away.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions