]> git.eshelyaron.com Git - emacs.git/commit
Refactoring of auth-source-pass
authorDamien Cassou <damien@cassou.me>
Tue, 14 May 2019 03:50:59 +0000 (05:50 +0200)
committerDamien Cassou <damien@cassou.me>
Mon, 24 Jun 2019 07:15:41 +0000 (09:15 +0200)
commit7022e3fde6bc577cc281bd8770fe5a41f7492b4f
tree7c423e6931eb57a3a5d0bf7ec7c3153cbfbbf0a3
parent736f78bb1af0593d9b02f0a45a64b1422a6fcc12
Refactoring of auth-source-pass

* lisp/auth-source-pass.el (auth-source-pass--find-match): Refactor by
moving some code to auth-source-pass--disambiguate.
(auth-source-pass--disambiguate)
(auth-source-pass--entries-matching-suffix): New function.
(auth-source-pass--find-match-unambiguous)
(auth-source-pass--select-from-entries)
(auth-source-pass--entry-reducer): Refactor to simplify and improve
logging.
(auth-source-pass--matching-entries)
(auth-source-pass--accumulate-matches): Remove.
* test/lisp/auth-source-pass-tests.el: Complete rewrite to facilitate
maintenance.
(auth-source-pass--have-message-containing): Remove.
(auth-source-pass--have-message-matching)
(auth-source-pass--explain--have-message-matching)
(auth-source-pass--explain-match-entry-p)
(auth-source-pass--includes-sorted-entries)
(auth-source-pass--explain-includes-sorted-entries)
(auth-source-pass--explain-match-any-entry-p)
(auth-source-pass--matching-entries)
(auth-source-pass-match-entry-p)
(auth-source-pass-match-any-entry-p): New function.
lisp/auth-source-pass.el
test/lisp/auth-source-pass-tests.el