aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2000-11-27 15:24:43 +0000
committerDave Love2000-11-27 15:24:43 +0000
commitb25e2fb558c52c5635f9b518fce2d10ae8faa614 (patch)
treef0c3cdbd20017ffd49c7ce4d48a1161d559eef5e
parent902ae620321aa2fadae916091a441e603a1cb8a4 (diff)
downloademacs-b25e2fb558c52c5635f9b518fce2d10ae8faa614.tar.gz
emacs-b25e2fb558c52c5635f9b518fce2d10ae8faa614.zip
base64 tweaks
-rw-r--r--lispref/text.texi17
1 files changed, 12 insertions, 5 deletions
diff --git a/lispref/text.texi b/lispref/text.texi
index 736b2dfe18f..8ca521c3224 100644
--- a/lispref/text.texi
+++ b/lispref/text.texi
@@ -3508,13 +3508,18 @@ all markers unrelocated.
3508@cindex base 64 encoding 3508@cindex base 64 encoding
3509 3509
3510 Base 64 code is used in email to encode a sequence of 8-bit bytes as a 3510 Base 64 code is used in email to encode a sequence of 8-bit bytes as a
3511longer sequence of @sc{ascii} graphic characters. This section 3511longer sequence of @sc{ascii} graphic characters. It is defined in RFC
3512describes the functions for converting to and from this code. 35122045. This section describes the functions for converting to and from
3513this code.
3513 3514
3514@defun base64-encode-region beg end &optional no-line-break 3515@defun base64-encode-region beg end &optional no-line-break
3515@tindex base64-encode-region 3516@tindex base64-encode-region
3516This function converts the region from @var{beg} to @var{end} 3517This function converts the region from @var{beg} to @var{end} into base
3517into base 64 code. It returns the length of the encoded text. 351864 code. It returns the length of the encoded text. An error is
3519signaled if a character in the region is multibyte, i.e.@: in a
3520multibyte buffer the region must contain only characters from the
3521charsets @code{ascii}, @code{eight-bit-control} and
3522@code{eight-bit-graphic}.
3518 3523
3519Normally, this function inserts newline characters into the encoded 3524Normally, this function inserts newline characters into the encoded
3520text, to avoid overlong lines. However, if the optional argument 3525text, to avoid overlong lines. However, if the optional argument
@@ -3525,7 +3530,9 @@ the output is just one long line.
3525@defun base64-encode-string string &optional no-line-break 3530@defun base64-encode-string string &optional no-line-break
3526@tindex base64-encode-string 3531@tindex base64-encode-string
3527This function converts the string @var{string} into base 64 code. It 3532This function converts the string @var{string} into base 64 code. It
3528returns a string containing the encoded text. 3533returns a string containing the encoded text. As for
3534@code{base64-encode-region}, an error is signaled if a character in the
3535string is multibyte.
3529 3536
3530Normally, this function inserts newline characters into the encoded 3537Normally, this function inserts newline characters into the encoded
3531text, to avoid overlong lines. However, if the optional argument 3538text, to avoid overlong lines. However, if the optional argument