emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master d3a208e: Don't assume url structs are vectors (Bug#


From: Noam Postavsky
Subject: [Emacs-diffs] master d3a208e: Don't assume url structs are vectors (Bug#27333)
Date: Wed, 28 Jun 2017 07:38:23 -0400 (EDT)

branch: master
commit d3a208ea8e2e3a28fb7d0e30248c7d46e13fc160
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>

    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(-)

diff --git a/lisp/url/url-history.el b/lisp/url/url-history.el
index 1fa0854..70a1a0c 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")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]