diff options
| author | Joakim Verona | 2015-01-31 21:09:11 +0100 |
|---|---|---|
| committer | Joakim Verona | 2015-01-31 21:09:11 +0100 |
| commit | 4edad429cafb2f0b1fda028be58367286ab04f1c (patch) | |
| tree | db9786521523cdc76edca77c01ef71402c6f9ea9 | |
| parent | 3fd802081f292b0a3a2fce8394067bbd9ce88f67 (diff) | |
| download | emacs-4edad429cafb2f0b1fda028be58367286ab04f1c.tar.gz emacs-4edad429cafb2f0b1fda028be58367286ab04f1c.zip | |
Fix compile warnings xwidget.el
| -rw-r--r-- | lisp/xwidget.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/xwidget.el b/lisp/xwidget.el index 4471b122177..de3235d4701 100644 --- a/lisp/xwidget.el +++ b/lisp/xwidget.el | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | p;;; xwidget.el --- api functions for xwidgets -*- lexical-binding: t -*- | 1 | ;;; xwidget.el --- api functions for xwidgets -*- lexical-binding: t -*- |
| 2 | ;; see xwidget.c for more api functions | 2 | ;; see xwidget.c for more api functions |
| 3 | 3 | ||
| 4 | 4 | ||
| @@ -13,6 +13,7 @@ p;;; xwidget.el --- api functions for xwidgets -*- lexical-binding: t -*- | |||
| 13 | 13 | ||
| 14 | (eval-when-compile (require 'cl)) | 14 | (eval-when-compile (require 'cl)) |
| 15 | (require 'reporter) | 15 | (require 'reporter) |
| 16 | (require 'bookmark) | ||
| 16 | 17 | ||
| 17 | (defcustom xwidget-webkit-scroll-behaviour 'native | 18 | (defcustom xwidget-webkit-scroll-behaviour 'native |
| 18 | "Scroll behaviour of the webkit instance. | 19 | "Scroll behaviour of the webkit instance. |
| @@ -315,14 +316,14 @@ Argument STR string." | |||
| 315 | (xwidget-webkit-begin-edit-textarea xww field-value)))))) | 316 | (xwidget-webkit-begin-edit-textarea xww field-value)))))) |
| 316 | (xwidget-webkit-execute-script xw (format "findactiveelement(document).value='%s'" str))) | 317 | (xwidget-webkit-execute-script xw (format "findactiveelement(document).value='%s'" str))) |
| 317 | 318 | ||
| 318 | 319 | (defvar xwidget-xwbl) | |
| 319 | (defun xwidget-webkit-begin-edit-textarea (xw text) | 320 | (defun xwidget-webkit-begin-edit-textarea (xw text) |
| 320 | "Start editing of a webkit text area. | 321 | "Start editing of a webkit text area. |
| 321 | XW is the xwidget identifier, TEXT is retrieved from the webkit." | 322 | XW is the xwidget identifier, TEXT is retrieved from the webkit." |
| 322 | (switch-to-buffer | 323 | (switch-to-buffer |
| 323 | (generate-new-buffer "textarea")) | 324 | (generate-new-buffer "textarea")) |
| 324 | 325 | ||
| 325 | (set (make-local-variable 'xwbl) xw) | 326 | (set (make-local-variable 'xwidget-xwbl) xw) |
| 326 | (insert text)) | 327 | (insert text)) |
| 327 | 328 | ||
| 328 | (defun xwidget-webkit-end-edit-textarea () | 329 | (defun xwidget-webkit-end-edit-textarea () |
| @@ -331,7 +332,7 @@ XW is the xwidget identifier, TEXT is retrieved from the webkit." | |||
| 331 | (goto-char (point-min)) | 332 | (goto-char (point-min)) |
| 332 | (while (search-forward "\n" nil t) | 333 | (while (search-forward "\n" nil t) |
| 333 | (replace-match "\\n" nil t)) | 334 | (replace-match "\\n" nil t)) |
| 334 | (xwidget-webkit-execute-script xwbl (format "findactiveelement(document).value='%s'" | 335 | (xwidget-webkit-execute-script xwidget-xwbl (format "findactiveelement(document).value='%s'" |
| 335 | (buffer-substring (point-min) (point-max)))) | 336 | (buffer-substring (point-min) (point-max)))) |
| 336 | ;;TODO convert linefeed to \n | 337 | ;;TODO convert linefeed to \n |
| 337 | ) | 338 | ) |