aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorGlenn Morris2014-03-01 19:34:36 -0800
committerGlenn Morris2014-03-01 19:34:36 -0800
commitd2b94b157caca1893f610ed65d824ce92fd18625 (patch)
treef5868bd43ebc9e1c8744809113f885e0716f8c28 /doc
parentb6e443c5af22e6e43fb5e20599b5dda1c3339966 (diff)
downloademacs-d2b94b157caca1893f610ed65d824ce92fd18625.tar.gz
emacs-d2b94b157caca1893f610ed65d824ce92fd18625.zip
Document zlib-decompress-region
* doc/lispref/text.texi (Decompression): New node. * doc/lispref/elisp.texi (Top): Update detailed menu. * etc/NEWS: Related markup.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/ChangeLog5
-rw-r--r--doc/lispref/elisp.texi1
-rw-r--r--doc/lispref/text.texi30
3 files changed, 36 insertions, 0 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog
index 4b629e6f4dd..e87272401d6 100644
--- a/doc/lispref/ChangeLog
+++ b/doc/lispref/ChangeLog
@@ -1,3 +1,8 @@
12014-03-02 Glenn Morris <rgm@gnu.org>
2
3 * text.texi (Decompression): New node.
4 * elisp.texi (Top): Update detailed menu.
5
12014-03-01 Glenn Morris <rgm@gnu.org> 62014-03-01 Glenn Morris <rgm@gnu.org>
2 7
3 * display.texi (Forcing Redisplay): Mention pre-redisplay-function. 8 * display.texi (Forcing Redisplay): Mention pre-redisplay-function.
diff --git a/doc/lispref/elisp.texi b/doc/lispref/elisp.texi
index 76b98576254..a0f447f94f4 100644
--- a/doc/lispref/elisp.texi
+++ b/doc/lispref/elisp.texi
@@ -1138,6 +1138,7 @@ Text
1138* Registers:: How registers are implemented. Accessing 1138* Registers:: How registers are implemented. Accessing
1139 the text or position stored in a register. 1139 the text or position stored in a register.
1140* Transposition:: Swapping two portions of a buffer. 1140* Transposition:: Swapping two portions of a buffer.
1141* Decompression:: Dealing with compressed data.
1141* Base 64:: Conversion to or from base 64 encoding. 1142* Base 64:: Conversion to or from base 64 encoding.
1142* Checksum/Hash:: Computing cryptographic hashes. 1143* Checksum/Hash:: Computing cryptographic hashes.
1143* Parsing HTML/XML:: Parsing HTML and XML. 1144* Parsing HTML/XML:: Parsing HTML and XML.
diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi
index 9df6cf61e06..5a38ce1e0d3 100644
--- a/doc/lispref/text.texi
+++ b/doc/lispref/text.texi
@@ -54,6 +54,7 @@ the character after point.
54* Registers:: How registers are implemented. Accessing the text or 54* Registers:: How registers are implemented. Accessing the text or
55 position stored in a register. 55 position stored in a register.
56* Transposition:: Swapping two portions of a buffer. 56* Transposition:: Swapping two portions of a buffer.
57* Decompression:: Dealing with compressed data.
57* Base 64:: Conversion to or from base 64 encoding. 58* Base 64:: Conversion to or from base 64 encoding.
58* Checksum/Hash:: Computing cryptographic hashes. 59* Checksum/Hash:: Computing cryptographic hashes.
59* Parsing HTML/XML:: Parsing HTML and XML. 60* Parsing HTML/XML:: Parsing HTML and XML.
@@ -4132,6 +4133,35 @@ is non-@code{nil}, @code{transpose-regions} does not do this---it leaves
4132all markers unrelocated. 4133all markers unrelocated.
4133@end defun 4134@end defun
4134 4135
4136@node Decompression
4137@section Dealing With Compressed Data
4138
4139When @code{auto-compression-mode} is enabled, Emacs automatically
4140uncompresses compressed files when you visit them, and automatically
4141recompresses them if you alter and save them. @xref{Compressed
4142Files,,, emacs, The GNU Emacs Manual}.
4143
4144The above feature works by calling an external executable (e.g.,
4145@command{gzip}). Emacs can also be compiled with support for built-in
4146decompression using the zlib library, which is faster than calling an
4147external program.
4148
4149@defun zlib-available-p
4150This function returns non-@code{nil} if built-in zlib decompression is
4151available.
4152@end defun
4153
4154@defun zlib-decompress-region start end
4155This function decompresses the region between @var{start} and
4156@var{end}, using built-in zlib decompression. The region should
4157contain data that were compressed with gzip or zlib. On success, the
4158function replaces the contents of the region with the decompressed
4159data. On failure, the function leaves the region unchanged and
4160returns @code{nil}. This function can be called only in unibyte
4161buffers.
4162@end defun
4163
4164
4135@node Base 64 4165@node Base 64
4136@section Base 64 Encoding 4166@section Base 64 Encoding
4137@cindex base 64 encoding 4167@cindex base 64 encoding