From: Zaichuan Du <duzaichuan@hotmail.com>
To: "Sébastien Gendre" <seb@k-7.ch>
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>, emacs-erc@gnu.org
Subject: Re: ERC do not use my password from authinfo
Date: Mon, 27 May 2024 10:04:11 +0200 [thread overview]
Message-ID: <AM9P192MB1300093EE192B20DCD48A32CDDF02@AM9P192MB1300.EURP192.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <877cfg6j3s.fsf@k-7.ch> ("Sébastien Gendre"'s message of "Mon, 27 May 2024 05:15:19 +0200")
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
next prev parent reply other threads:[~2024-05-27 8:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-26 3:19 ERC do not use my password from authinfo Sébastien Gendre
2024-05-26 9:14 ` Zaichuan Du
2024-05-27 3:15 ` Sébastien Gendre
2024-05-27 8:04 ` Zaichuan Du [this message]
2024-05-26 20:17 ` J.P.
2024-05-27 3:21 ` Sébastien Gendre
2024-05-27 4:15 ` J.P.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AM9P192MB1300093EE192B20DCD48A32CDDF02@AM9P192MB1300.EURP192.PROD.OUTLOOK.COM \
--to=duzaichuan@hotmail.com \
--cc=emacs-erc@gnu.org \
--cc=help-gnu-emacs@gnu.org \
--cc=seb@k-7.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).