branch: elpa/xkcd commit e61b7e6ed677ce180a8af481eff460ed9c2ff5f3 Author: Vibhav Pant <vibh...@inspiron-1150.lan> Commit: Vibhav Pant <vibh...@inspiron-1150.lan>
xkcd-get-json: Get substring between (point) and (point-max), instead of point +1 and point-max. --- xkcd.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xkcd.el b/xkcd.el index 0092269864..dbae5499a5 100644 --- a/xkcd.el +++ b/xkcd.el @@ -79,7 +79,7 @@ The return value is a string." (goto-char (point-min)) (unless cached (re-search-forward "^$")) (prog1 - (buffer-substring-no-properties (+ (point) 1) (point-max)) + (buffer-substring-no-properties (point) (point-max)) (kill-buffer (current-buffer)))))) (defun xkcd-get-image-type (url)