diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2017-06-28 10:44:18 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2017-06-28 10:44:18 -0400 |
commit | 3b19663b44be29986ebaacfb3a3c95130cd65964 (patch) | |
tree | d8b9da53a38ac97ef632aafe847d93be842f0eea /lisp/url/url-history.el | |
parent | d3a208ea8e2e3a28fb7d0e30248c7d46e13fc160 (diff) | |
download | emacs-3b19663b44be29986ebaacfb3a3c95130cd65964.tar.gz emacs-3b19663b44be29986ebaacfb3a3c95130cd65964.tar.bz2 emacs-3b19663b44be29986ebaacfb3a3c95130cd65964.zip |
* lisp/url/url-history.el: Use lexical-binding
(url-completion-function): Mark as obsolete.
Mark unused args accordingly.
Diffstat (limited to 'lisp/url/url-history.el')
-rw-r--r-- | lisp/url/url-history.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/url/url-history.el b/lisp/url/url-history.el index 70a1a0c1441..8657d19da8c 100644 --- a/lisp/url/url-history.el +++ b/lisp/url/url-history.el @@ -1,4 +1,4 @@ -;;; 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. @@ -157,6 +157,7 @@ user for what type to save as." (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. @@ -164,7 +165,7 @@ user for what type to save as." (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))) @@ -172,7 +173,7 @@ user for what type to save as." (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)) |