Function: keyboard-translate

keyboard-translate is a byte-compiled function defined in subr.el.gz.

Signature

(keyboard-translate FROM TO)

Documentation

Translate character FROM to TO on the current terminal.

This is a legacy function; see key-translate for the recommended function to use instead.

This function creates a keyboard-translate-table if necessary and then modifies one entry in it.

View in manual

Probably introduced at or before Emacs version 21.1.

Source Code

;; Defined in /usr/src/emacs/lisp/subr.el.gz
(defun keyboard-translate (from to)
  "Translate character FROM to TO on the current terminal.
This is a legacy function; see `key-translate' for the
recommended function to use instead.

This function creates a `keyboard-translate-table' if necessary
and then modifies one entry in it."
  (or (char-table-p keyboard-translate-table)
      (setq keyboard-translate-table
	    (make-char-table 'keyboard-translate-table nil)))
  (aset keyboard-translate-table from to))