summaryrefslogtreecommitdiff
path: root/src/fns.c
diff options
context:
space:
mode:
authorKaroly Lorentey <lorentey@elte.hu>2003-12-28 16:03:57 +0000
committerKaroly Lorentey <lorentey@elte.hu>2003-12-28 16:03:57 +0000
commit2e7f2ec031f1708b80df9dc1f60f6b1cb24a5c02 (patch)
tree6e682f963c37c5cb6610711ec395ed4e82fff7fc /src/fns.c
parent53fed860b6a9e8f89eca3fd8a15e49c58aace85d (diff)
parent8af1a978a8f635a9d05f56200ba42613e3574c44 (diff)
downloademacs-2e7f2ec031f1708b80df9dc1f60f6b1cb24a5c02.tar.gz
emacs-2e7f2ec031f1708b80df9dc1f60f6b1cb24a5c02.tar.bz2
emacs-2e7f2ec031f1708b80df9dc1f60f6b1cb24a5c02.zip
Merged in changes from CVS HEAD
Patches applied: * miles@gnu.org--gnu-2003/emacs--cvs-trunk--0--patch-138 Update from CVS * miles@gnu.org--gnu-2003/emacs--cvs-trunk--0--patch-139 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-15
Diffstat (limited to 'src/fns.c')
-rw-r--r--src/fns.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/fns.c b/src/fns.c
index fed948dc29f..e4252c98ca5 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -95,7 +95,7 @@ DEFUN ("identity", Fidentity, Sidentity, 1, 1, 0,
DEFUN ("random", Frandom, Srandom, 0, 1, 0,
doc: /* Return a pseudo-random number.
All integers representable in Lisp are equally likely.
- On most systems, this is 28 bits' worth.
+ On most systems, this is 29 bits' worth.
With positive integer argument N, return random number in interval [0,N).
With argument t, set the random number seed from the current time and pid. */)
(n)
@@ -1099,8 +1099,14 @@ string_make_unibyte (string)
DEFUN ("string-make-multibyte", Fstring_make_multibyte, Sstring_make_multibyte,
1, 1, 0,
doc: /* Return the multibyte equivalent of STRING.
-The function `unibyte-char-to-multibyte' is used to convert
-each unibyte character to a multibyte character. */)
+If STRING is unibyte and contains non-ASCII characters, the function
+`unibyte-char-to-multibyte' is used to convert each unibyte character
+to a multibyte character. In this case, the returned string is a
+newly created string with no text properties. If STRING is multibyte
+or entirely ASCII, it is returned unchanged. In particular, when
+STRING is unibyte and entirely ASCII, the returned string is unibyte.
+\(When the characters are all ASCII, Emacs primitives will treat the
+string the same way whether it is unibyte or multibyte.) */)
(string)
Lisp_Object string;
{
@@ -2482,9 +2488,9 @@ a character set name, or a character code. */)
DEFUN ("set-char-table-range", Fset_char_table_range, Sset_char_table_range,
3, 3, 0,
doc: /* Set the value in CHAR-TABLE for a range of characters RANGE to VALUE.
-RANGE should be t (for all characters), nil (for the default value)
-a vector which identifies a character set or a row of a character set,
-a coding system, or a character code. */)
+RANGE should be t (for all characters), nil (for the default value),
+a character set, a vector which identifies a character set, a row of a
+character set, or a character code. Return VALUE. */)
(char_table, range, value)
Lisp_Object char_table, range, value;
{
@@ -5648,7 +5654,7 @@ This applies to commands from menus and tool bar buttons. The value of
`use-dialog-box' takes precedence over this variable, so a file dialog is only
used if both `use-dialog-box' and this variable are non-nil. */);
use_file_dialog = 1;
-
+
defsubr (&Sidentity);
defsubr (&Srandom);
defsubr (&Slength);