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

Delete key shows read-only buffer error (terminal only) #741

Open
flashcode opened this issue Nov 16, 2024 · 0 comments
Open

Delete key shows read-only buffer error (terminal only) #741

flashcode opened this issue Nov 16, 2024 · 0 comments

Comments

@flashcode
Copy link

Hi,

This is related to issue #212 and PR #213.

When running Emacs in terminal the Delete key still shows: Buffer is read-only: #<buffer *vterm*> (works fine in Emacs launched as graphical app).

If I do this, the problem is fixed:

(define-key vterm-mode-map [deletechar] #'vterm-send-delete)

Maybe this could also be part of the default config?

Also I'm curious to understand the difference of behavior between graphical app and terminal on this specific key: when I do C-h k then press Delete, the help is slightly different, that could explain the different behavior.

In graphical session:

<deletechar> (translated from <delete>) runs the command delete-forward-char
(found in global-map), which is an interactive native-compiled Lisp function in
‘simple.el’.

In terminal (emacs -nw):

<deletechar> runs the command delete-forward-char (found in global-map), which
is an interactive native-compiled Lisp function in ‘simple.el’.

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant