From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: bug#40248: 27.0.90; Failure open .authinfo.gpg from Gnus Date: Tue, 31 Mar 2020 11:53:36 +0200 Message-ID: <87blocrgtb.fsf@igel.home> References: <86bloi1zrj.fsf@csic.es> <83lfnm8b30.fsf@gnu.org> <83ftdt9b1d.fsf@gnu.org> <86sght3h1s.fsf@csic.es> <834ku89anf.fsf@gnu.org> <87a740ub2r.fsf@gnus.org> <83tv287s9j.fsf@gnu.org> <874ku7txho.fsf@gnus.org> <83imin5l0w.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="113796"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.90 (gnu/linux) Cc: Eli Zaretskii , Lars Ingebrigtsen , emacs-devel@gnu.org To: Robert Pluim Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Mar 31 11:57:28 2020 Return-path: Envelope-to: ged-emacs-devel@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 1jJDeC-000TVW-2R for ged-emacs-devel@m.gmane-mx.org; Tue, 31 Mar 2020 11:57:28 +0200 Original-Received: from localhost ([::1]:34956 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJDeB-0002x6-4Y for ged-emacs-devel@m.gmane-mx.org; Tue, 31 Mar 2020 05:57:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40315) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJDaZ-0000Y6-OP for emacs-devel@gnu.org; Tue, 31 Mar 2020 05:53:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jJDaY-0001uN-9n for emacs-devel@gnu.org; Tue, 31 Mar 2020 05:53:43 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.10]:58973) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jJDaW-0001t1-LF; Tue, 31 Mar 2020 05:53:40 -0400 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 48s4Qn4fzVz1rqS5; Tue, 31 Mar 2020 11:53:37 +0200 (CEST) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 48s4Qn43C5z1r0cN; Tue, 31 Mar 2020 11:53:37 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id QRjxfu6KZudp; Tue, 31 Mar 2020 11:53:36 +0200 (CEST) X-Auth-Info: hyHdvdT0I0Hs4ySFjbpSSBhfTBa1WKWsvUc66O5e+YmwjFq9T37E9QYEN1NeLtIG Original-Received: from igel.home (ppp-46-244-170-213.dynamic.mnet-online.de [46.244.170.213]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 31 Mar 2020 11:53:36 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 1000) id 270A12C0AF9; Tue, 31 Mar 2020 11:53:36 +0200 (CEST) X-Yow: I was making donuts and now I'm on a bus! In-Reply-To: (Robert Pluim's message of "Tue, 31 Mar 2020 11:20:17 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.18.0.10 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:246081 Archived-At: On M=C3=A4r 31 2020, Robert Pluim wrote: > @@ -245,11 +252,15 @@ 'open-protocol-stream > "26.1") > =20 > (defun network-stream-open-plain (name buffer host service parameters) > - (let ((start (with-current-buffer buffer (point))) > - (stream (make-network-process :name name :buffer buffer > - :host (puny-encode-domain host) > - :service service > - :nowait (plist-get parameters :nowait)))) > + (let* ((start (with-current-buffer buffer (point))) > + (coding-p (plist-member parameters :coding)) > + (coding-val (plist-get parameters :coding)) > + (args (append (list :name name :buffer buffer > + :host (puny-encode-domain host) > + :service service > + :nowait (plist-get parameters :nowait)) > + (when coding-p (list :coding coding-val)))) > + (stream (apply #'make-network-process args))) You don't need to use apply. Since :coding nil is the same as the default, you can just pass `:coding (plist-get parameters :coding)' unconditionally. Andreas. --=20 Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint =3D 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC= 1 "And now for something completely different."