comparison src/fns.c @ 51397:6b7e048da8be

Doc fixes.
author Dave Love <fx@gnu.org>
date Mon, 02 Jun 2003 18:31:29 +0000
parents 0b084ee4c1c8
children 31f2f6a2df06
comparison
equal deleted inserted replaced
51396:0637ff21efd1 51397:6b7e048da8be
2508 return value; 2508 return value;
2509 } 2509 }
2510 2510
2511 DEFUN ("set-char-table-default", Fset_char_table_default, 2511 DEFUN ("set-char-table-default", Fset_char_table_default,
2512 Sset_char_table_default, 3, 3, 0, 2512 Sset_char_table_default, 3, 3, 0,
2513 doc: /* Set the default value in CHAR-TABLE for a generic character CHAR to VALUE. 2513 doc: /* Set the default value in CHAR-TABLE for generic character CH to VALUE.
2514 The generic character specifies the group of characters. 2514 The generic character specifies the group of characters.
2515 See also the documentation of make-char. */) 2515 See also the documentation of `make-char'. */)
2516 (char_table, ch, value) 2516 (char_table, ch, value)
2517 Lisp_Object char_table, ch, value; 2517 Lisp_Object char_table, ch, value;
2518 { 2518 {
2519 int c, charset, code1, code2; 2519 int c, charset, code1, code2;
2520 Lisp_Object temp; 2520 Lisp_Object temp;
3219 3219
3220 When USE-FLOATS is non-nil, floats will be used instead of integers. 3220 When USE-FLOATS is non-nil, floats will be used instead of integers.
3221 These floats are not multiplied by 100. 3221 These floats are not multiplied by 100.
3222 3222
3223 If the 5-minute or 15-minute load averages are not available, return a 3223 If the 5-minute or 15-minute load averages are not available, return a
3224 shortened list, containing only those averages which are available. */) 3224 shortened list, containing only those averages which are available.
3225
3226 An error is thrown if the load average can't be obtained. In some
3227 cases making it work would require Emacs being installed setuid or
3228 setgid so that it can read kernel information, and that usually isn't
3229 advisable. */)
3225 (use_floats) 3230 (use_floats)
3226 Lisp_Object use_floats; 3231 Lisp_Object use_floats;
3227 { 3232 {
3228 double load_ave[3]; 3233 double load_ave[3];
3229 int loads = getloadavg (load_ave, 3); 3234 int loads = getloadavg (load_ave, 3);
3476 3481
3477 DEFUN ("langinfo", Flanginfo, Slanginfo, 1, 1, 0, 3482 DEFUN ("langinfo", Flanginfo, Slanginfo, 1, 1, 0,
3478 doc: /* Access locale data ITEM, if available. 3483 doc: /* Access locale data ITEM, if available.
3479 3484
3480 ITEM may be one of the following: 3485 ITEM may be one of the following:
3486
3481 `codeset', returning the character set as a string (locale item CODESET); 3487 `codeset', returning the character set as a string (locale item CODESET);
3488
3482 `days', returning a 7-element vector of day names (locale items DAY_n); 3489 `days', returning a 7-element vector of day names (locale items DAY_n);
3490
3483 `months', returning a 12-element vector of month names (locale items MON_n); 3491 `months', returning a 12-element vector of month names (locale items MON_n);
3492
3484 `paper', returning a list (WIDTH, HEIGHT) for the default paper size, 3493 `paper', returning a list (WIDTH, HEIGHT) for the default paper size,
3485 where the width and height are in mm (locale items PAPER_WIDTH, 3494 where the width and height are in mm (locale items PAPER_WIDTH,
3486 PAPER_HEIGHT). 3495 PAPER_HEIGHT).
3487 3496
3488 If the system can't provide such information through a call to 3497 If the system can't provide such information through a call to
3489 nl_langinfo(3), return nil. 3498 nl_langinfo(3) or if ITEM isn't from the list above, return nil.
3490 3499
3491 See also Info node `(libc)Locales'. 3500 See also Info node `(libc)Locales'.
3492 3501
3493 The data read from the system are decoded using `locale-coding-system'. */) 3502 The data read from the system are decoded using `locale-coding-system'. */)
3494 (item) 3503 (item)
3549 return list2 (make_number (nl_langinfo (PAPER_WIDTH)), 3558 return list2 (make_number (nl_langinfo (PAPER_WIDTH)),
3550 make_number (nl_langinfo (PAPER_HEIGHT))); 3559 make_number (nl_langinfo (PAPER_HEIGHT)));
3551 } 3560 }
3552 #endif /* PAPER_WIDTH */ 3561 #endif /* PAPER_WIDTH */
3553 #endif /* HAVE_LANGINFO_CODESET*/ 3562 #endif /* HAVE_LANGINFO_CODESET*/
3554 return Qnil; 3563 return Qnil;
3555 } 3564 }
3556 3565
3557 /* base64 encode/decode functions (RFC 2045). 3566 /* base64 encode/decode functions (RFC 2045).
3558 Based on code from GNU recode. */ 3567 Based on code from GNU recode. */
3559 3568