unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Po Lu <luangruo@yahoo.com>
To: Sungbin Jo <goranmoomin@daum.net>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: [PATCH] Handle sharing Cocoa xwidgets more gracefully
Date: Tue, 04 Oct 2022 16:34:18 +0800	[thread overview]
Message-ID: <878rlwyol1.fsf@yahoo.com> (raw)
In-Reply-To: <6185E1EB-BA35-4553-B97F-990EE3AB7CA9@daum.net> (Sungbin Jo's message of "Tue, 4 Oct 2022 16:48:42 +0900")

Sungbin Jo <goranmoomin@daum.net> writes:

> Ah, I’ve only now realized the existence of ‘kill-xwidget’, and can
> reproduce the mentioned problem. I’ll probably be able to work on a fix
> soon.
>
> I do find it awkward that (if my understanding is correct) xwidget views
> can only be created by displaying an xwidget, and can’t change the
> xwidget it is showing, but the xwidget views get left over when the
> xwidget is killed. Am I understanding this correctly, or is there a way
> to create an empty xwidget view that is not connected to an xwidget at
> all, and then connect the view to an xwidget separately (and possibly
> change the xwidget)?

I don't know how that part of the code works on Mac OS, but on X the
routines that access the widgets in the `model' field of the xwidget
view are conditioned behind the xwidget being live (!NILP (xw->buffer)).

> Ah, thanks for the confirmation. I still feel that pointers (if they
> exist) to information on how the end-users are expected to use the
> xwidget system will be immensely helpful, so that I can gain a better
> mental model and work on the implementation. (e.g., are xwidget views
> something that the user is expected to play around with? I’m assuming
> yes since they are exposed to elisp, but they don’t have any
> documentation on info.)
>
> I’m currently just gleaming on the individual function names and
> docstrings, guessing on how they should work. I couldn’t get xwidgets
> working properly on my Linux machine as well; as such I can’t
> experiment on the ‘canonical’ implementation either.

There is a significant amount of documentation on xwidgets in the Emacs
Lisp reference manual.  (But only if you look in the copy built in to
Emacs 29.)

Thanks for working on this feature.



      reply	other threads:[~2022-10-04  8:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-03 14:16 [PATCH] Handle sharing Cocoa xwidgets more gracefully 조성빈
2022-10-04  0:26 ` Po Lu
2022-10-04  2:03   ` Sungbin Jo
2022-10-04  2:41     ` Po Lu
2022-10-04  7:48       ` Sungbin Jo
2022-10-04  8:34         ` Po Lu [this message]

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=878rlwyol1.fsf@yahoo.com \
    --to=luangruo@yahoo.com \
    --cc=emacs-devel@gnu.org \
    --cc=goranmoomin@daum.net \
    /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).