emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 24cbb65 08/14: Silence byte compiler warning in aut


From: Nicolas Petton
Subject: [Emacs-diffs] master 24cbb65 08/14: Silence byte compiler warning in auth-source-pass
Date: Tue, 5 Jun 2018 09:53:57 -0400 (EDT)

branch: master
commit 24cbb659541b13ad373082f6cf76df7cc5cc1f38
Author: Alex Branham <address@hidden>
Commit: Nicolas Petton <address@hidden>

    Silence byte compiler warning in auth-source-pass
    
    * lisp/auth-source-pass.el (auth-source-pass-backend): Silence byte
    compiler warning by only passing a parameter to `auth-source-backend'
    in Emacs <= 25.
---
 lisp/auth-source-pass.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/auth-source-pass.el b/lisp/auth-source-pass.el
index 461cba0..ec0fe8c 100644
--- a/lisp/auth-source-pass.el
+++ b/lisp/auth-source-pass.el
@@ -81,7 +81,7 @@ See `auth-source-search' for details on SPEC."
 
 (defvar auth-source-pass-backend
   (auth-source-backend
-   (format "Password store")
+   (when (<= emacs-major-version 25) "password-store")
    :source "." ;; not used
    :type 'password-store
    :search-function #'auth-source-pass-search)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]