unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Initial documentation for xwidgets
@ 2016-01-30  8:13 Eli Zaretskii
  2016-02-12 21:08 ` joakim
  0 siblings, 1 reply; 9+ messages in thread
From: Eli Zaretskii @ 2016-01-30  8:13 UTC (permalink / raw)
  To: joakim; +Cc: emacs-devel

I've pushed commit ef760b8, which is the initial attempt to document
the xwidget features.  The user manual mentions a single command and
the mode it enters.  The section in the ELisp manual mentions some of
the primitives I thought were important to document.  The particular
selection I decided to document, and the ones I decided to omit might
not make sense, which is OK -- the whole issue makes very little sense
to me for now, and the (abysmally inadequate, IMO) GTK documentation
of the APIs used by xwidget.c doesn't help at all.  The result cannot
be good enough by any measure.  Still, IMO it's better than no
documentation at all, and at least a seasonal WebKit programmer should
be able to figure the stuff out.

Please review and comment on functions/commands that should be added
to the documentation, and also on the correctness of the text.

Thanks.



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Initial documentation for xwidgets
  2016-01-30  8:13 Initial documentation for xwidgets Eli Zaretskii
@ 2016-02-12 21:08 ` joakim
  2016-02-12 21:20   ` Paul Eggert
  2016-02-12 21:25   ` Eli Zaretskii
  0 siblings, 2 replies; 9+ messages in thread
From: joakim @ 2016-02-12 21:08 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

> I've pushed commit ef760b8, which is the initial attempt to document
> the xwidget features.  The user manual mentions a single command and
> the mode it enters.  The section in the ELisp manual mentions some of
> the primitives I thought were important to document.  The particular
> selection I decided to document, and the ones I decided to omit might
> not make sense, which is OK -- the whole issue makes very little sense
> to me for now, and the (abysmally inadequate, IMO) GTK documentation
> of the APIs used by xwidget.c doesn't help at all.  The result cannot
> be good enough by any measure.  Still, IMO it's better than no
> documentation at all, and at least a seasonal WebKit programmer should
> be able to figure the stuff out.
>
> Please review and comment on functions/commands that should be added
> to the documentation, and also on the correctness of the text.
>
> Thanks.

I finally read the documentation you wrote for xwidgets, and it was really good thanks!

I have just two things.

- This fixme, I dont really have a good answer.
  @c FIXME: What else can a URI specify in this context?
The uri is just any ury webkit accepts, which isnt a very helpful
  explanation of course.

- When I read the documentation I noticed the term 'webkit-osr'. -osr
  stands for 'off screen rendering'.

There used to be different types of widgets, that weren't rendered
off-screen. I don't think I will re-introduce those widgets because they
were unreliable.

So, there will likely only ever be osr widgets, which makes the osr suffix
redundant.

I guess people might have started tinkering with xwidget-osr.

What do you think, should I change this, or does it not matter?


-- 
Joakim Verona



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Initial documentation for xwidgets
  2016-02-12 21:08 ` joakim
@ 2016-02-12 21:20   ` Paul Eggert
  2016-02-12 21:25   ` Eli Zaretskii
  1 sibling, 0 replies; 9+ messages in thread
From: Paul Eggert @ 2016-02-12 21:20 UTC (permalink / raw)
  To: joakim, Eli Zaretskii; +Cc: emacs-devel

On 02/12/2016 01:08 PM, joakim@verona.se wrote:
> I guess people might have started tinkering with xwidget-osr.
>
> What do you think, should I change this, or does it not matter?

I'd change it. Anybody who's using this very-recently-introduced code 
can surely cope.



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Initial documentation for xwidgets
  2016-02-12 21:08 ` joakim
  2016-02-12 21:20   ` Paul Eggert
@ 2016-02-12 21:25   ` Eli Zaretskii
  2016-02-12 21:35     ` joakim
  1 sibling, 1 reply; 9+ messages in thread
From: Eli Zaretskii @ 2016-02-12 21:25 UTC (permalink / raw)
  To: joakim; +Cc: emacs-devel

> From: joakim@verona.se
> Cc: emacs-devel@gnu.org
> Date: Fri, 12 Feb 2016 22:08:03 +0100
> 
> I finally read the documentation you wrote for xwidgets, and it was really good thanks!

Are you sure?  I cannot imagine I was that lucky.  There are some
functions I didn't document, some of them in xwidget.c, others in
xwidget.el -- did I decide correctly which ones should be documented
and which shouldn't?

> I have just two things.
> 
> - This fixme, I dont really have a good answer.
>   @c FIXME: What else can a URI specify in this context?
> The uri is just any ury webkit accepts, which isnt a very helpful
>   explanation of course.

Examples could help.  Can you provide examples of URIs that are
neither URLs nor file names?

> - When I read the documentation I noticed the term 'webkit-osr'. -osr
>   stands for 'off screen rendering'.
> 
> There used to be different types of widgets, that weren't rendered
> off-screen. I don't think I will re-introduce those widgets because they
> were unreliable.
> 
> So, there will likely only ever be osr widgets, which makes the osr suffix
> redundant.
> 
> I guess people might have started tinkering with xwidget-osr.
> 
> What do you think, should I change this, or does it not matter?

We can still change it, it's not too late.

Thanks.



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Initial documentation for xwidgets
  2016-02-12 21:25   ` Eli Zaretskii
@ 2016-02-12 21:35     ` joakim
  2016-02-12 21:40       ` joakim
  2016-02-13  9:09       ` Eli Zaretskii
  0 siblings, 2 replies; 9+ messages in thread
From: joakim @ 2016-02-12 21:35 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

>> From: joakim@verona.se
>> Cc: emacs-devel@gnu.org
>> Date: Fri, 12 Feb 2016 22:08:03 +0100
>> 
>> I finally read the documentation you wrote for xwidgets, and it was really good thanks!
>
> Are you sure?  I cannot imagine I was that lucky.  There are some
> functions I didn't document, some of them in xwidget.c, others in
> xwidget.el -- did I decide correctly which ones should be documented
> and which shouldn't?

I think you did a better job than I would have done. But let me have an
extra look.

>
>> I have just two things.
>> 
>> - This fixme, I dont really have a good answer.
>>   @c FIXME: What else can a URI specify in this context?
>> The uri is just any ury webkit accepts, which isnt a very helpful
>>   explanation of course.
>
> Examples could help.  Can you provide examples of URIs that are
> neither URLs nor file names?
>
>> - When I read the documentation I noticed the term 'webkit-osr'. -osr
>>   stands for 'off screen rendering'.
>> 
>> There used to be different types of widgets, that weren't rendered
>> off-screen. I don't think I will re-introduce those widgets because they
>> were unreliable.
>> 
>> So, there will likely only ever be osr widgets, which makes the osr suffix
>> redundant.
>> 
>> I guess people might have started tinkering with xwidget-osr.
>> 
>> What do you think, should I change this, or does it not matter?
>
> We can still change it, it's not too late.

Ok, I will change it then.

BTW, when will it be too late to make these kind of changes? I think
this is the only api change, the other requested changes were more of
the bugfix kind. 

(let's assume I'm stuck in a time warp bubble where time moves quite
slowly as compared to the outside)

> Thanks.

-- 
Joakim Verona



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Initial documentation for xwidgets
  2016-02-12 21:35     ` joakim
@ 2016-02-12 21:40       ` joakim
  2016-02-12 21:55         ` Paul Eggert
  2016-02-13  9:09       ` Eli Zaretskii
  1 sibling, 1 reply; 9+ messages in thread
From: joakim @ 2016-02-12 21:40 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

joakim@verona.se writes:

> Eli Zaretskii <eliz@gnu.org> writes:
>
>>> From: joakim@verona.se
>>> Cc: emacs-devel@gnu.org
>>> Date: Fri, 12 Feb 2016 22:08:03 +0100
>>> 
>>> I finally read the documentation you wrote for xwidgets, and it was really good thanks!
>>
>> Are you sure?  I cannot imagine I was that lucky.  There are some
>> functions I didn't document, some of them in xwidget.c, others in
>> xwidget.el -- did I decide correctly which ones should be documented
>> and which shouldn't?
>
> I think you did a better job than I would have done. But let me have an
> extra look.
>
>>
>>> I have just two things.
>>> 
>>> - This fixme, I dont really have a good answer.
>>>   @c FIXME: What else can a URI specify in this context?
>>> The uri is just any ury webkit accepts, which isnt a very helpful
>>>   explanation of course.
>>
>> Examples could help.  Can you provide examples of URIs that are
>> neither URLs nor file names?
>>
>>> - When I read the documentation I noticed the term 'webkit-osr'. -osr
>>>   stands for 'off screen rendering'.
>>> 
>>> There used to be different types of widgets, that weren't rendered
>>> off-screen. I don't think I will re-introduce those widgets because they
>>> were unreliable.
>>> 
>>> So, there will likely only ever be osr widgets, which makes the osr suffix
>>> redundant.
>>> 
>>> I guess people might have started tinkering with xwidget-osr.
>>> 
>>> What do you think, should I change this, or does it not matter?
>>
>> We can still change it, it's not too late.
>
> Ok, I will change it then.
>
> BTW, when will it be too late to make these kind of changes? I think
> this is the only api change, the other requested changes were more of
> the bugfix kind. 

Sorry, there was the proposed change to remove unused arguments from
make-xwidget as well. So two api changes.

>
> (let's assume I'm stuck in a time warp bubble where time moves quite
> slowly as compared to the outside)
>
>> Thanks.

-- 
Joakim Verona



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Initial documentation for xwidgets
  2016-02-12 21:40       ` joakim
@ 2016-02-12 21:55         ` Paul Eggert
  2016-02-13  9:09           ` Eli Zaretskii
  0 siblings, 1 reply; 9+ messages in thread
From: Paul Eggert @ 2016-02-12 21:55 UTC (permalink / raw)
  To: joakim, Eli Zaretskii; +Cc: emacs-devel

On 02/12/2016 01:40 PM, joakim@verona.se wrote:
> Sorry, there was the proposed change to remove unused arguments from
> make-xwidget as well. So two api changes.
I'd say go for it. This API is not part of any Emacs release yet.



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Initial documentation for xwidgets
  2016-02-12 21:35     ` joakim
  2016-02-12 21:40       ` joakim
@ 2016-02-13  9:09       ` Eli Zaretskii
  1 sibling, 0 replies; 9+ messages in thread
From: Eli Zaretskii @ 2016-02-13  9:09 UTC (permalink / raw)
  To: joakim; +Cc: emacs-devel

> From: joakim@verona.se
> Cc: emacs-devel@gnu.org
> Date: Fri, 12 Feb 2016 22:35:19 +0100
> 
> > Are you sure?  I cannot imagine I was that lucky.  There are some
> > functions I didn't document, some of them in xwidget.c, others in
> > xwidget.el -- did I decide correctly which ones should be documented
> > and which shouldn't?
> 
> I think you did a better job than I would have done. But let me have an
> extra look.

Thanks.

> >> - This fixme, I dont really have a good answer.
> >>   @c FIXME: What else can a URI specify in this context?
> >> The uri is just any ury webkit accepts, which isnt a very helpful
> >>   explanation of course.
> >
> > Examples could help.  Can you provide examples of URIs that are
> > neither URLs nor file names?

Please also try to give a few examples, I have a bad feeling about
what I wrote in that part.

> >> I guess people might have started tinkering with xwidget-osr.
> >> 
> >> What do you think, should I change this, or does it not matter?
> >
> > We can still change it, it's not too late.
> 
> Ok, I will change it then.
> 
> BTW, when will it be too late to make these kind of changes?

I don't know, it depends on the changes.



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Initial documentation for xwidgets
  2016-02-12 21:55         ` Paul Eggert
@ 2016-02-13  9:09           ` Eli Zaretskii
  0 siblings, 0 replies; 9+ messages in thread
From: Eli Zaretskii @ 2016-02-13  9:09 UTC (permalink / raw)
  To: Paul Eggert; +Cc: joakim, emacs-devel

> Cc: emacs-devel@gnu.org
> From: Paul Eggert <eggert@cs.ucla.edu>
> Date: Fri, 12 Feb 2016 13:55:34 -0800
> 
> On 02/12/2016 01:40 PM, joakim@verona.se wrote:
> > Sorry, there was the proposed change to remove unused arguments from
> > make-xwidget as well. So two api changes.
> I'd say go for it. This API is not part of any Emacs release yet.

Yes, I agree.

Thanks.



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-02-13  9:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-30  8:13 Initial documentation for xwidgets Eli Zaretskii
2016-02-12 21:08 ` joakim
2016-02-12 21:20   ` Paul Eggert
2016-02-12 21:25   ` Eli Zaretskii
2016-02-12 21:35     ` joakim
2016-02-12 21:40       ` joakim
2016-02-12 21:55         ` Paul Eggert
2016-02-13  9:09           ` Eli Zaretskii
2016-02-13  9:09       ` Eli Zaretskii

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).