]> git.eshelyaron.com Git - emacs.git/commitdiff
Silence byte compiler warning in auth-source-pass
authorAlex Branham <branham@utexas.edu>
Mon, 12 Feb 2018 19:28:20 +0000 (13:28 -0600)
committerNicolas Petton <nicolas@petton.fr>
Tue, 5 Jun 2018 13:51:32 +0000 (15:51 +0200)
* 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

index 461cba02dd436b545a075804a6f5000936217848..ec0fe8c4320d39e14ae2a3bd2d1a18a07ce991c4 100644 (file)
@@ -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)