Copy/Paste seems broken for hexl-mode
, eg. M-w
copies the hex tables to the clipboard, rather useless. Since hexl-mode
has overwrite-mode
by default, how can the following be implemented?
M-w
should copy marked binary data to the clipboardC-y
should insert contents of clipboard by overwriting, starting at cursor positionC-w
should overwrite the marked area withhexl-mode-clear-value
DEL
should set current byte tohexl-mode-clear-value
and go to previous byte
hexl-mode-clear-value
should be a customisable variable defaulting to \x00
.
If Emacs is not in overwrite mode, copy/paste should work like plain text files, though this seems like low priority / undesirable since skewing binary data equals data corruption in most cases.