[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] xwidget 9fe732a 2/2: Better changelog for xwidgets
From: |
joakim |
Subject: |
Re: [Emacs-diffs] xwidget 9fe732a 2/2: Better changelog for xwidgets |
Date: |
Mon, 09 Feb 2015 12:50:42 +0100 |
User-agent: |
Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) |
Paul Eggert <address@hidden> writes:
> On 02/05/2015 07:54 AM, address@hidden wrote:
>> Is it possible to somehow regenerate your patch against whats in the
>> xwidget branch now?
>
> Sorry, my patch was all done by hand.
>
>> Some questions on the patch though:
>>
>> - Are you supposed to have a space after # on ifdefed macros?
>
> Nowadays it's considered nicer to indent there, e.g., see "#ifdef
> MAIN_PROGRAM" in lisp.h. Previously we didn't bother and a lot of the
> old code is still around, but we're talking new code here....
>
>> - you mentioned some names are long, I suppose like
>> webkit_osr_mime_type_policy_typedecision_requested_callback
>>
>> These are generated algorithmically from signal names. Do you have an
>> idea for another algorithm?
>>
>
> The names should be static, so there's no need to worry about keeping
> them globally unique in the Emacs source code; they need to be unique
> only in xwidgets.c. For too-long names like that, how about using the
> same name as the g_signal_comment string, replacing "-" with "_"?
> E.g., mime_type_policy_decision_requested.
>
I did this in the xwidget_mvp branch, except I prefixed and postfixed
with webkit_*_cb. So I can shorten them a bit further if really needed.
--
Joakim Verona
- Re: [Emacs-diffs] xwidget 9fe732a 2/2: Better changelog for xwidgets, (continued)
- Re: [Emacs-diffs] xwidget 9fe732a 2/2: Better changelog for xwidgets, David Engster, 2015/02/01
- Re: [Emacs-diffs] xwidget 9fe732a 2/2: Better changelog for xwidgets, Dmitry Gutov, 2015/02/01
- Re: [Emacs-diffs] xwidget 9fe732a 2/2: Better changelog for xwidgets, David Engster, 2015/02/01
- Re: [Emacs-diffs] xwidget 9fe732a 2/2: Better changelog for xwidgets, joakim, 2015/02/03
- Re: [Emacs-diffs] xwidget 9fe732a 2/2: Better changelog for xwidgets, Paul Eggert, 2015/02/03
- Re: [Emacs-diffs] xwidget 9fe732a 2/2: Better changelog for xwidgets, joakim, 2015/02/04
- Re: [Emacs-diffs] xwidget 9fe732a 2/2: Better changelog for xwidgets, joakim, 2015/02/04
- Re: [Emacs-diffs] xwidget 9fe732a 2/2: Better changelog for xwidgets, Paul Eggert, 2015/02/04
- Re: [Emacs-diffs] xwidget 9fe732a 2/2: Better changelog for xwidgets, joakim, 2015/02/05
- Re: [Emacs-diffs] xwidget 9fe732a 2/2: Better changelog for xwidgets, Paul Eggert, 2015/02/05
- Re: [Emacs-diffs] xwidget 9fe732a 2/2: Better changelog for xwidgets,
joakim <=
- Re: [Emacs-diffs] xwidget 9fe732a 2/2: Better changelog for xwidgets, joakim, 2015/02/09
- Re: [Emacs-diffs] xwidget 9fe732a 2/2: Better changelog for xwidgets, Paul Eggert, 2015/02/09
- Re: [Emacs-diffs] xwidget 9fe732a 2/2: Better changelog for xwidgets, joakim, 2015/02/09
- Re: [Emacs-diffs] xwidget 9fe732a 2/2: Better changelog for xwidgets, Paul Eggert, 2015/02/09
- Re: [Emacs-diffs] xwidget 9fe732a 2/2: Better changelog for xwidgets, joakim, 2015/02/10
- Re: [Emacs-diffs] xwidget 9fe732a 2/2: Better changelog for xwidgets, Eli Zaretskii, 2015/02/01