diff options
Diffstat (limited to 'lisp/json.el')
-rw-r--r-- | lisp/json.el | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/json.el b/lisp/json.el index 787ea0eb7ce..64d6f03a780 100644 --- a/lisp/json.el +++ b/lisp/json.el @@ -53,7 +53,6 @@ ;;; Code: (eval-when-compile (require 'cl)) -(require 'thingatpt) ;; Compatibility code @@ -200,14 +199,14 @@ KEYWORD is the keyword expected." (signal 'json-unknown-keyword (list (save-excursion (backward-word 1) - (word-at-point))))) + (thing-at-point 'word))))) (json-advance)) keyword) (unless (looking-at "\\(\\s-\\|[],}]\\|$\\)") (signal 'json-unknown-keyword (list (save-excursion (backward-word 1) - (word-at-point))))) + (thing-at-point 'word))))) (cond ((string-equal keyword "true") t) ((string-equal keyword "false") json-false) ((string-equal keyword "null") json-null))) |