aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2005-02-26 15:23:43 +0000
committerEli Zaretskii2005-02-26 15:23:43 +0000
commita6efc2c25d1c6b32827c54deaccc6dd704d34d96 (patch)
tree362c53969cc613d06297ed5fe4c9500fd0d64f17
parent04ff38fb1cabe99c5a94fb8929b0141afbea3250 (diff)
downloademacs-a6efc2c25d1c6b32827c54deaccc6dd704d34d96.tar.gz
emacs-a6efc2c25d1c6b32827c54deaccc6dd704d34d96.zip
(url-have-visited-url): Don't barf if url-history-hash-table is nil.
-rw-r--r--lisp/url/ChangeLog5
-rw-r--r--lisp/url/url-history.el3
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog
index 8bc7209749f..5a3bf23529c 100644
--- a/lisp/url/ChangeLog
+++ b/lisp/url/ChangeLog
@@ -1,3 +1,8 @@
12005-02-26 James Cloos <cloos@jhcloos.com> (tiny change)
2
3 * url-history.el (url-have-visited-url): Don't barf if
4 url-history-hash-table is nil.
5
12005-02-14 Michael Welsh Duggan <md5i@cs.cmu.edu> 62005-02-14 Michael Welsh Duggan <md5i@cs.cmu.edu>
2 7
3 * url-http.el (url-http-parse-headers): Test url-automatic-caching. 8 * url-http.el (url-http-parse-headers): Test url-automatic-caching.
diff --git a/lisp/url/url-history.el b/lisp/url/url-history.el
index 6a2d87cfbc1..e2bc9b17f69 100644
--- a/lisp/url/url-history.el
+++ b/lisp/url/url-history.el
@@ -164,7 +164,8 @@ user for what type to save as."
164 164
165(defun url-have-visited-url (url) 165(defun url-have-visited-url (url)
166 (url-do-setup) 166 (url-do-setup)
167 (gethash url url-history-hash-table nil)) 167 (and url-history-hash-table
168 (gethash url url-history-hash-table nil)))
168 169
169(defun url-completion-function (string predicate function) 170(defun url-completion-function (string predicate function)
170 (url-do-setup) 171 (url-do-setup)