Re: ERC do not use my password from authinfo

Sébastien Gendre <[email protected]> Mon, 27 May 2024 05:21:15 +0200
Newsgroups gmane.emacs.help,gmane.emacs.erc.general
Message-ID <[email protected]>
Hi,

I modified my ~/.authconfig.gpg file to add the IRC server port in the
entry for my password and then restart Emacs. Since this, it work.

So, for a reason I ignore, Emacs was not reading ~/authinfo.gpg and
I cannot reproduce it.


"J.P." <[email protected]> writes:

> Hi Sébastien,
>
> Sébastien Gendre <[email protected]> writes:
>
>> Hello,
>>
>> I try to connect to an IRC server, with ERC, but I have a problem to make
>> it use my password saved in ~/.authinfo.
>>
>> In my .emacs/init.el, I have defined this interactive function to
>> connect to Libera.chat with ERC:
>>
>> (defun [email protected] ()
>>   "Log on freenode with mememememe user"
>>   (interactive)
>>   (erc-tls :server "irc.libera.chat"
>>            :port 6697
>>            :nick "mememememe")
>>   )
>>
>> On my ~/.authinfo.gpg file, I have an entry for Libera.ch server, with
>> my nickname:
>>
>> machine irc.libera.chat login mememememe password…
>>
>> But when I run the function "[email protected]", ERC connect
>> without my password.
>>
>> I didn't found any specific information on the manual about why. My
>> Emacs version is 29.3.
>>
>> Someone have an idea?
>
> I tried a similar setup with Emacs 29 (21b2954c) and cannot reproduce
> your issue.
>
> Contents of ~/.authinfo:
>
>   machine irc.libera.chat user mynick password mypass
>
>>From emacs -Q:
>
>   M-: (erc-tls :server "irc.libera.chat" :port 6697 :nick "mynick") RET
>
> Please try again from emacs -Q, maybe with a temporary ~/.authsource
> (with and without the .gpg). And when reporting back, please mention the
> contents of the relevant buffers, if any. And maybe also eval
>
>   (require 'erc)
>   (erc-toggle-debug-irc-protocol)
>
> prior to connecting, and then check the *erc-protocol* buffer for clues
> afterwards. Be sure to restart Emacs whenever you tweak ~/.authsource to
> ensure you're not hitting the cache. And if you haven't already, see the
> suggestions in the troubleshooting portion of the manual [1].
>
> Thanks,
> J.P.
>
> P.S. In an effort to spare the good people of this list from excessive
> ERC chatter, perhaps consider replacing the [email protected] with
> [email protected] in the Cc of any further related correspondences.
>
> [1] https://elpa.gnu.org/devel/doc/erc.html#Troubleshooting-1
<#secure method=pgpmime mode=sign>