comparison src/editfns.c @ 75387:41b2aae64f85

(Finsert_char): Doc fix. (Fget_internal_run_time, Fdecode_time): Fix typos in docstrings.
author Juanma Barranquero <lekktu@gmail.com>
date Tue, 23 Jan 2007 13:15:08 +0000
parents 9e5c071deb9f
children d420b7899f20 95d0cdf160ea
comparison
equal deleted inserted replaced
75386:5d372acd815e 75387:41b2aae64f85
1454 The time is returned as a list of three integers. The first has the 1454 The time is returned as a list of three integers. The first has the
1455 most significant 16 bits of the seconds, while the second has the 1455 most significant 16 bits of the seconds, while the second has the
1456 least significant 16 bits. The third integer gives the microsecond 1456 least significant 16 bits. The third integer gives the microsecond
1457 count. 1457 count.
1458 1458
1459 On systems that can't determine the run time, get-internal-run-time 1459 On systems that can't determine the run time, `get-internal-run-time'
1460 does the same thing as current-time. The microsecond count is zero on 1460 does the same thing as `current-time'. The microsecond count is zero
1461 systems that do not provide resolution finer than a second. */) 1461 on systems that do not provide resolution finer than a second. */)
1462 () 1462 ()
1463 { 1463 {
1464 #ifdef HAVE_GETRUSAGE 1464 #ifdef HAVE_GETRUSAGE
1465 struct rusage usage; 1465 struct rusage usage;
1466 int secs, usecs; 1466 int secs, usecs;
1719 } 1719 }
1720 1720
1721 DEFUN ("decode-time", Fdecode_time, Sdecode_time, 0, 1, 0, 1721 DEFUN ("decode-time", Fdecode_time, Sdecode_time, 0, 1, 0,
1722 doc: /* Decode a time value as (SEC MINUTE HOUR DAY MONTH YEAR DOW DST ZONE). 1722 doc: /* Decode a time value as (SEC MINUTE HOUR DAY MONTH YEAR DOW DST ZONE).
1723 The optional SPECIFIED-TIME should be a list of (HIGH LOW . IGNORED), 1723 The optional SPECIFIED-TIME should be a list of (HIGH LOW . IGNORED),
1724 as from `current-time' and `file-attributes', or `nil' to use the 1724 as from `current-time' and `file-attributes', or nil to use the
1725 current time. The obsolete form (HIGH . LOW) is also still accepted. 1725 current time. The obsolete form (HIGH . LOW) is also still accepted.
1726 The list has the following nine members: SEC is an integer between 0 1726 The list has the following nine members: SEC is an integer between 0
1727 and 60; SEC is 60 for a leap second, which only some operating systems 1727 and 60; SEC is 60 for a leap second, which only some operating systems
1728 support. MINUTE is an integer between 0 and 59. HOUR is an integer 1728 support. MINUTE is an integer between 0 and 59. HOUR is an integer
1729 between 0 and 23. DAY is an integer between 1 and 31. MONTH is an 1729 between 0 and 23. DAY is an integer between 1 and 31. MONTH is an
2283 nargs, args); 2283 nargs, args);
2284 return Qnil; 2284 return Qnil;
2285 } 2285 }
2286 2286
2287 DEFUN ("insert-char", Finsert_char, Sinsert_char, 2, 3, 0, 2287 DEFUN ("insert-char", Finsert_char, Sinsert_char, 2, 3, 0,
2288 doc: /* Insert COUNT (second arg) copies of CHARACTER (first arg). 2288 doc: /* Insert COUNT copies of CHARACTER.
2289 Both arguments are required.
2290 Point, and before-insertion markers, are relocated as in the function `insert'. 2289 Point, and before-insertion markers, are relocated as in the function `insert'.
2291 The optional third arg INHERIT, if non-nil, says to inherit text properties 2290 The optional third arg INHERIT, if non-nil, says to inherit text properties
2292 from adjoining text, if those properties are sticky. */) 2291 from adjoining text, if those properties are sticky. */)
2293 (character, count, inherit) 2292 (character, count, inherit)
2294 Lisp_Object character, count, inherit; 2293 Lisp_Object character, count, inherit;
3173 } 3172 }
3174 3173
3175 DEFUN ("save-restriction", Fsave_restriction, Ssave_restriction, 0, UNEVALLED, 0, 3174 DEFUN ("save-restriction", Fsave_restriction, Ssave_restriction, 0, UNEVALLED, 0,
3176 doc: /* Execute BODY, saving and restoring current buffer's restrictions. 3175 doc: /* Execute BODY, saving and restoring current buffer's restrictions.
3177 The buffer's restrictions make parts of the beginning and end invisible. 3176 The buffer's restrictions make parts of the beginning and end invisible.
3178 (They are set up with `narrow-to-region' and eliminated with `widen'.) 3177 \(They are set up with `narrow-to-region' and eliminated with `widen'.)
3179 This special form, `save-restriction', saves the current buffer's restrictions 3178 This special form, `save-restriction', saves the current buffer's restrictions
3180 when it is entered, and restores them when it is exited. 3179 when it is entered, and restores them when it is exited.
3181 So any `narrow-to-region' within BODY lasts only until the end of the form. 3180 So any `narrow-to-region' within BODY lasts only until the end of the form.
3182 The old restrictions settings are restored 3181 The old restrictions settings are restored
3183 even in case of abnormal exit (throw or error). 3182 even in case of abnormal exit (throw or error).