[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/xkcd 3acd31542b 06/82: Fix up search in xkcd-get-json. Add
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/xkcd 3acd31542b 06/82: Fix up search in xkcd-get-json. Add new line to README.md. |
Date: |
Mon, 12 Dec 2022 21:59:49 -0500 (EST) |
branch: elpa/xkcd
commit 3acd31542b3a44f89ded77cd07a9ae928f1f5514
Author: Vibhav Pant <vibhavp@cthulhu-p5kpl.lan>
Commit: Vibhav Pant <vibhavp@cthulhu-p5kpl.lan>
Fix up search in xkcd-get-json. Add new line to README.md.
---
README.md | 1 +
emacs-xkcd.el | 6 +++---
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
index 8e92be7985..752818bf2b 100644
--- a/README.md
+++ b/README.md
@@ -11,6 +11,7 @@ Enable it by adding
to your .emacs file.
#Loading up comics:
`xkcd-get` loads up a user-specified comic.
+
`xkcd-get-latest` loads up the latest xkcd.
# Current keybindings:
| Keybinding | Use | Function |
diff --git a/emacs-xkcd.el b/emacs-xkcd.el
index 830a934e38..aff133cf1f 100644
--- a/emacs-xkcd.el
+++ b/emacs-xkcd.el
@@ -47,7 +47,7 @@
(let ((buffer (url-retrieve-synchronously url))
(json nil))
(with-current-buffer buffer
- (re-search-backward "^$")
+ (re-search-forward "^$")
(setq json (buffer-substring-no-properties (+ (point) 1) (point-max)))
(kill-buffer (current-buffer)))
json))
@@ -64,8 +64,8 @@
(xkcd-mode))
(setq xkcd-cur num)
(let ((out (if (eq num nil)
- (get-json "http://xkcd.com/info.0.json")
- (get-json (concat "http://xkcd.com/" (number-to-string num)
+ (xkcd-get-json "http://xkcd.com/info.0.json")
+ (xkcd-get-json (concat "http://xkcd.com/" (number-to-string num)
"/info.0.json"))))
(img nil)
(num nil)
- [nongnu] elpa/xkcd 51bf8b0d49 05/82: Rename functions, make json retrieving function smaller., (continued)
- [nongnu] elpa/xkcd 51bf8b0d49 05/82: Rename functions, make json retrieving function smaller., ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd fcedf74f71 01/82: Initial commit, ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 620f3417cf 08/82: Update README.md, ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd d890179cde 09/82: Add xkcd-download, ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd add1413ee9 11/82: Correct typo in readme., ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd c816cfa893 12/82: Add caching and offline support., ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 736b1c9abf 02/82: Initial commit, ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 0f1abaebf5 14/82: typo: keybinding is t not r, ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd f7b5157cdd 03/82: * README.md: Fix directory path, ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 7ceb6cfb46 04/82: Update README.md, ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 3acd31542b 06/82: Fix up search in xkcd-get-json. Add new line to README.md.,
ELPA Syncer <=
- [nongnu] elpa/xkcd 3a1d89e234 07/82: Add screenshot, ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd ef2ae149e6 10/82: Add TODO to docs., ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 637f3d546e 15/82: Merge pull request #1 from oylenshpeegul/patch-1, ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 51a00504a1 19/82: Release Version 1.0, ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd b409d07459 24/82: Add travis support., ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd b88b3df8b2 27/82: Update to reflect rename., ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd a565d632fd 41/82: Support gif and jpg image extensions., ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 11c428c1b7 17/82: Fix xkcd-rand., ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 26954c3cfc 48/82: Use image-animated-p instead of image-multi-frame-p for Emacs < 24.4, ELPA Syncer, 2022/12/12
- [nongnu] elpa/xkcd 311abf717c 20/82: Add autoload cookie for main entry point, ELPA Syncer, 2022/12/12