mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-03 11:33:37 +00:00
(shell-command-on-region): Cope with exit-status being
nil, which happens if call-process-region was interrupted.
This commit is contained in:
parent
cb3fb87285
commit
481f397bac
@ -1324,7 +1324,7 @@ specifies the value of ERROR-BUFFER."
|
||||
(list buffer error-file)
|
||||
buffer)
|
||||
nil shell-command-switch command)))
|
||||
(setq success (zerop exit-status))
|
||||
(setq success (and exit-status (zerop exit-status)))
|
||||
;; Report the amount of output.
|
||||
(let ((lines (save-excursion
|
||||
(set-buffer buffer)
|
||||
|
Loading…
Reference in New Issue
Block a user