Function: sgml-name-char

sgml-name-char is an interactive and byte-compiled function defined in sgml-mode.el.gz.

Signature

(sgml-name-char &optional CHAR)

Documentation

Insert a symbolic character name according to sgml-char-names.

Non-ASCII chars may be inserted either with the meta key, as in M-SPC for no-break space or M-- for a soft hyphen; or via an input method or encoded keyboard operation.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/sgml-mode.el.gz
;; Why doesn't this use the iso-cvt table or, preferably, generate the
;; inverse of the extensive table in the SGML Quail input method?  -- fx
;; I guess that's moot since it only works with Latin-1 anyhow.
(defun sgml-name-char (&optional char)
  "Insert a symbolic character name according to `sgml-char-names'.
Non-ASCII chars may be inserted either with the meta key, as in M-SPC for
no-break space or M-- for a soft hyphen; or via an input method or
encoded keyboard operation."
  (interactive "*")
  (insert ?&)
  (or char
      (setq char (read-quoted-char "Enter char or octal number")))
  (delete-char -1)
  (insert char)
  (undo-boundary)
  (sgml-namify-char))