Closed dangirsh closed 3 years ago
What is the output of C-h +
? Can you reproduce with emacs -Q
?
C-h +
is undefined.
Assuming you meant C-h k +
, that's (vterm--self-insert)
, which other characters are also bound to, including *
.
The problem reproduces exactly with emacs -Q
Specifically, in a fresh emacs -Q
, I ran:
(add-to-list 'load-path "/home/dan/.emacs.d/.local/straight/repos/emacs-libvterm")
(require 'vterm)
It then asked me to recompile the module, which I did.
The ran (require 'vterm)
again, which opened a terminal window. Neither the +
or *
keys would insert characters.
Thanks, I meant C-h k +
. I am surprised that the problem occurs with emacs -Q
. Could it be that your system is capturing +
and *
for some reason? The other possible explanation is that emacs28
is the problem. I can offer this as a temporary workaround
(defun vetrm-send-plus ()
(interactive)
(vterm-send-string "+"))
Then you bind this to +
. Similarly with *
.
I will try emacs 28 to see if there's anything wrong with it.
Thanks!
Your fix works for me.
My system is XMonad running on Xubuntu 20.04 (though the same problem occured on 18.04). No desktop environment is running.
I'm pretty sure I would have noticed this problem sooner if XMonad was the culprit, so my guess is it's a new Emacs issue.
On Mon, Aug 10, 2020 at 9:23 AM Gabriele Bozzola notifications@github.com wrote:
Thanks, I meant C-h k +. I am surprised that the problem occurs with emacs -Q. Could it be that your system is capturing + and * for some reason? The other possible explanation is that emacs28 is the problem. I can offer this as a temporary workaround
(defun vetrm-send-plus () (interactive) (vterm-send-string "+"))
Then you bind this to +. Similarly with *.
I will try emacs 28 to see if there's anything wrong with it.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/akermu/emacs-libvterm/issues/381#issuecomment-671454316, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI6TEMKZD6KIUCECH6MINDSAANJJANCNFSM4PZMGRSA .
I updated to Emacs 28 and I found that +
and *
work (on my machine), so it's likely not a general problem with Emacs 28.
does 1dd2e5eb5edb6decd7c2400f1143de6aa65a0550 fix your problem
@jixiuf Yes, that was the issue.
I had accidentally bound the numeric plus to my keyboard instead of the normal plus. Hadn't realized there were two plusses!
Thanks for this package! vterm in Emacs is now my primary terminal.
I find that I can't insert the
+
or*
key anymore. Not sure what changed, or how recently. Pasting in these characters works, and characters^=&!@#$~{(<>)]}%/\';|:".
and backtick all work fine.Any tips for debugging this greatly appreciated!
System info: