Function: set-display-table-and-terminal-coding-system

set-display-table-and-terminal-coding-system is a byte-compiled function defined in mule-cmds.el.gz.

Signature

(set-display-table-and-terminal-coding-system LANGUAGE-NAME &optional CODING-SYSTEM DISPLAY INHIBIT-REFRESH)

Documentation

Set up the display table and terminal coding system for LANGUAGE-NAME.

If INHIBIT-REFRESH, don't redraw the current frame.

Source Code

;; Defined in /usr/src/emacs/lisp/international/mule-cmds.el.gz
(defun set-display-table-and-terminal-coding-system (language-name
                                                     &optional coding-system
                                                     display inhibit-refresh)
  "Set up the display table and terminal coding system for LANGUAGE-NAME.
If INHIBIT-REFRESH, don't redraw the current frame."
  (let ((coding (get-language-info language-name 'unibyte-display)))
    (if (and coding
	     (or (not coding-system)
		 (coding-system-equal coding coding-system)))
	(standard-display-european-internal)
      ;; The following 2 lines undo the 8-bit display that we set up
      ;; in standard-display-european-internal, which see.  This is in
      ;; case the user has used standard-display-european earlier in
      ;; this session.
      (when standard-display-table
	(dotimes (i 128)
	  (aset standard-display-table (+ i 128) nil))))
    (set-terminal-coding-system (or coding-system coding) display
                                inhibit-refresh)))