aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEshel Yaron2025-04-17 21:31:07 +0200
committerEshel Yaron2025-04-18 08:30:53 +0200
commit2f67352d7ae708f8a3b6c4883eb4854e5e382d59 (patch)
treeef1908c8775540fb05173a5ea6f5b78156bc0bdc
parent58ff10138060df71fd3158159382c5dd93440a3e (diff)
downloademacs-2f67352d7ae708f8a3b6c4883eb4854e5e382d59.tar.gz
emacs-2f67352d7ae708f8a3b6c4883eb4854e5e382d59.zip
; 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'.
-rw-r--r--lisp/auth-source.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/auth-source.el b/lisp/auth-source.el
index 1d039d8b0d1..946debca95e 100644
--- a/lisp/auth-source.el
+++ b/lisp/auth-source.el
@@ -708,7 +708,11 @@ must call it to obtain the actual value."
708 (condition-case nil 708 (condition-case nil
709 (unless (auth-source-search-collection 709 (unless (auth-source-search-collection
710 (plist-get spec key) 710 (plist-get spec key)
711 (slot-value backend key)) 711 (slot-value
712 backend
713 (if (keywordp key)
714 (intern-soft (substring (symbol-name key) 1))
715 key)))
712 (setq filtered-backends (delq backend filtered-backends)) 716 (setq filtered-backends (delq backend filtered-backends))
713 (cl-return)) 717 (cl-return))
714 (invalid-slot-name nil)))) 718 (invalid-slot-name nil))))