emacs-from-scratch
emacs-from-scratch copied to clipboard
the function ‘auth-source-search’ is not known to be defined.
Hi,
This is my first issue, so I hope I'm providing enough information. I am trying to follow the instructions on your (excellent) video on Emacs's auth-source
library, but I'm having trouble with auth-source-search
. When I try to evaluate (auth-source-search :host "smtp.gmail.com")
- which should return results, since my .authinfo.gpg
contains two entries with that hostname - I receive a nil return, and prior to evaluating I get the following message in my echo buffer:
the function ‘auth-source-search’ is not known to be defined.
This is strange to me, since I can call up documentation and navigate to its definition in auth-source.el
. Any ideas what's going on?
Emacs 27.1 on Linux 5.10.2-2-MANJARO
Hi @roberthowton! I apologize for the delay in responding to this. You might need to evaluate (require 'auth-source)
before trying the auth-source-search
function. Can you try that and let me know if it helps for you?
Thanks for your reply, @daviwil! If I run the auth-source-search
function after evaluating (require 'auth-source)
(which returns auth-source
) it returns nil
. The issue may be with my system, since I get the correct output using the same Emacs config on another system, which runs EXWM on GuixSD.