Function: hexl-self-insert-command

hexl-self-insert-command is an interactive and byte-compiled function defined in hexl.el.gz.

Signature

(hexl-self-insert-command ARG)

Documentation

Insert this character.

Interactively, with a numeric argument, insert this character that many times.

Non-ASCII characters are first encoded with buffer-file-coding-system, and their encoded form is inserted byte by byte. Note that if the hexl buffer was produced by hexl-find-file, its coding-system is no-conversion.

Inserting non-ASCII characters requires caution: the buffer's coding-system should correspond to the encoding on disk, and multibyte characters should be inserted with cursor on the first byte of a multibyte sequence whose length is identical to the length of the multibyte sequence to be inserted, otherwise this could produce invalid multibyte sequences. Non-ASCII characters in ISO-2022 encodings should preferably inserted byte by byte, to avoid problems caused by the designation sequences before the actual characters.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/hexl.el.gz
(defun hexl-self-insert-command (arg)
  "Insert this character.
Interactively, with a numeric argument, insert this character that many times.

Non-ASCII characters are first encoded with `buffer-file-coding-system',
and their encoded form is inserted byte by byte.  Note that if the
hexl buffer was produced by `hexl-find-file', its coding-system
is no-conversion.

Inserting non-ASCII characters requires caution: the buffer's
coding-system should correspond to the encoding on disk, and
multibyte characters should be inserted with cursor on the first
byte of a multibyte sequence whose length is identical to the
length of the multibyte sequence to be inserted, otherwise this
could produce invalid multibyte sequences.  Non-ASCII characters
in ISO-2022 encodings should preferably inserted byte by byte, to
avoid problems caused by the designation sequences before the
actual characters."
  (interactive "p")
  (hexl-insert-multibyte-char last-command-event arg))