From d3a208ea8e2e3a28fb7d0e30248c7d46e13fc160 Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Wed, 14 Jun 2017 20:23:29 -0400 Subject: Don't assume url structs are vectors (Bug#27333) * lisp/url/url-history.el (url-history-update-url): Use `url-p' instead of `vectorp'. --- lisp/url/url-history.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lisp') diff --git a/lisp/url/url-history.el b/lisp/url/url-history.el index 1fa085400d8..70a1a0c1441 100644 --- a/lisp/url/url-history.el +++ b/lisp/url/url-history.el @@ -106,7 +106,7 @@ to run the `url-history-setup-save-timer' function manually." (defun url-history-update-url (url time) (setq url-history-changed-since-last-save t) - (puthash (if (vectorp url) (url-recreate-url url) url) time + (puthash (if (url-p url) (url-recreate-url url) url) time url-history-hash-table)) (autoload 'url-make-private-file "url-util") -- cgit v1.2.1