comparison lispref/nonascii.texi @ 52788:814620b1c1af

Don't mention preferred-coding-system. make-char zeroes 8th bit of code args.
author Dave Love <fx@gnu.org>
date Mon, 06 Oct 2003 16:59:45 +0000
parents 695cf19ef79e
children 1a5c50faf357
comparison
equal deleted inserted replaced
52787:785941182067 52788:814620b1c1af
323 @defun charset-plist charset 323 @defun charset-plist charset
324 @tindex charset-plist 324 @tindex charset-plist
325 This function returns the charset property list of the character set 325 This function returns the charset property list of the character set
326 @var{charset}. Although @var{charset} is a symbol, this is not the same 326 @var{charset}. Although @var{charset} is a symbol, this is not the same
327 as the property list of that symbol. Charset properties are used for 327 as the property list of that symbol. Charset properties are used for
328 special purposes within Emacs; for example, 328 special purposes within Emacs.
329 @code{preferred-coding-system} helps determine which coding system to
330 use to encode characters in a charset.
331 @end defun 329 @end defun
332 330
333 @node Chars and Bytes 331 @node Chars and Bytes
334 @section Characters and Bytes 332 @section Characters and Bytes
335 @cindex bytes and characters 333 @cindex bytes and characters
399 397
400 @example 398 @example
401 (make-char 'latin-iso8859-1 72) 399 (make-char 'latin-iso8859-1 72)
402 @result{} 2248 400 @result{} 2248
403 @end example 401 @end example
402
403 Actually, the eighth bit of both @var{code1} and @var{code2} is zeroed
404 before they are used to index @var{charset}. Thus you may use, for
405 instance, an ISO 8859 character code rather than subtracting 128, as
406 is necessary to index the corresponding Emacs charset.
404 @end defun 407 @end defun
405 408
406 @cindex generic characters 409 @cindex generic characters
407 If you call @code{make-char} with no @var{byte-values}, the result is 410 If you call @code{make-char} with no @var{byte-values}, the result is
408 a @dfn{generic character} which stands for @var{charset}. A generic 411 a @dfn{generic character} which stands for @var{charset}. A generic