Hi! I tried this:
```
(setq auth-sources '("secrets:Login"))
("secrets:Login")
(setq auth-source-debug t
auth-source-save-behavior 'ask
secrets-debug t)
t
(defun auth-info-password (auth-info)
"Return the :secret password from the AUTH-INFO."
(let ((secret (plist-get auth-info :secret)))
(while (functionp secret)
(setq secret (funcall secret)))
secret))
auth-info-password
```
Then tried C-x C-f /sudo:: RET and got the previous error (with my actual password in it). I assumed this was because `auth-info-password` had then been loaded from source. I reloaded `auth-info-password` in the `*scratch*` buffer, did M-x auth-source-forget-all-cached, then C-x C-f /sudo:: RET. I was asked again for a label but not a password, as before.
In `*Messages*` I saw:
```
Tramp: Opening connection nil for root@black-diamond using sudo...
auth-source-search: found 0 results (max 1) matching (:max 1 :user "ethan" :host "black-diamond" :port "sudo" :require (:secret :user) :create t)
auth-source-search: found 1 results (max 1) matching (:max 1 :host "black-diamond" :port "sudo")
auth-source-search: CREATED 1 results (max 1) matching (:max 1 :user "ethan" :host "black-diamond" :port "sudo" :require (:secret :user) :create t)
Tramp: Opening connection nil for root@black-diamond using sudo...done
```
As before, I didn't see any new entries in my Login keyring.
I thought it might be worth it to try to remove autoloading as a possible cause, so I restarted emacs and did this:
```
(require 'auth-source)
auth-source
(setq auth-sources '("secrets:Login"))
("secrets:Login")
(setq auth-source-debug t
auth-source-save-behavior 'ask
secrets-debug t)
t
(defun auth-info-password (auth-info)
"Return the :secret password from the AUTH-INFO."
(let ((secret (plist-get auth-info :secret)))
(while (functionp secret)
(setq secret (funcall secret)))
secret))
auth-info-password
(auth-source-forget-all-cached)
nil
```
Then did C-x C-f /sudo:: RET. Again, I was asked for a label but not a password, and no `ethan@black-diamond` entry was created in my Login keyring. The contents of the `*Messages*` buffer were the same as before.
Ethan