comparison src/coding.c @ 89519:040a08a2a879

(Fread_coding_system): Fix arg of XSETSTRING. (Fset_coding_system_priority): Doc fix.
author Dave Love <fx@gnu.org>
date Wed, 17 Sep 2003 19:21:10 +0000
parents 2f877ed80fa6
children 4f394eed6ff2
comparison
equal deleted inserted replaced
89518:c9f7a2f363ca 89519:040a08a2a879
6690 (prompt, default_coding_system) 6690 (prompt, default_coding_system)
6691 Lisp_Object prompt, default_coding_system; 6691 Lisp_Object prompt, default_coding_system;
6692 { 6692 {
6693 Lisp_Object val; 6693 Lisp_Object val;
6694 if (SYMBOLP (default_coding_system)) 6694 if (SYMBOLP (default_coding_system))
6695 XSETSTRING (default_coding_system, SYMBOL_NAME (default_coding_system)); 6695 XSETSTRING (default_coding_system, XPNTR (SYMBOL_NAME (default_coding_system)));
6696 val = Fcompleting_read (prompt, Vcoding_system_alist, Qnil, 6696 val = Fcompleting_read (prompt, Vcoding_system_alist, Qnil,
6697 Qt, Qnil, Qcoding_system_history, 6697 Qt, Qnil, Qcoding_system_history,
6698 default_coding_system, Qnil); 6698 default_coding_system, Qnil);
6699 return (SCHARS (val) == 0 ? Qnil : Fintern (val, Qnil)); 6699 return (SCHARS (val) == 0 ? Qnil : Fintern (val, Qnil));
6700 } 6700 }
7871 7871
7872 DEFUN ("set-coding-system-priority", Fset_coding_system_priority, 7872 DEFUN ("set-coding-system-priority", Fset_coding_system_priority,
7873 Sset_coding_system_priority, 0, MANY, 0, 7873 Sset_coding_system_priority, 0, MANY, 0,
7874 doc: /* Assign higher priority to the coding systems given as arguments. 7874 doc: /* Assign higher priority to the coding systems given as arguments.
7875 If multiple coding systems belongs to the same category, 7875 If multiple coding systems belongs to the same category,
7876 all but the first one are ignored. */) 7876 all but the first one are ignored.
7877
7878 usage: (set-coding-system-priority ...) */)
7877 (nargs, args) 7879 (nargs, args)
7878 int nargs; 7880 int nargs;
7879 Lisp_Object *args; 7881 Lisp_Object *args;
7880 { 7882 {
7881 int i, j; 7883 int i, j;