summaryrefslogtreecommitdiff
path: root/lisp/epg-config.el
diff options
context:
space:
mode:
authorStefan Kangas <stefan@marxist.se>2021-04-01 11:07:06 +0200
committerStefan Kangas <stefan@marxist.se>2021-04-01 11:07:06 +0200
commit4582c96828d6386ab6a6a6b2a7147a810c8ba474 (patch)
tree9b708e3e3154d8f4b9908b04c23991701e861319 /lisp/epg-config.el
parent1f790dfe90d914e02182fc4abab6623d9c966ff6 (diff)
downloademacs-4582c96828d6386ab6a6a6b2a7147a810c8ba474.tar.gz
Use lexical-binding in epg-config.el and add tests
* lisp/epg-config.el: Use lexical-binding. (epg-find-configuration): Improve error message. * test/lisp/epg-config-tests.el: New file.
Diffstat (limited to 'lisp/epg-config.el')
-rw-r--r--lisp/epg-config.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/epg-config.el b/lisp/epg-config.el
index 59d097c91f0..d32c8c897c7 100644
--- a/lisp/epg-config.el
+++ b/lisp/epg-config.el
@@ -1,4 +1,4 @@
-;;; epg-config.el --- configuration of the EasyPG Library
+;;; epg-config.el --- configuration of the EasyPG Library -*- lexical-binding: t -*-
;; Copyright (C) 2006-2021 Free Software Foundation, Inc.
@@ -21,6 +21,8 @@
;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
+;;; Commentary:
+
;;; Code:
;;; Prelude
@@ -157,7 +159,7 @@ version requirement is met."
(setq program-alist epg-config--program-alist))
(let ((entry (assq protocol program-alist)))
(unless entry
- (error "Unknown protocol %S" protocol))
+ (error "Unknown protocol `%S'" protocol))
(cl-destructuring-bind (symbol . alist)
(cdr entry)
(let ((constructor