Commit graph

116 commits

Author SHA1 Message Date
Grégoire Jadi
b849935e98 * src/xwidget.c: Add a `query-on-exit' flag to determine whether we can
kill xwidget when the buffer is killed without confirmation.
(Fset_xwidget_query_on_exit_flag): New function to set the `query-on-exit'
flag.
(Fxwidget_query_on_exit_flag): New function to retrieve the value of the
`query-on-exit' flag.
(Fmake_xwidget): Set the `query-on-exit' flag to t by default.
* src/xwidget.h (xwidget): Add new field `kill_without_query'.
* lisp/xwidget.el (xwidget-kill-buffer-query-function): Ask for
confirmation before killing the buffer if a xwidget is present only if its
`query-on-exit' flag is enabled.
2013-07-16 19:39:20 +02:00
Grégoire Jadi
da95bc007d Handle xwidgets like processes and delete them when their buffer is killed.
* lisp/xwidget.el (xwidget-kill-buffer-query-function): New function to
query a user before killing a buffer with xwidgets in it.

This function is stored in `kill-buffer-query-functions' and called from
`kill-buffer'.
* src/buffer.c (Fkill_buffer): Call `kill_buffer_xwidgets'.
* src/xwidget.c (kill_buffer_xwidgets): Delete xwidgets attached to the
specified buffer.
* src/xwidget.h (kill_buffer_xwidgets): Add definition.
2013-06-24 10:22:45 +02:00
Grégoire Jadi
e32984567a * lisp/xwidget.el (report-xwidget-bug): Add a function to submit a bug
with the proper address and pseudo-header.
* README.xwidget: Update the documentation to mention
`report-xwidget-bug'.
2013-06-13 09:42:41 +02:00
Grégoire Jadi
5a99554993 * lisp/xwidget.el: Fix some warnings raised by the byte-compiler. 2013-06-11 15:14:47 +02:00
Grégoire Jadi
7a00481ac3 * src/xwidget.c (Fmake_xwidget): Add a docstring and add BUFFER as an optional parameter.
The docstring now lists the types accepted.
The GCPROtection has also been removed because it wasn't necessary (no
call to Feval/eval_sub either directly or indirectly).

(syms_of_xwidget): Add a comment to remind us to update the docstring of
`Fmake_xwidget' if new types are added.
2013-06-11 15:14:43 +02:00
Grégoire Jadi
8847f1116c Small fixes
* lisp/xwidget.el: Do some cosmetic changes.

Align expressions, remove some whitespaces, remove duplicated provide,
replace (if foo foo bar) by (or foo bar)
* src/xwidget.c (Fmake_xwidget): Cosmetic changes and fix a comment.
* README.xwidget: Fix some typos.
2013-06-11 15:12:58 +02:00
Joakim Verona
62dd123f7c cl-flet replaces flet (Stefan Hussman) 2013-03-26 16:15:43 +01:00
Joakim Verona
08ab3a852d fixes so xwidgets doesnt pollute a non xwidget build 2012-07-08 17:42:57 +02:00
Joakim Verona
28d5f38df4 textarea 2012-03-20 18:53:34 +01:00
Joakim Verona
1de331c486 upstream+selection support 2012-03-08 01:42:31 +01:00
Joakim Verona
e8e42079e7 bug when passing xwidget in event 2012-02-27 00:31:01 +01:00
Joakim Verona
d5114bfea3 added stuff for logging 2012-01-23 15:08:53 +01:00
Joakim Verona
69a8e78e4d fixes for typechecking to avoid crashes when some webkit functions are called with nil instead of valid webkit obj. intended to make it run on archlinux 2012-01-12 16:30:04 +01:00
Joakim Verona
32db4845d5 nav + text edit 2011-11-09 13:46:24 +01:00
Joakim Verona
d66104e9ad password support. doc. 2011-11-07 16:06:50 +01:00
Joakim Verona
2670512ad7 even better relative links 2011-11-03 23:49:00 +01:00
Joakim Verona
e40ee7bd1e improvement to 'g' 2011-11-03 22:25:57 +01:00
Joakim Verona
2e82ad10d1 relative urls tiny fix 2011-11-03 15:36:05 +01:00
Joakim Verona
34deead3a1 relative urls actually work for emacswiki! only birefly tested 2011-11-03 15:33:48 +01:00
Joakim Verona
fe118e06d8 attempt to make relative urls work, but it doesnt. contains some bugfixes anyway 2011-11-03 14:58:05 +01:00
Joakim Verona
fc7ee8f786 some fruitless webkit size experiments 2011-10-28 16:26:43 +02:00
Joakim Verona
f514b55e44 text input with html using frames works better now 2011-10-26 15:18:11 +02:00
Joakim Verona
37eb6742e3 tiny url-tidy fix 2011-10-26 13:59:02 +02:00
Joakim Verona
c591741609 ugly title return value workaround 2011-10-26 13:47:00 +02:00
Joakim Verona
3bb66ec611 upstream + xwidget-webkit-show-named-element 2011-10-18 21:25:17 +02:00
Joakim Verona
f3a03521ac home end keys fix 2011-10-15 23:39:39 +02:00
Joakim Verona
8918dacdb3 attempt to avoid possible redisplay loop 2011-09-14 08:21:01 +02:00
Joakim Verona
1d55eaf75e minor webkit 2011-08-25 11:58:47 +02:00
Joakim Verona
91a91767a5 typo 2011-08-23 13:26:04 +02:00
Joakim Verona
07053c1999 get webkit url 2011-08-23 11:09:05 +02:00
Joakim Verona
31cb6a3b90 title tweak 2011-08-22 21:57:44 +02:00
Joakim Verona
c0ebe7cea4 improved webkit field edit 2011-08-22 01:04:50 +02:00
Joakim Verona
66a5c19422 some keyboard event code but it still crashes 2011-08-17 12:18:26 +02:00
Joakim Verona
58cc0fbabd event to callback maping code works better now 2011-08-16 09:12:16 +02:00
Joakim Verona
e36df8ed92 event to callback maping code that does not work yet 2011-08-16 01:48:09 +02:00
Joakim Verona
009838098e xwidget plist support 2011-08-15 16:58:27 +02:00
Joakim Verona
9a31704761 webkit form field edit enhancement 2011-08-10 11:43:49 +02:00
Joakim Verona
c5e10d038d cleanups 2011-08-08 10:41:33 +02:00
Joakim Verona
1cab149286 mostly upstream 2011-08-07 14:24:24 +02:00
Joakim Verona
5cf126ad68 before merge 2011-08-07 00:21:42 +02:00
Joakim Verona
895ae71ee3 forget a reguire cl for the flet macro 2011-08-06 18:36:06 +02:00
Joakim Verona
66f857bd9d fixed an assert 2011-08-04 00:08:40 +02:00
Joakim Verona
c040cbd945 merge upstream + stray par fix 2011-08-02 11:42:58 +02:00
Joakim Verona
e31c3c3f9c some adaptor code that makes webkit mode work a bit more like image mode 2011-08-02 00:32:00 +02:00
Joakim Verona
022cd22bf1 merge upstream 2011-08-01 16:40:12 +02:00
Joakim Verona
eac24b5200 xwidgetp 2011-08-01 11:56:06 +02:00
Joakim Verona
332f858fd7 merge upstream 2011-07-31 23:57:51 +02:00
Joakim Verona
fceaa88120 example webkit signal handler for document-loaded. upstream has changed display code so there are some visual glitches. i dont think xwidget code is to blame. 2011-07-31 23:55:11 +02:00
Joakim Verona
e9a96749cc better support for multiple webkit buffers 2011-07-30 02:13:59 +02:00
Joakim Verona
5d9d21d398 doc 2011-07-29 09:42:59 +02:00