]> git.eshelyaron.com Git - emacs.git/commit
Make "open in new window" from an xwidget's context menu work
authorPo Lu <luangruo@yahoo.com>
Sat, 6 Nov 2021 12:59:08 +0000 (20:59 +0800)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 7 Nov 2021 01:59:42 +0000 (02:59 +0100)
commit0be966f97e3bda057318d971d022515cfa6eb37b
tree177c0b407ac568bd9e62536207fa75be8457c5d7
parent1a84537f7938afcd155ee5e9efc104fc8f027e0f
Make "open in new window" from an xwidget's context menu work

* doc/lispref/commands.texi (Xwidget Events): Document new event type.
* doc/lisprefdisplay.texi (Xwidgets): Document new argument to
make-xwidget, and new function.
* etc/NEWS: Document changes.
* lisp/xwidget.el: Bind xwidget-display-event to
xwidget-webkit-display-event.

(xwidget-webkit-import-widget): New function.
(xwidget-webkit-display-event): New command.
* src/keyboard.c (kbd_buffer_get_event): New event type.
(make_lispy_event): Handle XWIDGET_DISPLAY_EVENTs.
(syms_f_keyboard): Define new symbol.
* src/termhooks.h (enum event_kind): New enum XWIDGET_DISPLAY_EVENT.

* src/xwidget.c (webkit_create_cb)
(store_xwidget_display_event)
(webkit_ready_to_show)
(webkit_create_cb_1, webkit_create_cb)
(Fset_xwidget_buffer): New functions.

(Fmake_xwidget): Add internal argument RELATED and connect create
signal.
(syms_of_xwidget): Define now subrs.
doc/lispref/commands.texi
doc/lispref/display.texi
etc/NEWS
lisp/xwidget.el
src/keyboard.c
src/termhooks.h
src/xwidget.c