Skip to content

Commit

Permalink
[WIP]
Browse files Browse the repository at this point in the history
  • Loading branch information
basil-conto committed Jan 12, 2024
1 parent 7bf1de3 commit 743e0f4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions hackernews.el
Original file line number Diff line number Diff line change
Expand Up @@ -627,14 +627,16 @@ Official major mode key bindings:

;;;; Retrieval

;; At top level for Emacs < 24.4.
(defvar json-array-type)
(defvar json-object-type)
(declare-function json-read "json" ())

(defalias 'hackernews--parse-json
(if (fboundp 'json-parse-buffer)
(lambda ()
(json-parse-buffer :object-type 'alist))
(require 'json)
(defvar json-array-type)
(defvar json-object-type)
(declare-function json-read "json")
(lambda ()
(let ((json-array-type 'vector)
(json-object-type 'alist))
Expand Down

0 comments on commit 743e0f4

Please sign in to comment.