1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-07 04:10:27 -08:00

Make url-cookie-write-file be more permissive

* lisp/url/url-cookie.el (url-cookie-write-file): If
`url-cookie-file' isn't set (due to url.el not being used yet),
don't error out in this function (bug#23183).
This commit is contained in:
Lars Ingebrigtsen 2018-04-15 21:50:38 +02:00
parent 2e1caf3254
commit 1c16fbd1b2

View file

@ -139,7 +139,8 @@ i.e. 1970-1-1) are loaded as expiring one year from now instead."
(set var new)))
(defun url-cookie-write-file (&optional fname)
(when url-cookies-changed-since-last-save
(when (and url-cookies-changed-since-last-save
url-cookie-file)
(or fname (setq fname (expand-file-name url-cookie-file)))
(if (condition-case nil
(progn