(error "Shell command in progress")))
(save-excursion
(set-buffer buffer)
+ (setq buffer-read-only nil)
(erase-buffer)
(display-buffer buffer)
(setq default-directory directory)
;; If the input is the same buffer as the output,
;; delete everything but the specified region,
;; then replace that region with the output.
- (progn (delete-region end (point-max))
+ (progn (setq buffer-read-only nil)
+ (delete-region end (point-max))
(delete-region (point-min) start)
(call-process-region (point-min) (point-max)
shell-file-name t t nil
;; Clear the output buffer, then run the command with output there.
(save-excursion
(set-buffer buffer)
+ (setq buffer-read-only nil)
(erase-buffer))
(call-process-region start end shell-file-name
nil buffer nil