Function: set-buffer-process-coding-system

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

Signature

(set-buffer-process-coding-system DECODING ENCODING)

Documentation

Set coding systems for the process associated with the current buffer.

DECODING is the coding system to be used to decode input from the process, ENCODING is the coding system to be used to encode output to the process.

For a list of possible coding systems, use M-x list-coding-systems (list-coding-systems).

View in manual

Probably introduced at or before Emacs version 20.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/international/mule.el.gz
(defun set-buffer-process-coding-system (decoding encoding)
  "Set coding systems for the process associated with the current buffer.
DECODING is the coding system to be used to decode input from the process,
ENCODING is the coding system to be used to encode output to the process.

For a list of possible coding systems, use \\[list-coding-systems]."
  (declare (interactive-only set-process-coding-system))
  (interactive
   "zCoding-system for output from the process: \nzCoding-system for input to the process: ")
  (let ((proc (get-buffer-process (current-buffer))))
    (if (null proc)
	(error "No process")
      (check-coding-system decoding)
      (check-coding-system encoding)
      (set-process-coding-system proc decoding encoding)))
  (force-mode-line-update))