# HG changeset patch # User Stefan Monnier # Date 1135702861 0 # Node ID eebc9bf86f06f1abea0875c05ee1061fc06c6881 # Parent 5a29e54d6794566cb8b463bd1c71775d71299c1e (url-store-in-cache): Use save-current-buffer. diff -r 5a29e54d6794 -r eebc9bf86f06 lisp/url/ChangeLog --- a/lisp/url/ChangeLog Tue Dec 27 16:59:45 2005 +0000 +++ b/lisp/url/ChangeLog Tue Dec 27 17:01:01 2005 +0000 @@ -1,5 +1,7 @@ 2005-12-27 Stefan Monnier + * url-cache.el (url-store-in-cache): Use save-current-buffer. + * url.el (url-configuration-directory): Don't autoload because the default value needs to be computed at run-time, not dump-time. diff -r 5a29e54d6794 -r eebc9bf86f06 lisp/url/url-cache.el --- a/lisp/url/url-cache.el Tue Dec 27 16:59:45 2005 +0000 +++ b/lisp/url/url-cache.el Tue Dec 27 17:01:01 2005 +0000 @@ -65,7 +65,7 @@ "Store buffer BUFF in the cache." (if (not (and buff (get-buffer buff))) nil - (save-excursion + (save-current-buffer (and buff (set-buffer buff)) (let* ((fname (url-cache-create-filename (url-view-url t)))) (if (url-cache-prepare fname) @@ -202,5 +202,5 @@ (provide 'url-cache) -;;; arch-tag: 95b050a6-8e81-4f23-8e63-191b9d1d657c +;; arch-tag: 95b050a6-8e81-4f23-8e63-191b9d1d657c ;;; url-cache.el ends here