aboutsummaryrefslogtreecommitdiffstats
path: root/README.xwidget
diff options
context:
space:
mode:
authorJoakim Verona2012-01-23 15:08:53 +0100
committerJoakim Verona2012-01-23 15:08:53 +0100
commitd5114bfea3ea4c37c57e2af0f3b095be9fcd8bac (patch)
treeb61140bc590538137eee8416bfe28852ecf606af /README.xwidget
parent698bd5eb8efd16be779b75934175c52d9150b5c9 (diff)
downloademacs-d5114bfea3ea4c37c57e2af0f3b095be9fcd8bac.tar.gz
emacs-d5114bfea3ea4c37c57e2af0f3b095be9fcd8bac.zip
added stuff for logging
Diffstat (limited to 'README.xwidget')
-rw-r--r--README.xwidget33
1 files changed, 32 insertions, 1 deletions
diff --git a/README.xwidget b/README.xwidget
index db38e4cbd68..9cd741661bc 100644
--- a/README.xwidget
+++ b/README.xwidget
@@ -776,7 +776,7 @@ buffer. how do we catch these errors?
776 thats not really an error either 776 thats not really an error either
777- xwidgets should now be proper lisp objects so you dont delete them 777- xwidgets should now be proper lisp objects so you dont delete them
778 you await their garbage collection. so therefore there can never be 778 you await their garbage collection. so therefore there can never be
779 invalid disploy specs 779 invalid display specs
780 780
781so turned out this got solved by using proper lisp objects for 781so turned out this got solved by using proper lisp objects for
782xwidgets. yay! 782xwidgets. yay!
@@ -1527,3 +1527,34 @@ a callback that sets the buffer name automatically
1527** TODO unique buffer names 1527** TODO unique buffer names
1528the webkit xwidgets renames the buffer after load but not uniquely so 1528the webkit xwidgets renames the buffer after load but not uniquely so
1529it sometimes fails. 1529it sometimes fails.
1530** TODO kill the offscreen webkit xwidgets when last view killed
1531The offscreen xwidgets is currently kept around even if the xwidgets
1532views are all gone. this is a general problem and it requires actions
1533on the behalf of the application to resolve.
1534
1535In the case of webkit it is currently possible to get errors like these:
1536
1537Debugger entered--Lisp error: (error "Selecting deleted buffer")
1538 xwidget-webkit-callback(60925380 navigation-policy-decision-requested)
1539 xwidget-event-handler()
1540 call-interactively(xwidget-event-handler nil nil)
1541
1542
1543because the last view is gone and the offscreen widgets is still
1544generating events.
1545
1546In the case of webkit it is okay to kill the offscreen widgets
1547completely when the user kills the last view window because it would
1548be unexpected by the user to see it pop up again. This is not true in
1549the general case.
1550
1551** DONE xwidgets debugging log
1552 CLOSED: [2012-01-23 Mon 14:32]
1553currently theres a lot of debugging traces using "message" which is
1554annoying. Instead put them in a separate trace buffer.
1555(see xwidget-log)
1556** TODO make garbage collect work for xwidgets
1557when an xwidget is removed from xwidget-alist, and there are no other
1558references(mostly views) the xwidget should be garbage collected.
1559
1560special finalization would go into gc_sweep()