[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ERC do not use my password from authinfo
From: |
Zaichuan Du |
Subject: |
Re: ERC do not use my password from authinfo |
Date: |
Mon, 27 May 2024 10:04:11 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
My fault. I did not notice there is already an integration between ERC
and auth-source. The :password keyword is not a must. But I cannot
reproduce your issue either.
On 27 May 2024, Sébastien Gendre wrote:
> I tried to set the password, like you say, but the result is the same:
> Erc still logging without password.
>
> The message in the minibuffer even say: "Logging in without password".
>
>
> Zaichuan Du <duzaichuan@hotmail.com> writes:
>
>> On 26 May 2024, Sébastien Gendre wrote:
>>
>> Hi,
>>
>> You will have to retrieve password by setting the :password key, like this
>>
>> #+begin_src elisp
>> (erc-tls :server "irc.libera.chat"
>> :port 6697
>> :nick "mememememe"
>> :password (auth-source-pick-first-password :host "irc.libera.chat"))
>> #+end_src
>>
>>> 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 erc-mememememe@libera.chat ()
>>> "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 "erc-mememememe@libera.chat", 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 ?
>>>
>>>
>>>
>>> Best regards
>>>
>>> -------
>>> Gendre Sébastien
>>>
> <#secure method=pgpmime mode=sign>
>
>
--
Zaichuan