diff options
| author | Magnus Henoch | 2006-11-08 00:13:00 +0000 |
|---|---|---|
| committer | Magnus Henoch | 2006-11-08 00:13:00 +0000 |
| commit | 947612be2c71d2478179694e8dfa538b9e8e07c1 (patch) | |
| tree | ac823c132bf8cfbbf99776406cb33726bd655f56 | |
| parent | 86cb14475e9e76f0b3323d2e7110a4a2bd310cdb (diff) | |
| download | emacs-947612be2c71d2478179694e8dfa538b9e8e07c1.tar.gz emacs-947612be2c71d2478179694e8dfa538b9e8e07c1.zip | |
(url-retrieve-synchronously): Allow quitting when inhibit-quit is t.
| -rw-r--r-- | lisp/url/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/url/url.el | 12 |
2 files changed, 14 insertions, 3 deletions
diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog index 678e7e5a8db..2f03b9e9d67 100644 --- a/lisp/url/ChangeLog +++ b/lisp/url/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2006-11-08 Magnus Henoch <mange@freemail.hu> | ||
| 2 | |||
| 3 | * url.el (url-retrieve-synchronously): Allow quitting when | ||
| 4 | inhibit-quit is t. | ||
| 5 | |||
| 1 | 2006-11-03 Shun-ichi GOTO <gotoh@taiyo.co.jp> (tiny change) | 6 | 2006-11-03 Shun-ichi GOTO <gotoh@taiyo.co.jp> (tiny change) |
| 2 | 7 | ||
| 3 | * url-http.el (url-http-handle-authentication): If there are | 8 | * url-http.el (url-http-handle-authentication): If there are |
diff --git a/lisp/url/url.el b/lisp/url/url.el index 6e4dfa089e7..a95c7e39c02 100644 --- a/lisp/url/url.el +++ b/lisp/url/url.el | |||
| @@ -246,10 +246,16 @@ no further processing). URL is either a string or a parsed URL." | |||
| 246 | ;; interrupt it before it got a chance to handle process input. | 246 | ;; interrupt it before it got a chance to handle process input. |
| 247 | ;; `sleep-for' was tried but it lead to other forms of | 247 | ;; `sleep-for' was tried but it lead to other forms of |
| 248 | ;; hanging. --Stef | 248 | ;; hanging. --Stef |
| 249 | (unless (or (accept-process-output proc) (null proc)) | 249 | (unless (or (with-local-quit |
| 250 | (accept-process-output proc)) | ||
| 251 | (null proc)) | ||
| 250 | ;; accept-process-output returned nil, maybe because the process | 252 | ;; accept-process-output returned nil, maybe because the process |
| 251 | ;; exited (and may have been replaced with another). | 253 | ;; exited (and may have been replaced with another). If we got |
| 252 | (setq proc (get-buffer-process asynch-buffer)))))) | 254 | ;; a quit, just stop. |
| 255 | (when quit-flag | ||
| 256 | (delete-process proc)) | ||
| 257 | (setq proc (and (not quit-flag) | ||
| 258 | (get-buffer-process asynch-buffer))))))) | ||
| 253 | asynch-buffer))) | 259 | asynch-buffer))) |
| 254 | 260 | ||
| 255 | (defun url-mm-callback (&rest ignored) | 261 | (defun url-mm-callback (&rest ignored) |