From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: open-{gnutls,network}-stream backwards compatibility Date: Wed, 02 Jan 2019 18:12:22 +0000 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: References: <831s5v3s9w.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1546452664 19437 195.159.176.226 (2 Jan 2019 18:11:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 2 Jan 2019 18:11:04 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 02 19:11:00 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gekyp-0004yD-UJ for ged-emacs-devel@m.gmane.org; Wed, 02 Jan 2019 19:11:00 +0100 Original-Received: from localhost ([127.0.0.1]:46627 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gel0w-00088K-S3 for ged-emacs-devel@m.gmane.org; Wed, 02 Jan 2019 13:13:10 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:34518) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gel0L-000882-LH for emacs-devel@gnu.org; Wed, 02 Jan 2019 13:12:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gel0I-0000Jy-IK for emacs-devel@gnu.org; Wed, 02 Jan 2019 13:12:33 -0500 Original-Received: from [195.159.176.226] (port=35596 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gel0I-0000II-AG for emacs-devel@gnu.org; Wed, 02 Jan 2019 13:12:30 -0500 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1geky9-0004DC-I1 for emacs-devel@gnu.org; Wed, 02 Jan 2019 19:10:17 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 15 Original-X-Complaints-To: usenet@blaine.gmane.org X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never Cancel-Lock: sha1:HCPgdxeQPLGVPnX1QYxAnXX/z5Y= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:232097 Archived-At: On Wed, 02 Jan 2019 18:47:55 +0100 Robert Pluim wrote: RP> So nil/t would mean :nowait nil/t, and anything else would be a RP> plist. Itʼs not perfect, but I guess backwards compatibility is RP> important. I like that approach as well, noting also that the `open-gnutls-stream' docs say This is a very simple wrapper around `gnutls-negotiate' which in turn takes a plist. So maybe the callers should just call `gnutls-negotiate', and `open-gnutls-stream' should be deprecated because it has failed to be a simple wrapper :) Ted