emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/doc/lispref/nonascii.texi,v


From: Chong Yidong
Subject: [Emacs-diffs] Changes to emacs/doc/lispref/nonascii.texi,v
Date: Wed, 22 Oct 2008 19:37:07 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Chong Yidong <cyd>      08/10/22 19:37:07

Index: nonascii.texi
===================================================================
RCS file: /sources/emacs/emacs/doc/lispref/nonascii.texi,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- nonascii.texi       14 Oct 2008 12:47:06 -0000      1.7
+++ nonascii.texi       22 Oct 2008 19:37:07 -0000      1.8
@@ -289,32 +289,31 @@
 @section Character Codes
 @cindex character codes
 
-  The unibyte and multibyte text representations use different character
-codes.  The valid character codes for unibyte representation range from
-0 to 255---the values that can fit in one byte.  The valid character
-codes for multibyte representation range from 0 to 524287, but not all
-values in that range are valid.  The values 128 through 255 are not
-entirely proper in multibyte text, but they can occur if you do explicit
-encoding and decoding (@pxref{Explicit Encoding}).  Some other character
-codes cannot occur at all in multibyte text.  Only the @acronym{ASCII} codes
-0 through 127 are completely legitimate in both representations.
-
address@hidden char-valid-p charcode &optional genericp
-This returns @code{t} if @var{charcode} is valid (either for unibyte
-text or for multibyte text).
+  The unibyte and multibyte text representations use different
+character codes.  The valid character codes for unibyte representation
+range from 0 to 255---the values that can fit in one byte.  The valid
+character codes for multibyte representation range from 0 to 4194303,
+but not all values in that range are valid.  The values 128 through
+255 do not usually show up in multibyte text, but they can occur if
+you do explicit encoding and decoding (@pxref{Explicit Encoding}).
+Some other character codes cannot occur at all in multibyte text.
+Only the @acronym{ASCII} codes 0 through 127 are completely legitimate
+in both representations.
+
address@hidden characterp charcode
+This returns @code{t} if @var{charcode} is a valid character, and
address@hidden otherwise.
 
 @example
-(char-valid-p 65)
+(characterp 65)
      @result{} t
-(char-valid-p 256)
+(characterp 256)
      @result{} nil
-(char-valid-p 2248)
+(characterp 4194303)
      @result{} t
+(characterp 4194304)
+     @result{} nil
 @end example
-
-If the optional argument @var{genericp} is address@hidden, this
-function also returns @code{t} if @var{charcode} is a generic
-character (@pxref{Splitting Characters}).
 @end defun
 
 @node Character Sets




reply via email to

[Prev in Thread] Current Thread [Next in Thread]