mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-23 07:19:15 +00:00
(archive-extract): If the extractor signals an
error, trap it, so that the buffer created for a member is killed.
This commit is contained in:
parent
b528110c6c
commit
8dc33e1146
@ -876,9 +876,14 @@ using `make-temp-name', and the generated name is returned."
|
||||
(setq archive-subfile-mode descr)
|
||||
(if (and
|
||||
(null
|
||||
(if (fboundp extractor)
|
||||
(funcall extractor archive ename)
|
||||
(archive-*-extract archive ename (symbol-value extractor))))
|
||||
(condition-case err
|
||||
(if (fboundp extractor)
|
||||
(funcall extractor archive ename)
|
||||
(archive-*-extract archive ename
|
||||
(symbol-value extractor)))
|
||||
(error
|
||||
(ding (message "%s" (error-message-string err)))
|
||||
nil)))
|
||||
just-created)
|
||||
(progn
|
||||
(set-buffer-modified-p nil)
|
||||
|
Loading…
Reference in New Issue
Block a user