mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-30 08:09:04 +00:00
(jka-compr-insert-file-contents):
When REPLACE, delete the proper range of text.
This commit is contained in:
parent
201bc1bdf6
commit
31b55e801d
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user