-;;; url-history.el --- Global history tracking for URL package
+;;; url-history.el --- Global history tracking for URL package -*- lexical-binding:t -*-
;; Copyright (C) 1996-1999, 2004-2017 Free Software Foundation, Inc.
(gethash url url-history-hash-table nil))
(defun url-completion-function (string predicate function)
+ (declare (obsolete url-history-hash-table "26.1"))
;; Completion function to complete urls from the history.
;; This is obsolete since we can now pass the hash-table directly as a
;; completion table.
(cond
((eq function nil)
(let ((list nil))
- (maphash (lambda (key val) (push key list))
+ (maphash (lambda (key _) (push key list))
url-history-hash-table)
;; Not sure why we bother reversing the list. --Stef
(try-completion string (nreverse list) predicate)))
(let ((stub (concat "\\`" (regexp-quote string)))
(retval nil))
(maphash
- (lambda (url time)
+ (lambda (url _)
(if (string-match stub url) (push url retval)))
url-history-hash-table)
retval))