mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08: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
1 changed files with 8 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue