Function: nxml-insert-named-char
nxml-insert-named-char is an interactive and byte-compiled function
defined in nxml-mode.el.gz.
Signature
(nxml-insert-named-char ARG)
Documentation
Insert a character using its name.
The name is read from the minibuffer. Normally, inserts the character as a numeric character reference. With a prefix argument, inserts the character directly.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/nxml/nxml-mode.el.gz
;;; Character names
(defun nxml-insert-named-char (arg)
"Insert a character using its name.
The name is read from the minibuffer.
Normally, inserts the character as a numeric character reference.
With a prefix argument, inserts the character directly."
(interactive "*P")
(let ((code (read-char-by-name "Character name: ")))
(when code
(insert (if arg code (format "&#x%X;" code))))))