diff options
| author | Joakim Verona | 2011-07-10 23:47:48 +0200 |
|---|---|---|
| committer | Joakim Verona | 2011-07-10 23:47:48 +0200 |
| commit | e098c552ccd4be2c05898bb69df97ce35efa90b7 (patch) | |
| tree | 11758196be04a6ec414100fd73419ffb582bde60 /lisp | |
| parent | d812bba65d7f22a624c8cc19e9ec21ffe3720228 (diff) | |
| download | emacs-e098c552ccd4be2c05898bb69df97ce35efa90b7.tar.gz emacs-e098c552ccd4be2c05898bb69df97ce35efa90b7.zip | |
minor cleanups and doc
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/xwidget-screencast.el | 32 |
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 ())) | ||