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: Juanma Barranquero
Subject: Re: [PATCH] GnuTLS support on Woe32
Date: Mon, 2 May 2011 21:53:57 +0200

2011/5/2 Ted Zlatanov <address@hidden>:

> I think that would return Qnil for non-WINDOWSNT cases?

No. GnuTLS is available_
  - for w32, when the DLLs is loaded, and
  - for non-w32, whenever the GnuTLS support is compiled in.

> And maybe it
> should be called gnutls-dll-available-p, so then we can say
>
> (defun gnutls-available-p ()

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)
     ...
    )

regardless of the OS Emacs is running on.

    Juanma



reply via email to

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