Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emacs-everywhere works up to pasting text but then keyboard and mouse act weirdly and I can't continue working #29

Open
herop opened this issue Jun 10, 2021 · 6 comments
Labels
!?!? What on earth is happening here? I have no clue. Send help. bug Make it work plz Doom You've doomed yourself to the whims of a flying meatball help wanted Ok, this is more than I can manage Linux The right choice

Comments

@herop
Copy link

herop commented Jun 10, 2021

What did you expect to happen?

I start emacs --daemon
Run DOOM
Click in a browser text field (like this one)
Invoke with a KB-shortcut emacsclient --eval "(emacs-everywhere)"
Type some text and commit it with C-c C-c
Text appears in the text-field (of, say a browser)
I continue working...

What actually happened?

The exact as above, but:
(unfortunately there is nothing unusual posted in messages or in the terminal if I invoke emacs-everywhere from there

I type ANY character into, say a browser text field and the character is not shown but my Garuda-Linux does something weird (maybe what it thinks a C-<character typed> should do
If I click with left mouse-button inside (whatever) DOOM buffer (not a link, just whitespace) a UI Buffer-List (even though UI is disabled) pops up
I need to choose a minimum of 2 to 3 buffers with continuous clicks (which then is opened instead of the current buffer) to get back control of what mouse-clicks, keyboard use and text input supposed to do
Unfortunately I cannot provide any screenshot because of the weird behavior described above

Describe your attempts to resolve the issue

I did not configure emacs-everywhere at all. Because I wanted it to work first and then see if I can improve upon it.
Steps to reproduce

See above.
System Information
https://pastebin.com/UdTEB0Fs

@tecosaur tecosaur added bug Make it work plz Doom You've doomed yourself to the whims of a flying meatball help wanted Ok, this is more than I can manage Linux The right choice !?!? What on earth is happening here? I have no clue. Send help. labels Jun 10, 2021
@enricoflor
Copy link

I have the same problem and the fix that works for me is to press C-g (which is bound to keyboard-quit as per standard) after the text is pasted wherever it is supposed to be.

@herop
Copy link
Author

herop commented Sep 14, 2021

I have the same problem and the fix that works for me is to press C-g (which is bound to keyboard-quit as per standard) after the text is pasted wherever it is supposed to be.

This is a life-saver. Thank you so much for sharing.
Strangely (in KDE Plasma) the window I create with emacsclient --eval "(emacs-everywhere)" won't raise above any other window, meaning it's always (!!) at the very bottom layer of windows and I must switch to it to raise and work with it.
image

Would you happen to know what can be done about it?

@tecosaur
Copy link
Owner

Try setting focus stealing prevention to "None"

image

@herop
Copy link
Author

herop commented Sep 14, 2021

That's IT. All of a sudden e-e is no only usable, but exactly what people need that hate not using Emacs for - any - writing.

One more thing, if I may: What is your best-practice way of using Markdown as minor-mode or output?

Have a wonderful day,
Jochen

@tecosaur
Copy link
Owner

Well, ideally you could change major mode and EE would stay active in the buffer, but as you can tell we haven't got that working yet.

@donatello
Copy link

This issue is happening to me too, but it is happening only when I switch modes in the new emacs frame that pops up.

For example, in the new frame if I do the following:

  1. switch to rust-mode with M-x rust-mode
  2. type some text
  3. switch to emacs-everywhere-mode with M-x emacs-everywhere-mode
  4. Enter C-c C-c

The text gets pasted into the text box in the browser, but the desktop is messed up weirdly. `C-g` does appear to fix this though.

If I don’t switch modes though, everything is fine!

I am running Ubuntu 22.10 desktop with Xorg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
!?!? What on earth is happening here? I have no clue. Send help. bug Make it work plz Doom You've doomed yourself to the whims of a flying meatball help wanted Ok, this is more than I can manage Linux The right choice
Projects
None yet
Development

No branches or pull requests

4 participants