diff options
author | Richard M. Stallman <rms@gnu.org> | 2002-01-01 07:23:31 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2002-01-01 07:23:31 +0000 |
commit | b6e8d2388cca2c20b76b9e40c75d01848fbf9e82 (patch) | |
tree | 21cd137554fbeded8fba057019a25b1a941568ca /lisp/jka-compr.el | |
parent | d39f07c2d6a90ddd4829642deef04c93d0be9fa4 (diff) | |
download | emacs-b6e8d2388cca2c20b76b9e40c75d01848fbf9e82.tar.gz |
(jka-compr-write-region): If START = nil, use whole buf.
Diffstat (limited to 'lisp/jka-compr.el')
-rw-r--r-- | lisp/jka-compr.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/jka-compr.el b/lisp/jka-compr.el index 0521d9840fc..a13f43faf19 100644 --- a/lisp/jka-compr.el +++ b/lisp/jka-compr.el @@ -394,6 +394,10 @@ There should be no more than seven characters after the final `/'." (info (jka-compr-get-compression-info visit-file)) (magic (and info (jka-compr-info-file-magic-bytes info)))) + ;; If START is nil, use the whole buffer. + (if (null start) + (setq start 1 end (1+ (buffer-size)))) + ;; If we uncompressed this file when visiting it, ;; then recompress it when writing it ;; even if the contents look compressed already. |