comparison src/doc.c @ 604:63a8e7b3c547

*** empty log message ***
author Jim Blandy <jimb@redhat.com>
date Wed, 01 Apr 1992 11:14:15 +0000
parents 53f29271d1b0
children 529171c8b71c
comparison
equal deleted inserted replaced
603:470f556a9453 604:63a8e7b3c547
100 close (fd); 100 close (fd);
101 return make_string (buf, p - buf); 101 return make_string (buf, p - buf);
102 } 102 }
103 103
104 DEFUN ("documentation", Fdocumentation, Sdocumentation, 1, 2, 0, 104 DEFUN ("documentation", Fdocumentation, Sdocumentation, 1, 2, 0,
105 "Return the documentation string of FUNCTION. 105 "Return the documentation string of FUNCTION.\n\
106 Unless a non-nil second argument is given, the 106 Unless a non-nil second argument is given, the\n\
107 string is passed through `substitute-command-keys'.") 107 string is passed through `substitute-command-keys'.")
108 (fun1, raw) 108 (fun1, raw)
109 Lisp_Object fun1, raw; 109 Lisp_Object fun1, raw;
110 { 110 {
111 Lisp_Object fun; 111 Lisp_Object fun;
180 } 180 }
181 181
182 DEFUN ("documentation-property", Fdocumentation_property, Sdocumentation_property, 2, 2, 0, 182 DEFUN ("documentation-property", Fdocumentation_property, Sdocumentation_property, 2, 2, 0,
183 "Return the documentation string that is SYMBOL's PROP property.\n\ 183 "Return the documentation string that is SYMBOL's PROP property.\n\
184 This is like `get', but it can refer to strings stored in the\n\ 184 This is like `get', but it can refer to strings stored in the\n\
185 `share-lib/DOC' file; and if the value is a string, it is passed through\n\ 185 `etc/DOC' file; and if the value is a string, it is passed through\n\
186 `substitute-command-keys'. A non-nil third argument avoids this\n\ 186 `substitute-command-keys'. A non-nil third argument avoids this\n\
187 translation.") 187 translation.")
188 (sym, prop, raw) 188 (sym, prop, raw)
189 Lisp_Object sym, prop, raw; 189 Lisp_Object sym, prop, raw;
190 { 190 {
199 } 199 }
200 200
201 DEFUN ("Snarf-documentation", Fsnarf_documentation, Ssnarf_documentation, 201 DEFUN ("Snarf-documentation", Fsnarf_documentation, Ssnarf_documentation,
202 1, 1, 0, 202 1, 1, 0,
203 "Used during Emacs initialization, before dumping runnable Emacs,\n\ 203 "Used during Emacs initialization, before dumping runnable Emacs,\n\
204 to find pointers to doc strings stored in `share-lib/DOC...' and\n\ 204 to find pointers to doc strings stored in `etc/DOC...' and\n\
205 record them in function definitions.\n\ 205 record them in function definitions.\n\
206 One arg, FILENAME, a string which does not include a directory.\n\ 206 One arg, FILENAME, a string which does not include a directory.\n\
207 The file is found in `../share-lib' now; found in the `data-directory'\n\ 207 The file is found in `../etc' now; found in the `data-directory'\n\
208 when doc strings are referred to later in the dumped Emacs.") 208 when doc strings are referred to later in the dumped Emacs.")
209 (filename) 209 (filename)
210 Lisp_Object filename; 210 Lisp_Object filename;
211 { 211 {
212 int fd; 212 int fd;
220 220
221 CHECK_STRING (filename, 0); 221 CHECK_STRING (filename, 0);
222 222
223 #ifndef CANNOT_DUMP 223 #ifndef CANNOT_DUMP
224 name = (char *) alloca (XSTRING (filename)->size + 14); 224 name = (char *) alloca (XSTRING (filename)->size + 14);
225 strcpy (name, "../share-lib/"); 225 strcpy (name, "../etc/");
226 #else /* CANNOT_DUMP */ 226 #else /* CANNOT_DUMP */
227 CHECK_STRING (Vdata_directory, 0); 227 CHECK_STRING (Vdata_directory, 0);
228 name = (char *) alloca (XSTRING (filename)->size + 228 name = (char *) alloca (XSTRING (filename)->size +
229 XSTRING (Vdata_directory)->size + 1); 229 XSTRING (Vdata_directory)->size + 1);
230 strcpy (name, XSTRING (Vdata_directory)->data); 230 strcpy (name, XSTRING (Vdata_directory)->data);