comparison src/doc.c @ 40139:0600331ddd52

(Vhelp_manyarg_func_alist): Variable removed. (Fdocumentation): Don't use it. (syms_of_doc): Don't initialize it.
author Miles Bader <miles@gnu.org>
date Sun, 21 Oct 2001 15:20:42 +0000
parents 579177964efa
children cdfd4d09b79a
comparison
equal deleted inserted replaced
40138:48875f4fda90 40139:0600331ddd52
44 44
45 #ifdef HAVE_INDEX 45 #ifdef HAVE_INDEX
46 extern char *index P_ ((const char *, int)); 46 extern char *index P_ ((const char *, int));
47 #endif 47 #endif
48 48
49 Lisp_Object Vdoc_file_name, Vhelp_manyarg_func_alist; 49 Lisp_Object Vdoc_file_name;
50 50
51 Lisp_Object Qfunction_documentation; 51 Lisp_Object Qfunction_documentation;
52 52
53 extern Lisp_Object Voverriding_local_map; 53 extern Lisp_Object Voverriding_local_map;
54 54
329 else if ((EMACS_INT) XSUBR (fun)->doc >= 0) 329 else if ((EMACS_INT) XSUBR (fun)->doc >= 0)
330 doc = build_string (XSUBR (fun)->doc); 330 doc = build_string (XSUBR (fun)->doc);
331 else 331 else
332 doc = get_doc_string (make_number (- (EMACS_INT) XSUBR (fun)->doc), 332 doc = get_doc_string (make_number (- (EMACS_INT) XSUBR (fun)->doc),
333 0, 0); 333 0, 0);
334 if (! NILP (tem = Fassq (function, Vhelp_manyarg_func_alist)))
335 doc = concat3 (doc, build_string ("\n"), Fcdr (tem));
336 } 334 }
337 else if (COMPILEDP (fun)) 335 else if (COMPILEDP (fun))
338 { 336 {
339 if ((XVECTOR (fun)->size & PSEUDOVECTOR_SIZE_MASK) <= COMPILED_DOC_STRING) 337 if ((XVECTOR (fun)->size & PSEUDOVECTOR_SIZE_MASK) <= COMPILED_DOC_STRING)
340 return Qnil; 338 return Qnil;
817 staticpro (&Qfunction_documentation); 815 staticpro (&Qfunction_documentation);
818 816
819 DEFVAR_LISP ("internal-doc-file-name", &Vdoc_file_name, 817 DEFVAR_LISP ("internal-doc-file-name", &Vdoc_file_name,
820 "Name of file containing documentation strings of built-in symbols."); 818 "Name of file containing documentation strings of built-in symbols.");
821 Vdoc_file_name = Qnil; 819 Vdoc_file_name = Qnil;
822 DEFVAR_LISP ("help-manyarg-func-alist", &Vhelp_manyarg_func_alist,
823 "Alist of primitive functions and descriptions of their arg lists.\n\
824 All special forms and primitives which effectively have &rest args\n\
825 should have an entry here so that `documentation' can provide their\n\
826 arg list.");
827 Vhelp_manyarg_func_alist = Qnil;
828 820
829 defsubr (&Sdocumentation); 821 defsubr (&Sdocumentation);
830 defsubr (&Sdocumentation_property); 822 defsubr (&Sdocumentation_property);
831 defsubr (&Ssnarf_documentation); 823 defsubr (&Ssnarf_documentation);
832 defsubr (&Ssubstitute_command_keys); 824 defsubr (&Ssubstitute_command_keys);