projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e1caf3
)
Make url-cookie-write-file be more permissive
author
Lars Ingebrigtsen
<larsi@gnus.org>
Sun, 15 Apr 2018 19:50:38 +0000
(21:50 +0200)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Sun, 15 Apr 2018 19:50:38 +0000
(21:50 +0200)
* 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).
lisp/url/url-cookie.el
patch
|
blob
|
history
diff --git
a/lisp/url/url-cookie.el
b/lisp/url/url-cookie.el
index 76c18b756f7f5a5a852670a9d8c60eb2a45a0a5f..29487e83c6fe0688ca95a8b3284bd85f4f573b3d 100644
(file)
--- a/
lisp/url/url-cookie.el
+++ b/
lisp/url/url-cookie.el
@@
-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