In VisualStudio 2008, emacs mode - how can you enable overwrite?

Using VisualStudio 2008, the emacs keyboard mapping scheme is enabled.

If I select the text and try to insert it, it INSERTs the new text, and does not replace it.

Also, if I select the text and delete DELETE, it will delete the first character AFTER the selected text (the same as if I had no selected text).

Does anyone know how to fix this to get standard Windows behavior. I.e:

  • If I select text and try to paste it, it will replace the selected text with what I inserted.

  • If I select the text and press the DELETE key, it will actually delete the text that I selected

Thanks!

Abby

+4
source share
4 answers

XKeymacs , the Emacs keyboard utility application that you can run when using Visual Studio instead of the built-in VS Emacs schema, behaves in the perfect way that you described. When text is selected and if you delete, overwrite or paste over it, all old text will be deleted, not the first character.

+1
source

This is emacs behavior. However, one of the most common bits in initializing emacs of people, if they are Windows users, is to change this behavior in accordance with other editors. Since emacsโ€™s main goal is to tune, creating emacs that doesnโ€™t tune in this way is like saving a bath and dropping a baby.

+1
source

It drives me crazy! (I am using VS 2005)

I fixed issue # 2 by adding a delete key shortcut to the Edit.EmacsDeleteSelection command and another for the backspace so that I can select something and press Backspace or delete to delete the selected text.

But I'm at a dead end to question number 1. If I start typing on the selected fragment or pasting above it, it will simply insert at the end.

FWIW, others also noticed this problem , and reported that it was registered and classified as a "Will not fix the error" error report. Oh! AbbyF, it must be you :)

0
source

After a short search, I began to wonder how the real Emacs program works. It turns out that Emacs deletes on carrots and does not highlight the text when you press the delete key, and it also palettes next to the inscription, and not above the selected text. Therefore, I do not understand why people call this a mistake. Microsoft actually emulates Emacs correctly, it's just not someone likes it ...

0
source

All Articles