; Fix warnings in 'auth-source-search' (bug#77612)

* lisp/auth-source.el (auth-source-search): When calling
'slot-value', specify slots by name, not by ':initarg'.
This commit is contained in:
Eshel Yaron 2025-04-17 21:31:07 +02:00
parent 58ff101380
commit 2f67352d7a
No known key found for this signature in database
GPG key ID: EF3EE9CA35D78618

View 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))))