[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug#40248: 27.0.90; Failure open .authinfo.gpg from Gnus
From: |
Andreas Schwab |
Subject: |
Re: bug#40248: 27.0.90; Failure open .authinfo.gpg from Gnus |
Date: |
Tue, 31 Mar 2020 11:53:36 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.90 (gnu/linux) |
On Mär 31 2020, Robert Pluim wrote:
> @@ -245,11 +252,15 @@ 'open-protocol-stream
> "26.1")
>
> (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.
--
Andreas Schwab, address@hidden
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
- Re: bug#40248: 27.0.90; Failure open .authinfo.gpg from Gnus, Robert Pluim, 2020/03/31
- Re: bug#40248: 27.0.90; Failure open .authinfo.gpg from Gnus,
Andreas Schwab <=
- Re: bug#40248: 27.0.90; Failure open .authinfo.gpg from Gnus, Robert Pluim, 2020/03/31
- Re: bug#40248: 27.0.90; Failure open .authinfo.gpg from Gnus, Andreas Schwab, 2020/03/31
- Re: bug#40248: 27.0.90; Failure open .authinfo.gpg from Gnus, Robert Pluim, 2020/03/31
- Re: bug#40248: 27.0.90; Failure open .authinfo.gpg from Gnus, Robert Pluim, 2020/03/31
- Re: bug#40248: 27.0.90; Failure open .authinfo.gpg from Gnus, Eli Zaretskii, 2020/03/31
- Re: bug#40248: 27.0.90; Failure open .authinfo.gpg from Gnus, Robert Pluim, 2020/03/31