comparison src/coding.c @ 88645:d099a8b267fe

Doc fixes. (Fcoding_system_aliases): Fix return value.
author Dave Love <fx@gnu.org>
date Sun, 26 May 2002 17:07:35 +0000
parents 780b91d4a7e5
children d3b1f30e2267
comparison
equal deleted inserted replaced
88644:4d68daadc430 88645:d099a8b267fe
7174 return Qnil; 7174 return Qnil;
7175 } 7175 }
7176 7176
7177 DEFUN ("set-coding-system-priority", Fset_coding_system_priority, 7177 DEFUN ("set-coding-system-priority", Fset_coding_system_priority,
7178 Sset_coding_system_priority, 1, MANY, 0, 7178 Sset_coding_system_priority, 1, MANY, 0,
7179 doc: /* Assign higher priority to coding systems given as arguments. 7179 doc: /* Assign higher priority to the coding systems given as arguments.
7180 usage: (set-coding-system-priority CODING-SYSTEM ...) */) 7180 usage: (set-coding-system-priority CODING-SYSTEM ...) */)
7181 (nargs, args) 7181 (nargs, args)
7182 int nargs; 7182 int nargs;
7183 Lisp_Object *args; 7183 Lisp_Object *args;
7184 { 7184 {
7224 return Qnil; 7224 return Qnil;
7225 } 7225 }
7226 7226
7227 DEFUN ("coding-system-priority-list", Fcoding_system_priority_list, 7227 DEFUN ("coding-system-priority-list", Fcoding_system_priority_list,
7228 Scoding_system_priority_list, 0, 1, 0, 7228 Scoding_system_priority_list, 0, 1, 0,
7229 doc: /* Return a list of coding systems ordered by their priorities. */) 7229 doc: /* Return a list of coding systems ordered by their priorities.
7230 HIGHESTP non-nil means just return the highest priority one. */)
7230 (highestp) 7231 (highestp)
7231 Lisp_Object highestp; 7232 Lisp_Object highestp;
7232 { 7233 {
7233 int i; 7234 int i;
7234 Lisp_Object val; 7235 Lisp_Object val;
7715 return Fsignal (Qwrong_number_of_arguments, 7716 return Fsignal (Qwrong_number_of_arguments,
7716 Fcons (intern ("define-coding-system-internal"), 7717 Fcons (intern ("define-coding-system-internal"),
7717 make_number (nargs))); 7718 make_number (nargs)));
7718 } 7719 }
7719 7720
7721 /* Fixme: should this record the alias relationships for
7722 diagnostics? */
7720 DEFUN ("define-coding-system-alias", Fdefine_coding_system_alias, 7723 DEFUN ("define-coding-system-alias", Fdefine_coding_system_alias,
7721 Sdefine_coding_system_alias, 2, 2, 0, 7724 Sdefine_coding_system_alias, 2, 2, 0,
7722 doc: /* Define ALIAS as an alias for CODING-SYSTEM. */) 7725 doc: /* Define ALIAS as an alias for CODING-SYSTEM. */)
7723 (alias, coding_system) 7726 (alias, coding_system)
7724 Lisp_Object alias, coding_system; 7727 Lisp_Object alias, coding_system;
7754 } 7757 }
7755 7758
7756 DEFUN ("coding-system-base", Fcoding_system_base, Scoding_system_base, 7759 DEFUN ("coding-system-base", Fcoding_system_base, Scoding_system_base,
7757 1, 1, 0, 7760 1, 1, 0,
7758 doc: /* Return the base of CODING-SYSTEM. 7761 doc: /* Return the base of CODING-SYSTEM.
7759 Any alias or subsidiary coding systems are not base coding system. */) 7762 Any alias or subsidiary coding system is not a base coding system. */)
7760 (coding_system) 7763 (coding_system)
7761 Lisp_Object coding_system; 7764 Lisp_Object coding_system;
7762 { 7765 {
7763 Lisp_Object spec, attrs; 7766 Lisp_Object spec, attrs;
7764 7767
7785 } 7788 }
7786 7789
7787 7790
7788 DEFUN ("coding-system-aliases", Fcoding_system_aliases, Scoding_system_aliases, 7791 DEFUN ("coding-system-aliases", Fcoding_system_aliases, Scoding_system_aliases,
7789 1, 1, 0, 7792 1, 1, 0,
7790 doc: /* Return the list of aliases of CODING-SYSTEM. 7793 doc: /* Return the list of aliases of CODING-SYSTEM. */)
7791 A base coding system is what made by `define-coding-system'.
7792 Any alias nor subsidiary coding systems are not base coding system. */)
7793 (coding_system) 7794 (coding_system)
7794 Lisp_Object coding_system; 7795 Lisp_Object coding_system;
7795 { 7796 {
7796 Lisp_Object spec; 7797 Lisp_Object spec;
7797 7798
7798 if (NILP (coding_system)) 7799 if (NILP (coding_system))
7799 coding_system = Qno_conversion; 7800 coding_system = Qno_conversion;
7800 CHECK_CODING_SYSTEM_GET_SPEC (coding_system, spec); 7801 CHECK_CODING_SYSTEM_GET_SPEC (coding_system, spec);
7801 return AREF (spec, 2); 7802 return AREF (spec, 1);
7802 } 7803 }
7803 7804
7804 DEFUN ("coding-system-eol-type", Fcoding_system_eol_type, 7805 DEFUN ("coding-system-eol-type", Fcoding_system_eol_type,
7805 Scoding_system_eol_type, 1, 1, 0, 7806 Scoding_system_eol_type, 1, 1, 0,
7806 doc: /* Return eol-type of CODING-SYSTEM. 7807 doc: /* Return eol-type of CODING-SYSTEM.