From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?S=C3=A9bastien_Gendre?= Newsgroups: gmane.emacs.help Subject: Re: ERC do not use my password from authinfo Date: Mon, 27 May 2024 05:15:19 +0200 Message-ID: <877cfg6j3s.fsf@k-7.ch> References: <87a5kdfefa.fsf@k-7.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31031"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.12.1; emacs 29.3 Cc: "help-gnu-emacs@gnu.org" To: Zaichuan Du Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon May 27 05:16:04 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sBQqC-0007u7-JL for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 27 May 2024 05:16:04 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sBQpd-0006VT-NQ; Sun, 26 May 2024 23:15:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sBQpc-0006Rf-3X for help-gnu-emacs@gnu.org; Sun, 26 May 2024 23:15:28 -0400 Original-Received: from k-7.ch ([185.31.100.96]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sBQpa-0004Ue-9h for help-gnu-emacs@gnu.org; Sun, 26 May 2024 23:15:27 -0400 Original-Received: from van (_gateway [192.168.1.1]) (Authenticated sender: seb) by k-7.ch (Postfix) with ESMTPSA id 7D7BDE810E; Mon, 27 May 2024 05:15:20 +0200 (CEST) In-Reply-To: (Zaichuan Du's message of "Sun, 26 May 2024 11:14:17 +0200") Received-SPF: pass client-ip=185.31.100.96; envelope-from=seb@k-7.ch; helo=k-7.ch X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_SBL_A=0.1 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:146834 Archived-At: 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 writes: > On 26 May 2024, S=C3=A9bastien 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=E2=80=A6 >> >> >> 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=C2=A0? >> >> >> >> Best regards >> >> ------- >> Gendre S=C3=A9bastien >> <#secure method=3Dpgpmime mode=3Dsign>