From b6e8d2388cca2c20b76b9e40c75d01848fbf9e82 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 1 Jan 2002 07:23:31 +0000 Subject: [PATCH] (jka-compr-write-region): If START = nil, use whole buf. --- lisp/jka-compr.el | 4 ++++ 1 file changed, 4 insertions(+) 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. -- 2.39.5