Skip to content

When overwrite-mode is active replace characters #132

@lordnik22

Description

@lordnik22

If overwrite-mode is active the typed character should be inserted instead of the original.

When I delete a character (for example to correct it) then it should restore the original character.

Keep in mind to transfer the text-properties from the original to the typed character and vice versa.

There are two possible strategies to "restore":

  1. store the original character in the text-property of the typed character.
  2. calculate the exact position via orig-pos and get the original character from the content-buffer. (This solution is much harder, for example it would result in inconsistencies when certain transform-hook are used, the orig-pos is stored per "word" not per character).

Clarifications:

"word" isn't (thing-at-point 'word). It's rather consecutive characters until whitespace is hit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions