Re: Commit in Emacs trunk breaks Wanderlust

"Herbert J. Skuhra" <[email protected]> Sun, 3 Feb 2019 04:02:19 +0100
Newsgroups gmane.mail.wanderlust.general
Message-ID <20190203030219.43gdkqgw6mkd324o__15986.0783534654$1549163025$gmane$org@mail.bsd4all.net>
On Sun, Feb 03, 2019 at 11:00:41AM +0900, Kazuhiro Ito wrote:
> > > > the following commit in Emacs trunk breaks Wanderlust:
> > > > 
> > > > commit f3f9a3582ef2081e96d12fb92ac190ffe9c1c431
> > > > Author: Robert Pluim
> > > > Date:   Thu Jan 24 11:34:34 2019 +0100
> > > > 
> > > >     Check for client certificates when using GnuTLS
> > > >     
> > > > I can no longer connect to IMAP4 servers:
> > > > 
> > > > Debugger entered--Lisp error: (void-function network-stream-certificate)
> > > >   signal(void-function (network-stream-certificate))
> > > 
> > > Not reproducible for me.  network-stream-certificate is actually
> > > defined in network-stream.el.  Please check your build and
> > > installation.
> > 
> > Yes, but network-stream.el is part of Emacs. Gnus and eww still works
> > for encrypted connections (imaps, nntps, https). 
> 
> It is Emacs's bug.  Start emacs with -Q and try below code.
>
> (progn
>   (require 'gnutls)
>   (open-gnutls-stream "test" "test" "imap.gmail.com" 993))

You are right. It fails with the same error!

> I think gnutls.el needs autoload definition for
> network-stream-certificate function.

Adding either (require 'network-stream) or
(autoload 'network-stream-certificate "network-stream") to
lisp/net/gnutls.el resolves the issue.

Thanks.

-- 
Herbert