diff options
| author | Stefan Monnier | 2005-12-27 17:01:01 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2005-12-27 17:01:01 +0000 |
| commit | 32d5ce4db47966d03c984dcf8b69473bb6dad48c (patch) | |
| tree | 2e364908f4c0f5e046b290a263b378510f448cd1 | |
| parent | d476efde686ba465cb75b0f2d0b5219da0c6cc0a (diff) | |
| download | emacs-32d5ce4db47966d03c984dcf8b69473bb6dad48c.tar.gz emacs-32d5ce4db47966d03c984dcf8b69473bb6dad48c.zip | |
(url-store-in-cache): Use save-current-buffer.
| -rw-r--r-- | lisp/url/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/url/url-cache.el | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog index aa87264dfef..ac6afe45608 100644 --- a/lisp/url/ChangeLog +++ b/lisp/url/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2005-12-27 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2005-12-27 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * url-cache.el (url-store-in-cache): Use save-current-buffer. | ||
| 4 | |||
| 3 | * url.el (url-configuration-directory): Don't autoload because the | 5 | * url.el (url-configuration-directory): Don't autoload because the |
| 4 | default value needs to be computed at run-time, not dump-time. | 6 | default value needs to be computed at run-time, not dump-time. |
| 5 | 7 | ||
diff --git a/lisp/url/url-cache.el b/lisp/url/url-cache.el index 40967446dd7..b8c2b063adc 100644 --- a/lisp/url/url-cache.el +++ b/lisp/url/url-cache.el | |||
| @@ -65,7 +65,7 @@ FILE can be created or overwritten." | |||
| 65 | "Store buffer BUFF in the cache." | 65 | "Store buffer BUFF in the cache." |
| 66 | (if (not (and buff (get-buffer buff))) | 66 | (if (not (and buff (get-buffer buff))) |
| 67 | nil | 67 | nil |
| 68 | (save-excursion | 68 | (save-current-buffer |
| 69 | (and buff (set-buffer buff)) | 69 | (and buff (set-buffer buff)) |
| 70 | (let* ((fname (url-cache-create-filename (url-view-url t)))) | 70 | (let* ((fname (url-cache-create-filename (url-view-url t)))) |
| 71 | (if (url-cache-prepare fname) | 71 | (if (url-cache-prepare fname) |
| @@ -202,5 +202,5 @@ Very fast if you have an `md5' primitive function, suitably fast otherwise." | |||
| 202 | 202 | ||
| 203 | (provide 'url-cache) | 203 | (provide 'url-cache) |
| 204 | 204 | ||
| 205 | ;;; arch-tag: 95b050a6-8e81-4f23-8e63-191b9d1d657c | 205 | ;; arch-tag: 95b050a6-8e81-4f23-8e63-191b9d1d657c |
| 206 | ;;; url-cache.el ends here | 206 | ;;; url-cache.el ends here |