summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorStefan Kangas <stefankangas@gmail.com>2019-06-09 09:18:46 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2019-06-09 10:08:36 -0700
commit1af27a17847fb02f35359e9bc03c77c1058f7a1d (patch)
tree8ad0793bdc6d9e8165d1e27abc8aa19d3ad73a73 /lisp
parent179b9c44c5dc6ba0cf8c9235b59c52aebcbaa828 (diff)
downloademacs-1af27a17847fb02f35359e9bc03c77c1058f7a1d.tar.gz
Use lexical-binding in password-cache.el and add tests
* lisp/password-cache.el: Use lexical-binding. * test/lisp/password-cache-tests.el: New file.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/emacs-lisp/check-declare.el2
-rw-r--r--lisp/password-cache.el4
2 files changed, 3 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/check-declare.el b/lisp/emacs-lisp/check-declare.el
index 8445950311b..0cb63bbe987 100644
--- a/lisp/emacs-lisp/check-declare.el
+++ b/lisp/emacs-lisp/check-declare.el
@@ -33,7 +33,7 @@
;;; TODO:
;; 1. Warn about functions marked as obsolete, eg
-;; password-read-and-add in smime.el.
+;; password-read-and-add in password-cache.el.
;; 2. defmethod, defclass argument checking.
;; 3. defclass also defines -p and -child-p.
diff --git a/lisp/password-cache.el b/lisp/password-cache.el
index b868b720f00..5a09ae4859d 100644
--- a/lisp/password-cache.el
+++ b/lisp/password-cache.el
@@ -1,10 +1,10 @@
-;;; password-cache.el --- Read passwords, possibly using a password cache.
+;;; password-cache.el --- Read passwords, possibly using a password cache. -*- lexical-binding: t -*-
;; Copyright (C) 1999-2000, 2003-2019 Free Software Foundation, Inc.
;; Author: Simon Josefsson <simon@josefsson.org>
;; Created: 2003-12-21
-;; Keywords: password cache passphrase key
+;; Keywords: extensions
;; This file is part of GNU Emacs.