diff options
| author | Stefan Monnier | 2018-04-20 16:56:53 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2018-04-20 16:56:53 -0400 |
| commit | 71b108a5d771a5d9a777dd9bdafa082fa6a6384b (patch) | |
| tree | 37b6fd9e8b6ba0a5ab630077ad6ffc654487c828 | |
| parent | be96414a62f670655320605955a7b60817d67bdb (diff) | |
| download | emacs-71b108a5d771a5d9a777dd9bdafa082fa6a6384b.tar.gz emacs-71b108a5d771a5d9a777dd9bdafa082fa6a6384b.zip | |
* lisp/url/url-file.el: Use lexical-binding.
| -rw-r--r-- | lisp/url/url-file.el | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/lisp/url/url-file.el b/lisp/url/url-file.el index 92edd9901ef..1c7c20e7c83 100644 --- a/lisp/url/url-file.el +++ b/lisp/url/url-file.el | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | ;;; url-file.el --- File retrieval code | 1 | ;;; url-file.el --- File retrieval code -*- lexical-binding:t -*- |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1996-1999, 2004-2018 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1996-1999, 2004-2018 Free Software Foundation, Inc. |
| 4 | 4 | ||
| @@ -33,7 +33,7 @@ | |||
| 33 | (defconst url-file-asynchronous-p t "FTP transfers are asynchronous.") | 33 | (defconst url-file-asynchronous-p t "FTP transfers are asynchronous.") |
| 34 | (defalias 'url-file-expand-file-name 'url-default-expander) | 34 | (defalias 'url-file-expand-file-name 'url-default-expander) |
| 35 | 35 | ||
| 36 | (defun url-file-find-possibly-compressed-file (fname &rest args) | 36 | (defun url-file-find-possibly-compressed-file (fname &rest _) |
| 37 | "Find the exact file referenced by `fname'. | 37 | "Find the exact file referenced by `fname'. |
| 38 | This tries the common compression extensions, because things like | 38 | This tries the common compression extensions, because things like |
| 39 | ange-ftp and efs are not quite smart enough to realize when a server | 39 | ange-ftp and efs are not quite smart enough to realize when a server |
| @@ -63,7 +63,7 @@ to them." | |||
| 63 | (match-beginning 0)) | 63 | (match-beginning 0)) |
| 64 | (system-name))))))) | 64 | (system-name))))))) |
| 65 | 65 | ||
| 66 | (defun url-file-asynch-callback (x y name buff func args &optional efs) | 66 | (defun url-file-asynch-callback (_x _y name buff func args &optional efs) |
| 67 | (if (not (featurep 'ange-ftp)) | 67 | (if (not (featurep 'ange-ftp)) |
| 68 | ;; EFS passes us an extra argument | 68 | ;; EFS passes us an extra argument |
| 69 | (setq name buff | 69 | (setq name buff |
| @@ -114,8 +114,7 @@ to them." | |||
| 114 | ((string-match "\\`/[^/]+:/" file) | 114 | ((string-match "\\`/[^/]+:/" file) |
| 115 | (concat "/:" file)) | 115 | (concat "/:" file)) |
| 116 | (t | 116 | (t |
| 117 | file))) | 117 | file)))) |
| 118 | pos-index) | ||
| 119 | 118 | ||
| 120 | (and user pass | 119 | (and user pass |
| 121 | (cond | 120 | (cond |
| @@ -200,7 +199,7 @@ to them." | |||
| 200 | (if (featurep 'ange-ftp) | 199 | (if (featurep 'ange-ftp) |
| 201 | (ange-ftp-copy-file-internal filename (expand-file-name new) t | 200 | (ange-ftp-copy-file-internal filename (expand-file-name new) t |
| 202 | nil t | 201 | nil t |
| 203 | (list 'url-file-asynch-callback | 202 | (list #'url-file-asynch-callback |
| 204 | new (current-buffer) | 203 | new (current-buffer) |
| 205 | callback cbargs) | 204 | callback cbargs) |
| 206 | t) | 205 | t) |
| @@ -209,7 +208,7 @@ to them." | |||
| 209 | (efs-copy-file-internal filename (efs-ftp-path filename) | 208 | (efs-copy-file-internal filename (efs-ftp-path filename) |
| 210 | new (efs-ftp-path new) | 209 | new (efs-ftp-path new) |
| 211 | t nil 0 | 210 | t nil 0 |
| 212 | (list 'url-file-asynch-callback | 211 | (list #'url-file-asynch-callback |
| 213 | new (current-buffer) | 212 | new (current-buffer) |
| 214 | callback cbargs) | 213 | callback cbargs) |
| 215 | 0 nil))))))) | 214 | 0 nil))))))) |