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:
parent
2e1caf3254
commit
1c16fbd1b2
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue