* bug#23183: 25.1.50; Error in url-cookie-delete-cookies
@ 2016-04-01 23:04 Michael Heerdegen
2018-04-15 19:51 ` Lars Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: Michael Heerdegen @ 2016-04-01 23:04 UTC (permalink / raw)
To: 23183; +Cc: Lars Ingebrigtsen
Hello,
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:
--8<---------------cut here---------------start------------->8---
(require 'url)
(add-hook 'kill-emacs-hook #'url-cookie-delete-cookies)
--8<---------------cut here---------------end--------------->8---
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()
url-cookie-delete-cookies()
kill-emacs()
save-buffers-kill-emacs(nil)
save-buffers-kill-terminal(nil)
funcall-interactively(save-buffers-kill-terminal nil)
call-interactively(save-buffers-kill-terminal nil nil)
command-execute(save-buffers-kill-terminal)
where `nil' is "the nil" that `cookie-file' is bound to.
I think it would be good if the function would not fail in this case.
Thanks,
Michael.
In GNU Emacs 25.1.50.3 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
of 2016-03-31 built on drachen
Repository revision: 09462b95484ebf75899c64e8ddb7ffce50ef6ca0
Windowing system distributor 'The X.Org Foundation', version 11.0.11802000
System Description: Debian GNU/Linux testing (stretch)
Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GSETTINGS NOTIFY
LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11
Important settings:
value of $LC_ALL: de_DE.utf8
value of $LC_COLLATE: C
value of $LC_TIME: C
value of $LANG: de_DE.utf8
locale-coding-system: utf-8-unix
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#23183: 25.1.50; Error in url-cookie-delete-cookies
2016-04-01 23:04 bug#23183: 25.1.50; Error in url-cookie-delete-cookies Michael Heerdegen
@ 2018-04-15 19:51 ` Lars Ingebrigtsen
0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2018-04-15 19:51 UTC (permalink / raw)
To: Michael Heerdegen; +Cc: 23183
Michael Heerdegen <michael_heerdegen@web.de> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-04-15 19:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-01 23:04 bug#23183: 25.1.50; Error in url-cookie-delete-cookies Michael Heerdegen
2018-04-15 19:51 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.