diff options
| author | Lars Ingebrigtsen | 2017-02-18 16:46:06 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2017-02-18 16:46:06 +0100 |
| commit | 7d15daf713f7fe2d067a10812cdfcb32963f596e (patch) | |
| tree | 4fc6ab2d572bb874abd9329f9c1b5d67733fa47e | |
| parent | 6ad34b3d542e874609f3be2c2bc899da9af109d0 (diff) | |
| download | emacs-7d15daf713f7fe2d067a10812cdfcb32963f596e.tar.gz emacs-7d15daf713f7fe2d067a10812cdfcb32963f596e.zip | |
Lists used as plists now have to be an even length
* lisp/net/eww.el (eww-size-text-inputs): `eww-form' isn't a plist.
(eww-process-text-input): Not here, either.
| -rw-r--r-- | lisp/net/eww.el | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lisp/net/eww.el b/lisp/net/eww.el index f7e06341443..c9f4e61a6fe 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el | |||
| @@ -1135,7 +1135,8 @@ See URL `https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input'.") | |||
| 1135 | (insert (make-string (abs length) ? )) | 1135 | (insert (make-string (abs length) ? )) |
| 1136 | (set-text-properties start (point) properties)) | 1136 | (set-text-properties start (point) properties)) |
| 1137 | (goto-char (1- end))))) | 1137 | (goto-char (1- end))))) |
| 1138 | (set-text-properties (plist-get form :start) (plist-get form :end) | 1138 | (set-text-properties (cdr (assq :start form)) |
| 1139 | (cdr (assq :end form)) | ||
| 1139 | properties) | 1140 | properties) |
| 1140 | (let ((value (buffer-substring-no-properties | 1141 | (let ((value (buffer-substring-no-properties |
| 1141 | (eww-beginning-of-field) | 1142 | (eww-beginning-of-field) |
| @@ -1348,10 +1349,10 @@ See URL `https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input'.") | |||
| 1348 | (when (or (get-text-property start 'eww-form) | 1349 | (when (or (get-text-property start 'eww-form) |
| 1349 | (setq start (next-single-property-change start 'eww-form))) | 1350 | (setq start (next-single-property-change start 'eww-form))) |
| 1350 | (let ((props (get-text-property start 'eww-form))) | 1351 | (let ((props (get-text-property start 'eww-form))) |
| 1351 | (plist-put props :start start) | 1352 | (nconc props (list (cons :start start))) |
| 1352 | (setq start (next-single-property-change | 1353 | (setq start (next-single-property-change |
| 1353 | start 'eww-form nil (point-max))) | 1354 | start 'eww-form nil (point-max))) |
| 1354 | (plist-put props :end start)))))) | 1355 | (nconc props (list (cons :end start)))))))) |
| 1355 | 1356 | ||
| 1356 | (defun eww-input-value (input) | 1357 | (defun eww-input-value (input) |
| 1357 | (let ((type (plist-get input :type)) | 1358 | (let ((type (plist-get input :type)) |