Commit 32fa5844 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

(url-cookie-write-file): Create parent dir.

parent 208d4577
2005-12-21 Stefan Monnier <>
* url-cookie.el (url-cookie-write-file): Create parent dir.
* url.el (url-configuration-directory): Use ~/.emacs.d if possible.
2005-12-07 Klaus Straubinger <KSNetz@Arcor.DE> (tiny change)
* url-cookie.el (url-cookie-save-interval): Simplify.
......@@ -148,6 +148,8 @@ telling Microsoft that."
(defun url-cookie-write-file (&optional fname)
(setq fname (or fname url-cookie-file))
(unless (file-directory-p (file-name-directory fname))
(ignore-errors (make-directory (file-name-directory fname))))
((not url-cookies-changed-since-last-save) nil)
((not (file-writable-p fname))
......@@ -155,8 +157,7 @@ telling Microsoft that."
(url-cookie-clean-up t)
(set-buffer (get-buffer-create " *cookies*"))
(with-current-buffer (get-buffer-create " *cookies*")
(insert ";; Emacs-W3 HTTP cookies file\n"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment