/[emacs]/emacs/lispref/nonascii.texi
ViewVC logotype

Diff of /emacs/lispref/nonascii.texi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.36 by rms, Mon Jun 30 10:41:43 2003 UTC revision 1.37 by rms, Tue Jul 22 15:15:20 2003 UTC
# Line 191  The function @code{unibyte-char-to-multi Line 191  The function @code{unibyte-char-to-multi
191  each unibyte character to a multibyte character.  each unibyte character to a multibyte character.
192  @end defun  @end defun
193    
194    @defun string-to-multibyte string
195    This function returns a multibyte string containing the same sequence
196    of character codes as @var{string}.  If @var{string} is a multibyte
197    string, the value is the equal to @var{string}.
198    @end defun
199    
200  @node Selecting a Representation  @node Selecting a Representation
201  @section Selecting a Representation  @section Selecting a Representation
202    
# Line 505  This is the default translation table fo Line 511  This is the default translation table fo
511  coding systems that don't specify any other translation table.  coding systems that don't specify any other translation table.
512  @end defvar  @end defvar
513    
514    @defvar translation-table-for-input
515    Self-inserting characters are translated through this translation
516    table before they are inserted.
517    @end defvar
518    
519  @node Coding Systems  @node Coding Systems
520  @section Coding Systems  @section Coding Systems
521    
# Line 887  The value should be a cons cell of the f Line 898  The value should be a cons cell of the f
898  the subprocess, and @var{output-coding} applies to output to it.  the subprocess, and @var{output-coding} applies to output to it.
899  @end defvar  @end defvar
900    
901    @defvar auto-coding-functions
902    This variable holds a list of functions that try to determine a
903    coding system for a file based on its undecoded contents.
904    
905    Each function in this list should be written to look at text in the
906    current buffer, but should not modify it in any way.  The buffer will
907    contain undecoded text of parts of the file.  Each function should
908    take one argument, @var{size}, which tells it how many characters to
909    look at, starting from point.  If the function succeeds in determining
910    a coding system for the file, it should return that coding system.
911    Otherwise, it should return @code{nil}.
912    
913    If a file has a @samp{coding:} tag, that takes precedence, so these
914    functions won't be called.
915    @end defvar
916    
917  @defun find-operation-coding-system operation &rest arguments  @defun find-operation-coding-system operation &rest arguments
918  This function returns the coding system to use (by default) for  This function returns the coding system to use (by default) for
919  performing @var{operation} with @var{arguments}.  The value has this  performing @var{operation} with @var{arguments}.  The value has this
# Line 1040  decoded text.  To make explicit decoding Line 1067  decoded text.  To make explicit decoding
1067  string is acceptable.  string is acceptable.
1068  @end defun  @end defun
1069    
1070    @defun decode-coding-inserted-region from to filename &optional visit beg end replace
1071    This function decodes the text from @var{from} to @var{to} as if
1072    it were being read from file @var{filename} using @code{insert-file-contents}
1073    using the rest of the arguments provided.
1074    
1075    The normal way to use this function is after reading text from a file
1076    without decoding, if you decide you would rather have decoded it.
1077    Instead of deleting the text and reading it again, this time with
1078    decoding, you can call this function.
1079    @end defun
1080    
1081  @node Terminal I/O Encoding  @node Terminal I/O Encoding
1082  @subsection Terminal I/O Encoding  @subsection Terminal I/O Encoding
1083    
# Line 1235  conventions of a different language.  If Line 1273  conventions of a different language.  If
1273  locale is specified by environment variables in the usual POSIX fashion.  locale is specified by environment variables in the usual POSIX fashion.
1274  @end defvar  @end defvar
1275    
1276    @defun locale-info item
1277    This function returns locale data @var{item} for the current POSIX
1278    locale, if available.  @var{item} should be one of these symbols:
1279    
1280    @table @code
1281    @item codeset
1282    Return the character set as a string (locale item @code{CODESET}).
1283    
1284    @item days
1285    Return a 7-element vector of day names (locale items
1286    @code{DAY_1} through @code{DAY_7});
1287    
1288    @item months
1289    Return a 12-element vector of month names (locale items @code{MON_1}
1290    through @code{MON_12}).
1291    
1292    @item paper
1293    Return a list @code{(@var{width} @var{height})} for the default paper
1294    size measured in milimeters (locale items @code{PAPER_WIDTH} and
1295    @code{PAPER_HEIGHT}).
1296    @end table
1297    
1298    If the system can't provide the requested information, or if
1299    @var{item} is not one of those symbols, the value is @code{nil}.  All
1300    strings in the return value are decoded using
1301    @code{locale-coding-system}.  @xref{Locales,,, libc, GNU Libc Manual},
1302    for more information about locales and locale items.
1303    @end defun

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26