From: Eli Zaretskii Date: Wed, 15 Apr 1998 15:52:41 +0000 (+0000) Subject: (syms_of_coding): Declare and define inherit-process-coding-system. X-Git-Tag: emacs-20.3~1501 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ed29121d27adc780ecaed0f724e5de7e24725f6a;p=emacs.git (syms_of_coding): Declare and define inherit-process-coding-system. --- diff --git a/src/coding.c b/src/coding.c index 901eadf4337..6973a6d8e8e 100644 --- a/src/coding.c +++ b/src/coding.c @@ -321,6 +321,9 @@ Lisp_Object Vlatin_extra_code_table; /* Flag to inhibit code conversion of end-of-line format. */ int inhibit_eol_conversion; +/* Flag to make buffer-file-coding-system inherit from process-coding. */ +int inherit_process_coding_system; + /* Coding system to be used to encode text for terminal display. */ struct coding_system terminal_coding; @@ -5190,6 +5193,12 @@ There are three such tables, `file-coding-system-alist',\n\ "*Non-nil inhibit code conversion of end-of-line format in any cases."); inhibit_eol_conversion = 0; + DEFVAR_BOOL ("inherit-process-coding-system", &inherit_process_coding_system, + "Non-nil means process buffer inherits coding system of process output.\n\ +Bind it to t if the process output is to be treated as if it were a file\n\ +read from some filesystem."); + inherit_process_coding_system = 0; + DEFVAR_LISP ("file-coding-system-alist", &Vfile_coding_system_alist, "Alist to decide a coding system to use for a file I/O operation.\n\ The format is ((PATTERN . VAL) ...),\n\