aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/xwidget-screencast.el32
1 files changed, 32 insertions, 0 deletions
diff --git a/lisp/xwidget-screencast.el b/lisp/xwidget-screencast.el
new file mode 100644
index 00000000000..f85dbe8f247
--- /dev/null
+++ b/lisp/xwidget-screencast.el
@@ -0,0 +1,32 @@
1;;(require 'screencast)
2(require 'xwidget)
3(defconst xwidget-screencast-webkit '("Hello, and welcome to a
4 short demo of the Emacs xwidget branch, and the Webkit
5 integration it provides." n
6 "Xwidgets are toolkit widgets that behave like images in an
7 Emacs buffer. Except they are actual widgets, so you can
8 interact with them." n
9 "There are several, but people seem to fancy the webkit the most so lets have a look!"
10 (insert "some text")
11 (xwidget-insert (point-min) 'webkit-osr "webkit-osr" 500 1000 5)
12 n
13 "Okay so thats an actual webkit instance in an Emacs buffer! " n
14 "Mouse-overs work" n
15 "Mouse-clicks work" n
16 (split-window-vertically)
17 "You can split the buffer and scroll the windows separately, as
18 usual in Emacs. This is however not so usual in the browser
19 world for some reason." n
20 "So, can you use the xwidget branch as your main Emacs instance?"n
21 "Not yet, its still not mature. There are many tricky issues
22 left. That being said, there are many simple tasks to help out
23 with also if you like!" ))
24
25
26(defun xwidget-screencast(&optional arg)
27 "Displays the screencast for xwidgets."
28 (interactive "P")
29 (apply (if arg
30 'screencast-record
31 'screencast)
32 xwidget-screencast-webkit "xvidgets" 1 ()))