emacs-diffs
[Top][All Lists]
Advanced

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

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


From: Eli Zaretskii
Subject: [Emacs-diffs] Changes to emacs/lispref/nonascii.texi
Date: Fri, 12 May 2006 14:33:29 +0000

Index: emacs/lispref/nonascii.texi
diff -u emacs/lispref/nonascii.texi:1.55 emacs/lispref/nonascii.texi:1.56
--- emacs/lispref/nonascii.texi:1.55    Sun May  7 16:02:26 2006
+++ emacs/lispref/nonascii.texi Fri May 12 14:33:29 2006
@@ -805,6 +805,35 @@
 Otherwise it signals an error with condition @code{coding-system-error}.
 @end defun
 
address@hidden EOL conversion
address@hidden end-of-line conversion
address@hidden line end conversion
address@hidden coding-system-eol-type coding-system
+This function returns the type of end-of-line (a.k.a.@: @dfn{eol})
+conversion used by @var{coding-system}.  If @var{coding-system}
+specifies a certain eol conversion, the return value is an integer 0,
+1, or 2, standing for @code{unix}, @code{dos}, and @code{mac},
+respectively.  If @var{coding-system} doesn't specify eol conversion
+explicitly, the return value is a vector of coding systems, each one
+with one of the possible eol conversion types, like this:
+
address@hidden
+(coding-system-eol-type 'latin-1)
+     @result{} [latin-1-unix latin-1-dos latin-1-mac]
address@hidden lisp
+
address@hidden
+If this function returns a vector, Emacs will decide, as part of the
+text encoding or decoding process, what eol conversion to use.  For
+decoding, the end-of-line format of the text is auto-detected, and the
+eol conversion is set to match it (e.g., DOS-style CRLF format will
+imply @code{dos} eol conversion).  For encoding, the eol conversion is
+taken from the appropriate default coding system (e.g.,
address@hidden for
address@hidden), or from the default eol conversion
+appropriate for the underlying platform.
address@hidden defun
+
 @defun coding-system-change-eol-conversion coding-system eol-type
 This function returns a coding system which is like @var{coding-system}
 except for its eol conversion, which is specified by @code{eol-type}.




reply via email to

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