GNU bug report logs -
#23183
25.1.50; Error in url-cookie-delete-cookies
Previous Next
Reported by: Michael Heerdegen <michael_heerdegen <at> web.de>
Date: Fri, 1 Apr 2016 23:06:01 UTC
Severity: minor
Tags: fixed
Found in version 25.1.50
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 23183 in the body.
You can then email your comments to 23183 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#23183
; Package
emacs
.
(Fri, 01 Apr 2016 23:06:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Michael Heerdegen <michael_heerdegen <at> web.de>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 01 Apr 2016 23:06:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#23183
; Package
emacs
.
(Sun, 15 Apr 2018 19:52:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 23183 <at> debbugs.gnu.org (full text, mbox):
Michael Heerdegen <michael_heerdegen <at> 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
Added tag(s) fixed.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sun, 15 Apr 2018 19:52:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
23183 <at> debbugs.gnu.org and Michael Heerdegen <michael_heerdegen <at> web.de>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sun, 15 Apr 2018 19:52:04 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 14 May 2018 11:24:08 GMT)
Full text and
rfc822 format available.
This bug report was last modified 7 years and 122 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.