summaryrefslogtreecommitdiff
path: root/lisp/xwidget.el
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright year to 2020Paul Eggert2020-01-011-1/+1
| | | | Run "TZ=UTC0 admin/update-copyright $(git ls-files)".
* Update copyright year to 2019Paul Eggert2019-01-011-1/+1
| | | | Run 'TZ=UTC0 admin/update-copyright $(git ls-files)'.
* Update copyright year to 2018Paul Eggert2018-01-011-1/+1
| | | | Run admin/update-copyright.
* Prefer HTTPS to FTP and HTTP in documentationPaul Eggert2017-09-131-1/+1
| | | | | | | | | | | | | Most of this change is to boilerplate commentary such as license URLs. This change was prompted by ftp://ftp.gnu.org's going-away party, planned for November. Change these FTP URLs to https://ftp.gnu.org instead. Make similar changes for URLs to other organizations moving away from FTP. Also, change HTTP to HTTPS for URLs to gnu.org and fsf.org when this works, as this will further help defend against man-in-the-middle attacks (for this part I omitted the MS-DOS and MS-Windows sources and the test tarballs to keep the workload down). HTTPS is not fully working to lists.gnu.org so I left those URLs alone for now.
* Merge from origin/emacs-25Paul Eggert2017-01-011-1/+1
|\ | | | | | | | | 2e2a806 Fix copyright years by hand 5badc81 Update copyright year to 2017
| * Update copyright year to 2017Paul Eggert2016-12-311-1/+1
| | | | | | | | Run admin/update-copyright.
* | xwidget: Map "previous-line" and "next-line" to scrollRicardo Wurmus2016-10-251-2/+2
| | | | | | | | | | * lisp/xwidget.el: Map "previous-line" and "next-line" to scrolling procedures.
* | xwidget: Bind "beginning-of-buffer" and "end-of-buffer"Ricardo Wurmus2016-10-251-2/+15
| | | | | | | | | | | | | | | | * lisp/xwidget.el: Rebind "beginning-of-buffer" and "end-of-buffer" to "xwidget-webkit-scroll-top" and "xwidget-webkit-scroll-bottom", respectively. (xwidget-webkit-scroll-top, xwidget-webkit-scroll-bottom): New procedures.
* | Implement zoom for WebKit widget.Ricardo Wurmus2016-10-251-0/+13
| | | | | | | | | | | | | | * src/xwidget.c (xwidget-webkit-zoom): New procedure. * lisp/xwidget.el: Bind "+" and "-" to zoom in and out, respectively. (xwidget-webkit-zoom): Declare procedure. (xwidget-webkit-zoom-in, xwidget-webkit-zoom-out): New procedures.
* | Dynamically resize WebKit widget.Ricardo Wurmus2016-10-251-8/+25
| | | | | | | | | | | | | | | | | | | | * lisp/xwidget.el (xwidget-webkit-auto-adjust-size, xwidget-webkit-adjust-size-in-frame): New procedures. (xwidget-webkit-new-session): Remove hint to resize widget with `a'. (xwidget-webkit-adjust-size-dispatch): Resize current webkit widget. (xwidget-webkit-adjust-size-to-window): Make non-interactive, add widget and window as arguments. (xwidget-webkit-callback): Use xwidget-webkit-adjust-size-to-window.
* | Let initial WebKit view fill windowRicardo Wurmus2016-10-251-1/+3
| | | | | | | | | | * lisp/xwidget.el (xwidget-webkit-new-session): Change default size of WebKit widget to window size.
* | xwidget: Remove title hack.Ricardo Wurmus2016-10-251-24/+0
| | | | | | | | | | | | * src/xwidget.c (xwidget-webkit-get-title): Remove procedure. * lisp/xwidget.el (xwidget-webkit-get-title, xwidget-webkit-execute-script-rv): Remove procedures.
* | xwidget: Get URL asynchronously.Ricardo Wurmus2016-10-251-5/+5
| | | | | | | | * lisp/xwidget.el (xwidget-webkit-current-url): Kill URL in callback.
* | xwidget: Get selection with asynchronous JavaScriptRicardo Wurmus2016-10-251-5/+7
| | | | | | | | | | | | * lisp/xwidget.el (xwidget-webkit-get-selection): Add PROC argument to process selection. (xwidget-webkit-copy-selection-as-kill): Kill selection in callback.
* | xwidget: Add function to find element by CSS selectorRicardo Wurmus2016-10-251-0/+17
| | | | | | | | * lisp/xwidget.el (xwidget-webkit-show-element): New procedure.
* | xwidget: Simplify functions to scroll to elementsRicardo Wurmus2016-10-251-44/+35
| | | | | | | | | | | | | | * lisp/xwidget.el (xwidget-webkit-show-named-element, xwidget-webkit-show-id-element, xwidget-webkit-show-id-or-named-element): Simplify functions by scrolling exclusively with JavaScript.
* | xwidget: Get title via asynchronous JavaScript.Ricardo Wurmus2016-10-251-7/+8
| | | | | | | | | | * lisp/xwidget.el (xwidget-webkit-callback): Get document title asynchronously.
* | xwidget: Do not use `xwidget-execute-script-rv' to insert stringRicardo Wurmus2016-10-251-24/+23
| | | | | | | | | | | | * lisp/xwidget.el (xwidget-webkit-insert-string): Obtain JavaScript return value via callback instead of using `xwidget-webkit-execute-script-rv'.
* | Remove scrolled window container around WebKit widgetRicardo Wurmus2016-10-251-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The WebKit widget can scroll on its own and does not need to wrapped with a scrolled window container. * src/xwidget.h: Remove struct member widgetscrolledwindow_osr. * src/xwidget.c: Remove widgetscrolledwindow_osr. (xwidget-set-adjustment): Remove. (xwidget-resize): Resize Webkit widget last. * lisp/xwidget.el (xwidget-set-adjustment): Remove. (xwidget-webkit-scroll-up, xwidget-webkit-scroll-down, xwidget-webkit-scroll-forward, xwidget-webkit-scroll-backward): Implement scrolling via JavaScript.
* | xwidget: Pass JavaScript return value to optional callback procedureRicardo Wurmus2016-10-251-14/+19
| | | | | | | | | | | | | | | | | | | | | | * lisp/xwidget.el (xwidget-webkit-execute-script): Accept optional callback argument. (xwidget-webkit-callback): Handle "javascript-callback" event type. * src/xwidget.c (xwidget-webkit-execute-script): Accept optional argument FUN, a Lisp procedure to execute on the JavaScript return value. (store_xwidget_js_callback_event, webkit_javascript_finished_cb, webkit_js_to_lisp): New procedures.
* | xwidget: Use WebKit2 APIRicardo Wurmus2016-10-251-3/+2
|/ | | | | | | * configure.ac: Check for webkit2gtk-4.0. * src/xwidget.c: Adjust to use WebKit2 API. * lisp/xwidget.el (xwidget-webkit-callback): Adjust matches for `xwidget-event-type'.
* Remove buggy non-native image scrollingPaul Eggert2016-05-131-34/+9
| | | | | | | This never worked, and could cause infinite recursion. Problem reported by Glenn Morris (Bug#22465). * lisp/xwidget.el (xwidget-webkit-scroll-behavior): Remove. All uses removed.
* Remove unused arguments from make-xwidgetJoakim Verona2016-04-021-4/+3
| | | | | | | | | The arguments BEG and END were unused, and are now removed. * display.texi (Xwidgets): Document the change * xwidget.el (make-xwidget, xwidget-insert) (xwidget-webkit-new-session): Reflect changed arguments * xwidget.c (Fmake_xwidget, syms_of_xwidget): Reflect changed arguments
* Quoting fixes in doc strings and diagnosticsPaul Eggert2016-02-031-4/+4
| | | | | | | * lisp/emacs-lisp/bytecomp.el (byte-compile-setq, byte-compile-funcall): * lisp/gnus/mml-smime.el (mml-smime-get-dns-cert) (mml-smime-get-ldap-cert): Follow user style preference when quoting diagnostics.
* * lisp/xwidget.el (xwidget-query-on-exit-flag): Declare.Glenn Morris2016-01-271-0/+1
|
* * lisp/xwidget.el (xwidget-webkit-browse-url): Give explicit errorGlenn Morris2016-01-271-0/+2
| | | | if not compiled with xwidgets.
* * lisp/xwidget.el (xwidget-webkit-scroll-behavior):Glenn Morris2016-01-251-10/+10
| | | | Rename using American spelling. Update all uses.
* Yet more xwidget doc fixes.Glenn Morris2016-01-251-50/+49
| | | | | | | | | | | | | | | | | * lisp/xwidget.el (xwidget-webkit-scroll-behaviour) (xwidget-insert, xwidget-webkit-browse-url) (xwidget-webkit-scroll-up, xwidget-webkit-scroll-down) (xwidget-webkit-scroll-forward, xwidget-webkit-scroll-backward) (xwidget-webkit-insert-string, xwidget-webkit-show-named-element) (xwidget-webkit-show-id-element) (xwidget-webkit-show-id-or-named-element) (xwidget-webkit-adjust-size, xwidget-webkit-current-url) (xwidget-webkit-execute-script-rv) (xwidget-webkit-copy-selection-as-kill, xwidget-get) (xwidget-put): Doc fixes. (xwidget-webkit-insert-string, xwidget-webkit-show-named-element) (xwidget-webkit-show-id-element) (xwidget-webkit-show-id-or-named-element): Prompt fixes.
* Spelling fixesPaul Eggert2016-01-251-1/+1
|
* * lisp/xwidget.el: NitpicksStefan Monnier2016-01-191-65/+58
| | | | | * lisp/xwidget.el (xwidget-log, xwidget-webkit-callback): Use with-current-buffer rather than save-excursion + set-buffer.
* Don't hard-code 1 as point-min.Glenn Morris2016-01-191-4/+2
| | | | | | * lisp/image-mode.el (image-display-size): * lisp/xwidget.el (xwidget-webkit-last-session) (xwidget-webkit-current-session): Don't hard-code 1 as point-min.
* ; * lisp/xwidget.el: Spelling fixes.Glenn Morris2016-01-191-27/+27
|
* * lisp/xwidget.el: Add declarations to silence non-xwidget compilation.Glenn Morris2016-01-191-5/+20
|
* Avoid advising image-display-size for xwidgets.Glenn Morris2016-01-191-17/+0
| | | | | | | * lisp/xwidget.el (xwidget-image-display-size): Remove. (image-display-size): Remove advice. * lisp/image-mode.el (xwidget-info, xwidget-at): Declare. (image-display-size): Incorporate xwidget code directly.
* Avoid breaking non-xwidget Emacs that happen to load xwidget.el.Glenn Morris2016-01-191-2/+4
| | | | | | * lisp/xwidget.el (window-configuration-change-hook) (kill-buffer-query-functions): Only modify these hooks if compiled with xwidget support.
* * lisp/xwidget.el (xwidget-webkit-scroll-behaviour): Fix custom spec.Glenn Morris2016-01-191-1/+3
|
* * lisp/xwidget.el (report-xwidget-bug): Remove.Glenn Morris2016-01-191-21/+0
| | | | (top-level): No longer require reporter.
* ; Add 2016 to copyright years of new files.Glenn Morris2016-01-191-1/+1
|
* Support for the new Xwidget feature.Joakim Verona2016-01-191-0/+608
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.ac: (HAVE_XWIDGETS, WIDGET_OBJ, EMACS_CONFIG_FEATURES): * xterm.c (x_draw_glyph_string, x_draw_bar_cursor): * xdisp.c: (handle_display_spec, handle_single_display_spec, push_it) (pop_it, set_iterator_to_next, dump_glyph) (calc_pixel_width_or_height, fill_xwidget_glyph_string) (BUILD_XWIDGET_GLYPH_STRING, BUILD_GLYPH_STRINGS) (produce_xwidget_glyph, x_produce_glyphs) (get_window_cursor_type): * window.c (Fdelete_window_internal): * termhooks.h (e): * print.c (print_object): * lisp.h (ptrdiff_t): * keyboard.c (kbd_buffer_get_event, make_lispy_event) (syms_of_keyboard): * emacs.c (main): * dispnew.c (update_window, scrolling_window): * dispextern.h (g, i): * Makefile.in (XWIDGETS_OBJ, WEBKIT_CFLAGS, WEBKIT_LIBS) (GIR_LIBS, ALL_CFLAGS, base_obj, LIBES): * keyboard.c (kbd_buffer_get_event): * emacsgtkfixed.c (emacs_fixed_gtk_widget_size_allocate) (emacs_fixed_class_init): Add case for an xwidget view. * xwidget.c, xwidget.h, xwidget.el: New files for xwidgets Co-authored-by: Grégoire Jadi <daimrod@gmail.com> Various improvements to the Xwidget feature. * xwidgets.c: * emacsgtkfixed.c: * xwidget.el:
* Revert changes installed by xwidgets mergePaul Eggert2015-02-011-592/+0
|
* Fix compile warnings xwidget.elJoakim Verona2015-01-311-4/+5
|
* First attempt at bookmark supportJoakim Verona2015-01-281-1/+10
|
* added hint to webkit bufferJoakim Verona2015-01-261-2/+2
|
* Improved glitch fixJoakim Verona2015-01-251-3/+12
|
* Fix visual glitch during webkit resizingJoakim Verona2015-01-251-1/+3
|
* webkit scrolling bugfixJoakim Verona2015-01-211-8/+8
|
* rely less onimage modeJoakim Verona2015-01-211-6/+8
|
* Native scrollingJoakim Verona2015-01-211-20/+76
| | | | | Initial support for native scrolling of the webkit xwidget. Also some checkstyle cleanups.
* * lisp/xwidget.el (xwidget-display): Return a useful value.Grégoire Jadi2013-08-131-2/+4
| | | | * test/automated/xwidget-tests.el (xwidget-view-p): Use `xwidget-display'.
* * lisp/xwidget.el (xwidget-delete-zombies): Rewrite with dolist/memqGrégoire Jadi2013-07-251-6/+5
| | | | instead of mapcar/find.