diff options
| -rw-r--r-- | lisp/url/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/url/url-http.el | 19 |
2 files changed, 18 insertions, 8 deletions
diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog index cb002731eec..b5bc07cb170 100644 --- a/lisp/url/ChangeLog +++ b/lisp/url/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2006-03-05 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * url-http.el (url-http-find-free-connection): Don't kill the process | ||
| 4 | when killing the temp buffer. | ||
| 5 | (url-http-symbol-value-in-buffer): Massage to make it clear to the | ||
| 6 | byte-compiler that the function is defined. | ||
| 7 | |||
| 1 | 2006-02-20 Stefan Monnier <monnier@iro.umontreal.ca> | 8 | 2006-02-20 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 9 | ||
| 3 | * url.el (url-redirect-buffer): New var. | 10 | * url.el (url-redirect-buffer): New var. |
diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el index 22ca6010ef9..a4a01958b2d 100644 --- a/lisp/url/url-http.el +++ b/lisp/url/url-http.el | |||
| @@ -121,7 +121,10 @@ request.") | |||
| 121 | (let ((buf (generate-new-buffer " *url-http-temp*"))) | 121 | (let ((buf (generate-new-buffer " *url-http-temp*"))) |
| 122 | ;; `url-open-stream' needs a buffer in which to do things | 122 | ;; `url-open-stream' needs a buffer in which to do things |
| 123 | ;; like authentication. But we use another buffer afterwards. | 123 | ;; like authentication. But we use another buffer afterwards. |
| 124 | (unwind-protect (url-open-stream host buf host port) | 124 | (unwind-protect |
| 125 | (let ((proc (url-open-stream host buf host port))) | ||
| 126 | ;; Drop the temp buffer link before killing the buffer. | ||
| 127 | (set-process-buffer proc nil)) | ||
| 125 | (kill-buffer buf))))))) | 128 | (kill-buffer buf))))))) |
| 126 | 129 | ||
| 127 | ;; Building an HTTP request | 130 | ;; Building an HTTP request |
| @@ -1109,15 +1112,15 @@ CBARGS as the arguments." | |||
| 1109 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 1112 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 1110 | ;;; file-name-handler stuff from here on out | 1113 | ;;; file-name-handler stuff from here on out |
| 1111 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 1114 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 1112 | (if (not (fboundp 'symbol-value-in-buffer)) | 1115 | (defalias 'url-http-symbol-value-in-buffer |
| 1113 | (defun url-http-symbol-value-in-buffer (symbol buffer | 1116 | (if (fboundp 'symbol-value-in-buffer) |
| 1114 | &optional unbound-value) | 1117 | 'symbol-value-in-buffer |
| 1118 | (lambda (symbol buffer &optional unbound-value) | ||
| 1115 | "Return the value of SYMBOL in BUFFER, or UNBOUND-VALUE if it is unbound." | 1119 | "Return the value of SYMBOL in BUFFER, or UNBOUND-VALUE if it is unbound." |
| 1116 | (with-current-buffer buffer | 1120 | (with-current-buffer buffer |
| 1117 | (if (not (boundp symbol)) | 1121 | (if (not (boundp symbol)) |
| 1118 | unbound-value | 1122 | unbound-value |
| 1119 | (symbol-value symbol)))) | 1123 | (symbol-value symbol)))))) |
| 1120 | (defalias 'url-http-symbol-value-in-buffer 'symbol-value-in-buffer)) | ||
| 1121 | 1124 | ||
| 1122 | (defun url-http-head (url) | 1125 | (defun url-http-head (url) |
| 1123 | (let ((url-request-method "HEAD") | 1126 | (let ((url-request-method "HEAD") |