mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
* net/ange-ftp.el (ange-ftp-hook-function): Catch also errors in
process-filter.
This commit is contained in:
parent
8f06e122c5
commit
5bc880a47d
2 changed files with 11 additions and 1 deletions
|
|
@ -4274,7 +4274,12 @@ NEWNAME should be the name to give the new compressed or uncompressed file.")
|
|||
;;;###autoload
|
||||
(defun ange-ftp-hook-function (operation &rest args)
|
||||
(let ((fn (get operation 'ange-ftp)))
|
||||
(if fn (save-match-data (apply fn args))
|
||||
(if fn
|
||||
;; Catch also errors in process-filter.
|
||||
(condition-case err
|
||||
(let ((debug-on-error t))
|
||||
(save-match-data (apply fn args)))
|
||||
(error (error (error-message-string err))))
|
||||
(ange-ftp-run-real-handler operation args))))
|
||||
|
||||
;; The following code is commented out because Tramp now deals with
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue