diff options
| author | Lars Magne Ingebrigtsen | 2013-06-10 22:28:35 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2013-06-10 22:28:35 +0000 |
| commit | 001b9fbe7c415ef77f4e2b8a6c448989c379ae94 (patch) | |
| tree | 6e69aecaf3b6f26cd56c5d248cb590c77f60faf7 | |
| parent | f22255bdbd0dd71d87f810f2ede419e6ec35370f (diff) | |
| download | emacs-001b9fbe7c415ef77f4e2b8a6c448989c379ae94.tar.gz emacs-001b9fbe7c415ef77f4e2b8a6c448989c379ae94.zip | |
lisp/gnus/eww.el (eww-tag-form): Protect against degenerate forms
| -rw-r--r-- | lisp/gnus/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/gnus/eww.el | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index f4d45e9fd0b..4003d3a51f8 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2013-06-10 Lars Magne Ingebrigtsen <larsi@gnus.org> | 1 | 2013-06-10 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 2 | ||
| 3 | * eww.el (eww-tag-form): Protect against degenerate forms. | ||
| 4 | |||
| 3 | * shr.el (shr-expand-url): Expand URLs that start with a slash | 5 | * shr.el (shr-expand-url): Expand URLs that start with a slash |
| 4 | correctly. | 6 | correctly. |
| 5 | 7 | ||
diff --git a/lisp/gnus/eww.el b/lisp/gnus/eww.el index 1a072244fb4..9a7435fc54c 100644 --- a/lisp/gnus/eww.el +++ b/lisp/gnus/eww.el | |||
| @@ -177,8 +177,9 @@ | |||
| 177 | (shr-ensure-paragraph) | 177 | (shr-ensure-paragraph) |
| 178 | (shr-generic cont) | 178 | (shr-generic cont) |
| 179 | (shr-ensure-paragraph) | 179 | (shr-ensure-paragraph) |
| 180 | (put-text-property start (1+ start) | 180 | (when (> (point) start) |
| 181 | 'eww-form eww-form))) | 181 | (put-text-property start (1+ start) |
| 182 | 'eww-form eww-form)))) | ||
| 182 | 183 | ||
| 183 | (defun eww-tag-input (cont) | 184 | (defun eww-tag-input (cont) |
| 184 | (let* ((start (point)) | 185 | (let* ((start (point)) |