unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#46811: 27.1; json-pretty-print fails if there is a map with "t" as one of the keys
@ 2021-02-27  6:49 Anantha Kumaran
  2021-02-27 11:17 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Anantha Kumaran @ 2021-02-27  6:49 UTC (permalink / raw)
  To: 46811

[-- Attachment #1: Type: text/plain, Size: 570 bytes --]

mark the json text below and run M-x json-pretty-print

  {"t": "hello"}

Debugger entered--Lisp error: (json-key-format t)
  signal(json-key-format (t))
  json-pretty-print(1 15 nil)
  funcall-interactively(json-pretty-print 1 15 nil)
  call-interactively(json-pretty-print record nil)
  command-execute(json-pretty-print record)
  execute-extended-command(nil "json-pretty-print" "json")
  funcall-interactively(execute-extended-command nil "json-pretty-print"
"json")
  call-interactively(execute-extended-command nil nil)
  command-execute(execute-extended-command)

[-- Attachment #2: Type: text/html, Size: 705 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#46811: 27.1; json-pretty-print fails if there is a map with "t" as one of the keys
  2021-02-27  6:49 bug#46811: 27.1; json-pretty-print fails if there is a map with "t" as one of the keys Anantha Kumaran
@ 2021-02-27 11:17 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2021-02-27 11:17 UTC (permalink / raw)
  To: Anantha Kumaran; +Cc: 46811-done

> From: Anantha Kumaran <ananthakumaran@gmail.com>
> Date: Sat, 27 Feb 2021 12:19:01 +0530
> 
> mark the json text below and run M-x json-pretty-print
> 
>   {"t": "hello"}
> 
> Debugger entered--Lisp error: (json-key-format t)
>   signal(json-key-format (t))
>   json-pretty-print(1 15 nil)
>   funcall-interactively(json-pretty-print 1 15 nil)
>   call-interactively(json-pretty-print record nil)
>   command-execute(json-pretty-print record)
>   execute-extended-command(nil "json-pretty-print" "json")
>   funcall-interactively(execute-extended-command nil "json-pretty-print" "json")
>   call-interactively(execute-extended-command nil nil)
>   command-execute(execute-extended-command)

Thanks, this is already fixed in the development sources, which will
become Emacs 28.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-02-27 11:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-27  6:49 bug#46811: 27.1; json-pretty-print fails if there is a map with "t" as one of the keys Anantha Kumaran
2021-02-27 11:17 ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).