From 178f50ff72a52521d9ff2f2b7ca75b335c907090 Mon Sep 17 00:00:00 2001 From: Damien Cassou Date: Mon, 26 Mar 2018 06:28:17 +0200 Subject: [PATCH 12/14] Make sure auth-source-pass is compatible with Emacs 25 * lisp/auth-source-pass.el: Use `advice-add' for Emacs 25 users as `auth-source-backend-parser-functions' does not exist there. --- lisp/auth-source-pass.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/auth-source-pass.el b/lisp/auth-source-pass.el index 1193d67954..d5c6139814 100644 --- a/lisp/auth-source-pass.el +++ b/lisp/auth-source-pass.el @@ -92,7 +92,9 @@ auth-source-pass-backend-parse (when (eq entry 'password-store) (auth-source-backend-parse-parameters entry auth-source-pass-backend))) -(add-hook 'auth-source-backend-parser-functions #'auth-source-pass-backend-parse) +(if (boundp 'auth-source-backend-parser-functions) + (add-hook 'auth-source-backend-parser-functions #'auth-source-pass-backend-parse) + (advice-add 'auth-source-backend-parse :before-until #'auth-source-pass-backend-parse)) (defun auth-source-pass-get (key entry) -- 2.17.0