From: "Aurélien Aptel" <aurelien.aptel+emacs@gmail.com>
To: "Elias Mårtenson" <lokedhs@gmail.com>,
"Philipp Stephani" <p.stephani2@gmail.com>,
"Tom Tromey" <tom@tromey.com>
Cc: Joakim Jalap <joakim.jalap@fastmail.com>,
emacs-devel <emacs-devel@gnu.org>
Subject: Re: GNUS Kerberos support, native GSSAPI?
Date: Fri, 10 Feb 2017 19:21:47 +0100 [thread overview]
Message-ID: <CA+5B0FOpvc9DogPRzw8kWHwwxV49or7DW3FbYPW2q5yE74+fsg@mail.gmail.com> (raw)
In-Reply-To: <CADtN0W+NMC_65Mw+UYZRW+Z=i9nHuZKTJ5wCGp8TSGig4MTH7Q@mail.gmail.com>
On Thu, Feb 9, 2017 at 2:02 PM, Elias Mårtenson <lokedhs@gmail.com> wrote:
> 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 specifying
> it as a data pointer when constructing the functions. However, this did not
> 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 failed
> 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).
next prev parent reply other threads:[~2017-02-10 18:21 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-06 10:03 GNUS Kerberos support, native GSSAPI? Elias Mårtenson
2017-02-06 14:22 ` Stefan Monnier
2017-02-07 3:14 ` Elias Mårtenson
2017-02-07 14:16 ` Stefan Monnier
2017-02-09 4:45 ` Elias Mårtenson
2017-02-09 11:55 ` Joakim Jalap
2017-02-09 13:02 ` Elias Mårtenson
2017-02-10 18:21 ` Aurélien Aptel [this message]
2017-04-23 17:31 ` Philipp Stephani
2017-04-24 10:53 ` Elias Mårtenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CA+5B0FOpvc9DogPRzw8kWHwwxV49or7DW3FbYPW2q5yE74+fsg@mail.gmail.com \
--to=aurelien.aptel+emacs@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=joakim.jalap@fastmail.com \
--cc=lokedhs@gmail.com \
--cc=p.stephani2@gmail.com \
--cc=tom@tromey.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).