Mercurial > emacs
comparison lisp/net/ange-ftp.el @ 82286:e0397e15d9bc
* net/ange-ftp.el (ange-ftp-hook-function): Catch also errors in
process-filter.
author | Michael Albinus <michael.albinus@gmx.de> |
---|---|
date | Mon, 06 Aug 2007 06:50:09 +0000 |
parents | b98604865ea0 |
children | f2f7731c3eed |
comparison
equal
deleted
inserted
replaced
82285:e6a22becd0a3 | 82286:e0397e15d9bc |
---|---|
4283 ;;; that causes ange-ftp to be invoked. | 4283 ;;; that causes ange-ftp to be invoked. |
4284 | 4284 |
4285 ;;;###autoload | 4285 ;;;###autoload |
4286 (defun ange-ftp-hook-function (operation &rest args) | 4286 (defun ange-ftp-hook-function (operation &rest args) |
4287 (let ((fn (get operation 'ange-ftp))) | 4287 (let ((fn (get operation 'ange-ftp))) |
4288 (if fn (save-match-data (apply fn args)) | 4288 (if fn |
4289 ;; Catch also errors in process-filter. | |
4290 (condition-case err | |
4291 (let ((debug-on-error t)) | |
4292 (save-match-data (apply fn args))) | |
4293 (error (error (error-message-string err)))) | |
4289 (ange-ftp-run-real-handler operation args)))) | 4294 (ange-ftp-run-real-handler operation args)))) |
4290 | 4295 |
4291 ;; The following code is commented out because Tramp now deals with | 4296 ;; The following code is commented out because Tramp now deals with |
4292 ;; Ange-FTP filenames, too. | 4297 ;; Ange-FTP filenames, too. |
4293 | 4298 |