comparison src/coding.c @ 48182:9474e269efd1

Reformat some DEFUNs so that etags works.
author Dave Love <fx@gnu.org>
date Wed, 06 Nov 2002 23:31:21 +0000
parents d43e830821e0
children c2ce8280fb97
comparison
equal deleted inserted replaced
48181:4b996fe3a71f 48182:9474e269efd1
482 /* Alist of charsets vs revision number. */ 482 /* Alist of charsets vs revision number. */
483 Lisp_Object Vcharset_revision_alist; 483 Lisp_Object Vcharset_revision_alist;
484 484
485 /* Default coding systems used for process I/O. */ 485 /* Default coding systems used for process I/O. */
486 Lisp_Object Vdefault_process_coding_system; 486 Lisp_Object Vdefault_process_coding_system;
487
488 /* Char table for translating Quail and self-inserting input. */
489 Lisp_Object Vtranslation_table_for_input;
487 490
488 /* Global flag to tell that we can't call post-read-conversion and 491 /* Global flag to tell that we can't call post-read-conversion and
489 pre-write-conversion functions. Usually the value is zero, but it 492 pre-write-conversion functions. Usually the value is zero, but it
490 is set to 1 temporarily while such functions are running. This is 493 is set to 1 temporarily while such functions are running. This is
491 to avoid infinite recursive call. */ 494 to avoid infinite recursive call. */
6886 else 6889 else
6887 error ("Can't encode to Big5: %d", XFASTINT (ch)); 6890 error ("Can't encode to Big5: %d", XFASTINT (ch));
6888 return val; 6891 return val;
6889 } 6892 }
6890 6893
6891 DEFUN ("set-terminal-coding-system-internal", 6894 DEFUN ("set-terminal-coding-system-internal", Fset_terminal_coding_system_internal,
6892 Fset_terminal_coding_system_internal,
6893 Sset_terminal_coding_system_internal, 1, 1, 0, 6895 Sset_terminal_coding_system_internal, 1, 1, 0,
6894 doc: /* Internal use only. */) 6896 doc: /* Internal use only. */)
6895 (coding_system) 6897 (coding_system)
6896 Lisp_Object coding_system; 6898 Lisp_Object coding_system;
6897 { 6899 {
6906 terminal_coding.src_multibyte = 1; 6908 terminal_coding.src_multibyte = 1;
6907 terminal_coding.dst_multibyte = 0; 6909 terminal_coding.dst_multibyte = 0;
6908 return Qnil; 6910 return Qnil;
6909 } 6911 }
6910 6912
6911 DEFUN ("set-safe-terminal-coding-system-internal", 6913 DEFUN ("set-safe-terminal-coding-system-internal", Fset_safe_terminal_coding_system_internal,
6912 Fset_safe_terminal_coding_system_internal,
6913 Sset_safe_terminal_coding_system_internal, 1, 1, 0, 6914 Sset_safe_terminal_coding_system_internal, 1, 1, 0,
6914 doc: /* Internal use only. */) 6915 doc: /* Internal use only. */)
6915 (coding_system) 6916 (coding_system)
6916 Lisp_Object coding_system; 6917 Lisp_Object coding_system;
6917 { 6918 {
6925 safe_terminal_coding.src_multibyte = 1; 6926 safe_terminal_coding.src_multibyte = 1;
6926 safe_terminal_coding.dst_multibyte = 0; 6927 safe_terminal_coding.dst_multibyte = 0;
6927 return Qnil; 6928 return Qnil;
6928 } 6929 }
6929 6930
6930 DEFUN ("terminal-coding-system", 6931 DEFUN ("terminal-coding-system", Fterminal_coding_system,
6931 Fterminal_coding_system, Sterminal_coding_system, 0, 0, 0, 6932 Sterminal_coding_system, 0, 0, 0,
6932 doc: /* Return coding system specified for terminal output. */) 6933 doc: /* Return coding system specified for terminal output. */)
6933 () 6934 ()
6934 { 6935 {
6935 return terminal_coding.symbol; 6936 return terminal_coding.symbol;
6936 } 6937 }
6937 6938
6938 DEFUN ("set-keyboard-coding-system-internal", 6939 DEFUN ("set-keyboard-coding-system-internal", Fset_keyboard_coding_system_internal,
6939 Fset_keyboard_coding_system_internal,
6940 Sset_keyboard_coding_system_internal, 1, 1, 0, 6940 Sset_keyboard_coding_system_internal, 1, 1, 0,
6941 doc: /* Internal use only. */) 6941 doc: /* Internal use only. */)
6942 (coding_system) 6942 (coding_system)
6943 Lisp_Object coding_system; 6943 Lisp_Object coding_system;
6944 { 6944 {
6947 /* Character composition should be disabled. */ 6947 /* Character composition should be disabled. */
6948 keyboard_coding.composing = COMPOSITION_DISABLED; 6948 keyboard_coding.composing = COMPOSITION_DISABLED;
6949 return Qnil; 6949 return Qnil;
6950 } 6950 }
6951 6951
6952 DEFUN ("keyboard-coding-system", 6952 DEFUN ("keyboard-coding-system", Fkeyboard_coding_system,
6953 Fkeyboard_coding_system, Skeyboard_coding_system, 0, 0, 0, 6953 Skeyboard_coding_system, 0, 0, 0,
6954 doc: /* Return coding system specified for decoding keyboard input. */) 6954 doc: /* Return coding system specified for decoding keyboard input. */)
6955 () 6955 ()
6956 { 6956 {
6957 return keyboard_coding.symbol; 6957 return keyboard_coding.symbol;
6958 } 6958 }
7558 7558
7559 The other way to read escape sequences in a file without decoding is 7559 The other way to read escape sequences in a file without decoding is
7560 to explicitly specify some coding system that doesn't use ISO2022's 7560 to explicitly specify some coding system that doesn't use ISO2022's
7561 escape sequence (e.g `latin-1') on reading by \\[universal-coding-system-argument]. */); 7561 escape sequence (e.g `latin-1') on reading by \\[universal-coding-system-argument]. */);
7562 inhibit_iso_escape_detection = 0; 7562 inhibit_iso_escape_detection = 0;
7563
7564 DEFVAR_LISP ("translation-table-for-input", &Vtranslation_table_for_input,
7565 doc: /* Char table for translating self-inserting characters. */);
7566 Vtranslation_table_for_input = Qnil;
7563 } 7567 }
7564 7568
7565 char * 7569 char *
7566 emacs_strerror (error_number) 7570 emacs_strerror (error_number)
7567 int error_number; 7571 int error_number;