Function: set-selection-coding-system

set-selection-coding-system is an interactive and byte-compiled function defined in mule.el.gz.

Signature

(set-selection-coding-system CODING-SYSTEM)

Documentation

Make CODING-SYSTEM used for communicating with other X clients.

When sending or receiving text via cut_buffer, selection, and clipboard, the text is encoded or decoded by CODING-SYSTEM.

View in manual

Probably introduced at or before Emacs version 20.3.

Key Bindings

Aliases

set-clipboard-coding-system

Source Code

;; Defined in /usr/src/emacs/lisp/international/mule.el.gz
(defun set-selection-coding-system (coding-system)
  "Make CODING-SYSTEM used for communicating with other X clients.
When sending or receiving text via cut_buffer, selection, and clipboard,
the text is encoded or decoded by CODING-SYSTEM."
  (interactive "zCoding system for X selection: ")
  (check-coding-system coding-system)
  (setq selection-coding-system coding-system))