From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Aur=C3=A9lien_Aptel?= Newsgroups: gmane.emacs.devel Subject: Re: GNUS Kerberos support, native GSSAPI? Date: Fri, 10 Feb 2017 19:21:47 +0100 Message-ID: References: <87a89vmvd5.fsf@fastmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1486751425 23414 195.159.176.226 (10 Feb 2017 18:30:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 10 Feb 2017 18:30:25 +0000 (UTC) Cc: Joakim Jalap , emacs-devel To: =?UTF-8?Q?Elias_M=C3=A5rtenson?= , Philipp Stephani , Tom Tromey Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 10 19:30:21 2017 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 1ccFxb-0005j9-S9 for ged-emacs-devel@m.gmane.org; Fri, 10 Feb 2017 19:30:20 +0100 Original-Received: from localhost ([::1]:45441 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ccFxh-0004Ew-F1 for ged-emacs-devel@m.gmane.org; Fri, 10 Feb 2017 13:30:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53367) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ccFpP-00062Z-2Q for emacs-devel@gnu.org; Fri, 10 Feb 2017 13:21:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ccFpO-0001bI-4x for emacs-devel@gnu.org; Fri, 10 Feb 2017 13:21:51 -0500 Original-Received: from mail-vk0-x22b.google.com ([2607:f8b0:400c:c05::22b]:35698) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ccFpO-0001ZF-0o for emacs-devel@gnu.org; Fri, 10 Feb 2017 13:21:50 -0500 Original-Received: by mail-vk0-x22b.google.com with SMTP id x75so31310672vke.2 for ; Fri, 10 Feb 2017 10:21:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=XdP98+Ck+GKhtDHDKshbYhbKo0ucAnh71wCSfxXcmpY=; b=g+QqMpH9aP/NdaXaq8kHfSFMnhdfdyPfjcopFoNxCYgzRXjz1Y0bmKGCCecIs1Tpai v/P5qxKGr+cEojg/ILjRtfjnJo0nhSsvH9ErboKO0qVHgTRaJTASfMRcbdF1d7/eQzHw /7Qz59rmS2eBqwPJRbqp1FH13TixLILW3pRcAg2wUbHyOgQ8jUWuQg3pcJNi9TEfnIO7 Tt04lVDoADECmsQ4uuGv6S/ioqWRNwwRjI/05URhje4VYQy55dJRmQnoAldLIIVI/cqu PvZLf8XUkew4bSj7Y3ILuBbYbNYnutoJ6mSbHtKM+TNg9eGd4vm0ryBlYTppeDlYjy0B Nb1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=XdP98+Ck+GKhtDHDKshbYhbKo0ucAnh71wCSfxXcmpY=; b=juwZIzDpDSvdHV39dYK1b6gwU3Wx6Z/6z6fAxgoh7zUbT8HFJ7MFqcZhvBXHeFBO/i HPdlIpykgqFaDYmhjhgss61aHcpq4iMt1K6qqzKp0GnVBNxFcNDqSSUyO5hoLcu+WDNR oYLivYsy/cuYF/NFjxX3U+eoxERVmuPeAyL+Ji3tw3ZFkRFojwM57lSUQQ2TN7EfrHo+ rQDwQ5f/286TL6z33Pak2V4pu99VHQqT61oYbPmpn2fMCzTKwToQiEofic1paM3GYtvH eQTYJf2tqsjUWZ99Dzw8H7pnTy+TpoZMNTN4WCNMwwzwG0Q2S74vNbC44vy1D4zRuBHu p64w== X-Gm-Message-State: AMke39nNGnxrpzH8dDdKAmeiG/NzBH1b1Q0J/N35zIbbk95TgyJgahVtR05526F3elMcknU53AL3t4OMUuVDzQ== X-Received: by 10.31.217.7 with SMTP id q7mr4130987vkg.32.1486750907907; Fri, 10 Feb 2017 10:21:47 -0800 (PST) Original-Received: by 10.159.52.138 with HTTP; Fri, 10 Feb 2017 10:21:47 -0800 (PST) In-Reply-To: X-Google-Sender-Auth: FMqA8malcp0FrZVBgGmSJxusy2c X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400c:c05::22b 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:212213 Archived-At: On Thu, Feb 9, 2017 at 2:02 PM, Elias M=C3=A5rtenson wr= ote: > In fact, I'd go as far as suggesting that some of the boilerplate should = be > provided by emacs-module itself. In particular, having to do > env->intern(env, "nil") just to get a reference to nil is a bit crazy. The module API is kept simple on purpose. We don't won't to clutter the raw interface. I agree that the boiler-plate should be provided as lib that provides utils built on top of the API. > I tried putting all the interned symbols in a struct and passing specifyi= ng > it as a data pointer when constructing the functions. However, this did n= ot > work as the emacs_value objects does not seem to have a lifetime outside = of > the invocation of a native function. I haven't seen this documented > anywhere, so that was a bit surprising at first. The fact that this faile= d > is the reason you see all the calls to env->intern everywhere. This was not always the case: the behaviour was changed by Philipp at some point. We still have the make_global_ref and free_global_ref functions in the API, which serve no purpose as a result (correct me if I'm wrong).