Subject: Re: bug#23183: 25.1.50; Error in url-cookie-delete-cookies

From: Lars Ingebrigtsen <[email-masked]>
Date: Sun, 15 Apr 2018 21:51:10 +0200

Michael Heerdegen <[email-masked]> writes:

> Lars had introduced the new function `url-cookie-delete-cookies'.
>
> I had hoped that this would (always) work - since it is so suggesting to
> do:
>
> (require 'url)
>
> (add-hook 'kill-emacs-hook #'url-cookie-delete-cookies)
>
> But that gives an error - apparently - when you haven't yet used the
> cookie mechanism.  Backtrace from emacs -Q after evaluating that and
> hitting C-x C-c:
>
> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>   expand-file-name(nil)
>   url-cookie-write-file()

I've now make that function not error out in this situation.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no