diff options
| author | Dmitry Gutov | 2015-03-23 18:00:39 +0200 |
|---|---|---|
| committer | Dmitry Gutov | 2015-03-23 18:00:39 +0200 |
| commit | a50c95dbd24eb0e56ad0eb0f8ff2c013b5f92285 (patch) | |
| tree | 106628eb812555c6fdbe7e93767c30b71b1b3e22 | |
| parent | 24960fc72c5a6b7e97a25416ed986ca7054d1260 (diff) | |
| download | emacs-a50c95dbd24eb0e56ad0eb0f8ff2c013b5f92285.tar.gz emacs-a50c95dbd24eb0e56ad0eb0f8ff2c013b5f92285.zip | |
Get rid of json-decode-char0 as well
Fixes: debbugs:20154
* lisp/json.el (json-decode-char0): Delete this alias as well.
(json-read-escaped-char): Don't call it.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/json.el | 8 |
2 files changed, 7 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 630265a0f4c..9448e0514e6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2015-03-23 Dmitry Gutov <dgutov@yandex.ru> | ||
| 2 | |||
| 3 | * json.el (json-decode-char0): Delete this alias as well. | ||
| 4 | (json-read-escaped-char): Don't call it (bug#20154). | ||
| 5 | |||
| 1 | 2015-03-23 Daniel Colascione <dancol@dancol.org> | 6 | 2015-03-23 Daniel Colascione <dancol@dancol.org> |
| 2 | 7 | ||
| 3 | * emacs-lisp/lisp-mode.el (lisp--el-non-funcall-position-p): New function. | 8 | * emacs-lisp/lisp-mode.el (lisp--el-non-funcall-position-p): New function. |
| @@ -33,7 +38,7 @@ | |||
| 33 | 38 | ||
| 34 | 2015-03-22 Dmitry Gutov <dgutov@yandex.ru> | 39 | 2015-03-22 Dmitry Gutov <dgutov@yandex.ru> |
| 35 | 40 | ||
| 36 | * json.el (json-decode-char0): Delete this alias. | 41 | * json.el (json-encode-char0): Delete this alias. |
| 37 | (json-encode-string): Rewrite to improve performance (bug#20154). | 42 | (json-encode-string): Rewrite to improve performance (bug#20154). |
| 38 | (json-encode-char): Fold into `json-encode-string'. | 43 | (json-encode-char): Fold into `json-encode-string'. |
| 39 | 44 | ||
diff --git a/lisp/json.el b/lisp/json.el index fb0f62c8777..a1e9bb78d11 100644 --- a/lisp/json.el +++ b/lisp/json.el | |||
| @@ -52,12 +52,6 @@ | |||
| 52 | 52 | ||
| 53 | ;;; Code: | 53 | ;;; Code: |
| 54 | 54 | ||
| 55 | |||
| 56 | ;; Compatibility code | ||
| 57 | |||
| 58 | (defalias 'json-decode-char0 'decode-char) | ||
| 59 | |||
| 60 | |||
| 61 | ;; Parameters | 55 | ;; Parameters |
| 62 | 56 | ||
| 63 | (defvar json-object-type 'alist | 57 | (defvar json-object-type 'alist |
| @@ -286,7 +280,7 @@ representation will be parsed correctly." | |||
| 286 | ((looking-at "[0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f]") | 280 | ((looking-at "[0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f][0-9A-Fa-f]") |
| 287 | (let ((hex (match-string 0))) | 281 | (let ((hex (match-string 0))) |
| 288 | (json-advance 4) | 282 | (json-advance 4) |
| 289 | (json-decode-char0 'ucs (string-to-number hex 16)))) | 283 | (string-to-number hex 16))) |
| 290 | (t | 284 | (t |
| 291 | (signal 'json-string-escape (list (point))))))) | 285 | (signal 'json-string-escape (list (point))))))) |
| 292 | 286 | ||