Commit b6e8d238 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(jka-compr-write-region): If START = nil, use whole buf.

parent d39f07c2
......@@ -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.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment