diff options
author | Richard M. Stallman <rms@gnu.org> | 2003-05-28 11:21:36 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2003-05-28 11:21:36 +0000 |
commit | 31b55e801d203be3366ba84627048c3ae664ad27 (patch) | |
tree | caabe74b1b19376304fd2495d524993c2145a596 /lisp/jka-compr.el | |
parent | 201bc1bdf63326cd21070bf7f5ef3d5fa7976878 (diff) | |
download | emacs-31b55e801d203be3366ba84627048c3ae664ad27.tar.gz |
(jka-compr-insert-file-contents):
When REPLACE, delete the proper range of text.
Diffstat (limited to 'lisp/jka-compr.el')
-rw-r--r-- | lisp/jka-compr.el | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lisp/jka-compr.el b/lisp/jka-compr.el index 7a51e961ed0..3d14089349f 100644 --- a/lisp/jka-compr.el +++ b/lisp/jka-compr.el @@ -573,10 +573,7 @@ There should be no more than seven characters after the final `/'." uncompress-args))) (setq size (- (point) start)) (if replace - (let* ((del-beg (point)) - (del-end (+ del-beg size))) - (delete-region del-beg - (min del-end (point-max))))) + (delete-region (point) (point-max))) (goto-char start)) (error (if (and (eq (car error-code) 'file-error) |