summaryrefslogtreecommitdiff
path: root/lisp/auth-source.el
diff options
context:
space:
mode:
authorMark Oteiza <mvoteiza@udel.edu>2016-10-17 14:31:31 -0400
committerMark Oteiza <mvoteiza@udel.edu>2016-10-17 14:31:31 -0400
commite697ccab77b1668a0781397b55b676fc4e9bc1b6 (patch)
tree963c26f4f1b72af0e8788da97488ee2df0dc285f /lisp/auth-source.el
parent421c0512f76683e0b85ea5e1362291c2da4149ba (diff)
downloademacs-e697ccab77b1668a0781397b55b676fc4e9bc1b6.tar.gz
Turn on lexical-binding in auth-source
* lisp/auth-source.el: Turn on lexical-binding. (auth-source-netrc-parse, auth-source-netrc-normalize): (auth-source-token-passphrase-callback-function): (auth-source-netrc-create, auth-source-secrets-search): (auth-source-macos-keychain-search-items): (auth-source-plstore-search): Use let instead of lexical-let.
Diffstat (limited to 'lisp/auth-source.el')
-rw-r--r--lisp/auth-source.el24
1 files changed, 12 insertions, 12 deletions
diff --git a/lisp/auth-source.el b/lisp/auth-source.el
index 97059fa5bd9..9e1f46877bd 100644
--- a/lisp/auth-source.el
+++ b/lisp/auth-source.el
@@ -1,4 +1,4 @@
-;;; auth-source.el --- authentication sources for Gnus and Emacs
+;;; auth-source.el --- authentication sources for Gnus and Emacs -*- lexical-binding: t -*-
;; Copyright (C) 2008-2016 Free Software Foundation, Inc.
@@ -1002,7 +1002,7 @@ Note that the MAX parameter is used so we can exit the parse early."
(auth-source--aput
auth-source-netrc-cache file
(list :mtime (nth 5 (file-attributes file))
- :secret (lexical-let ((v (mapcar #'1+ (buffer-string))))
+ :secret (let ((v (mapcar #'1+ (buffer-string))))
(lambda () (apply #'string (mapcar #'1- v)))))))
(goto-char (point-min))
(let ((entries (auth-source-netrc-parse-entries check max))
@@ -1118,7 +1118,7 @@ Note that the MAX parameter is used so we can exit the parse early."
(read-passwd
(format "Passphrase for %s tokens: " file)
t))
- (setcdr entry (lexical-let ((p (copy-sequence passphrase)))
+ (setcdr entry (let ((p (copy-sequence passphrase)))
(lambda () p)))
passphrase))))
@@ -1174,8 +1174,8 @@ FILE is the file from which we obtained this token."
;; send back the secret in a function (lexical binding)
(when (equal k "secret")
- (setq v (lexical-let ((lexv v)
- (token-decoder nil))
+ (setq v (let ((lexv v)
+ (token-decoder nil))
(when (string-match "^gpg:" lexv)
;; it's a GPG token: create a token decoder
;; which unsets itself once
@@ -1384,7 +1384,7 @@ See `auth-source-search' for details on SPEC."
(setq artificial (plist-put artificial
(auth-source--symbol-keyword r)
(if (eq r 'secret)
- (lexical-let ((data data))
+ (let ((data data))
(lambda () data))
data))))
@@ -1414,8 +1414,8 @@ See `auth-source-search' for details on SPEC."
(plist-put
artificial
:save-function
- (lexical-let ((file file)
- (add add))
+ (let ((file file)
+ (add add))
(lambda () (auth-source-netrc-saver file add))))
(list artificial)))
@@ -1611,7 +1611,7 @@ authentication tokens:
;; make an entry for the secret (password) element
(list
:secret
- (lexical-let ((v (secrets-get-secret coll item)))
+ (let ((v (secrets-get-secret coll item)))
(lambda () v)))
;; rewrite the entry from ((k1 v1) (k2 v2)) to plist
(apply #'append
@@ -1813,8 +1813,8 @@ entries for git.gnus.org:
ret
keychain-generic
"secret"
- (lexical-let ((v (auth-source--decode-octal-string
- (match-string 1))))
+ (let ((v (auth-source--decode-octal-string
+ (match-string 1))))
(lambda () v)))))
;; TODO: check if this is really the label
;; match 0x00000007 <blob>="AppleID"
@@ -1896,7 +1896,7 @@ entries for git.gnus.org:
(if secret
(setcar
(cdr secret)
- (lexical-let ((v (car (cdr secret))))
+ (let ((v (car (cdr secret))))
(lambda () v))))
plist))
items))