emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] GnuTLS support on Woe32


From: Chong Yidong
Subject: Re: [PATCH] GnuTLS support on Woe32
Date: Mon, 02 May 2011 17:16:04 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Juanma Barranquero <address@hidden> writes:

> To be useful, gnutls-available-p should be used always. It's cleaner than
>
>   (if (and (eq system-type 'w32) (gnutls-available-p)) ...)
>
> It's the same with the image libraries. Correct image code from elisp
> should always do
>
>   (if (image-type-available-p 'png)

In the case of open-network-stream, why do you need to use
gnutls-available-p?  Why not either use `starttls', or do `tls' and then
`network' if that fails?  After all, gnutls not being available is only
one of many possible failure modes, so it's better to just let
open-network-stream handle them.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]