]> git.eshelyaron.com Git - emacs.git/commitdiff
(auth-source-search): Avoid obsolete EIEIO convention
authorEshel Yaron <me@eshelyaron.com>
Thu, 17 Apr 2025 19:31:07 +0000 (21:31 +0200)
committerEshel Yaron <me@eshelyaron.com>
Thu, 17 Apr 2025 19:31:07 +0000 (21:31 +0200)
lisp/auth-source.el

index cb866e1faf1966e9519648d8dd42ed918d17fb1c..e8b4d5d3b8c32ecd37ddb4c924d3d1ea07e0c2f7 100644 (file)
@@ -708,7 +708,11 @@ must call it to obtain the actual value."
           (condition-case nil
               (unless (auth-source-search-collection
                        (plist-get spec key)
-                       (slot-value backend key))
+                       (slot-value
+                        backend
+                        (if (keywordp key)
+                            (intern-soft (substring (symbol-name key) 1))
+                          key)))
                 (setq filtered-backends (delq backend filtered-backends))
                 (cl-return))
             (invalid-slot-name nil))))