diff options
| author | Dave Love | 2000-02-01 14:45:38 +0000 |
|---|---|---|
| committer | Dave Love | 2000-02-01 14:45:38 +0000 |
| commit | 712c597eb9d6df17d0faca8a4afd00188497343d (patch) | |
| tree | c5dd644bbe453713e89fa99c8e711c79631531ef /src | |
| parent | 318c987df888e050094a6a21ddd20b4d939ee90d (diff) | |
| download | emacs-712c597eb9d6df17d0faca8a4afd00188497343d.tar.gz emacs-712c597eb9d6df17d0faca8a4afd00188497343d.zip | |
(Vhelp_manyarg_func_alist): New variable.
(Fdocumentation): Use it.
(syms_of_doc): Define it.
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc.c | 10 |
1 files changed, 9 insertions, 1 deletions
| @@ -41,7 +41,7 @@ Boston, MA 02111-1307, USA. */ | |||
| 41 | #include "keyboard.h" | 41 | #include "keyboard.h" |
| 42 | #include "charset.h" | 42 | #include "charset.h" |
| 43 | 43 | ||
| 44 | Lisp_Object Vdoc_file_name; | 44 | Lisp_Object Vdoc_file_name, Vhelp_manyarg_func_alist; |
| 45 | 45 | ||
| 46 | extern char *index (); | 46 | extern char *index (); |
| 47 | 47 | ||
| @@ -319,6 +319,8 @@ string is passed through `substitute-command-keys'.") | |||
| 319 | else | 319 | else |
| 320 | doc = get_doc_string (make_number (- (EMACS_INT) XSUBR (fun)->doc), | 320 | doc = get_doc_string (make_number (- (EMACS_INT) XSUBR (fun)->doc), |
| 321 | 0, 0); | 321 | 0, 0); |
| 322 | if (! NILP (tem = Fassq (function, Vhelp_manyarg_func_alist))) | ||
| 323 | doc = concat3 (doc, build_string ("\n"), Fcdr (tem)); | ||
| 322 | } | 324 | } |
| 323 | else if (COMPILEDP (fun)) | 325 | else if (COMPILEDP (fun)) |
| 324 | { | 326 | { |
| @@ -781,6 +783,12 @@ syms_of_doc () | |||
| 781 | DEFVAR_LISP ("internal-doc-file-name", &Vdoc_file_name, | 783 | DEFVAR_LISP ("internal-doc-file-name", &Vdoc_file_name, |
| 782 | "Name of file containing documentation strings of built-in symbols."); | 784 | "Name of file containing documentation strings of built-in symbols."); |
| 783 | Vdoc_file_name = Qnil; | 785 | Vdoc_file_name = Qnil; |
| 786 | DEFVAR_LISP ("help-manyarg-func-alist", &Vhelp_manyarg_func_alist, | ||
| 787 | "Alist of primitive functions and descriptions of their arg lists.\n\ | ||
| 788 | All special forms and primitives which effectively have &rest args\n\ | ||
| 789 | should have an entry here so that `documentation' can provide their\n\ | ||
| 790 | arg list."); | ||
| 791 | Vhelp_manyarg_func_alist = Qnil; | ||
| 784 | 792 | ||
| 785 | defsubr (&Sdocumentation); | 793 | defsubr (&Sdocumentation); |
| 786 | defsubr (&Sdocumentation_property); | 794 | defsubr (&Sdocumentation_property); |