GNU bug report logs - #46811
27.1; json-pretty-print fails if there is a map with "t" as one of the keys

Previous Next

Package: emacs;

Reported by: Anantha Kumaran <ananthakumaran <at> gmail.com>

Date: Sat, 27 Feb 2021 11:06:02 UTC

Severity: normal

Tags: fixed, patch

Merged with 42545, 45032, 46174

Found in versions 24.5, 26.3, 27.1, 28.0.50

Fixed in version 28.1

Done: "Basil L. Contovounesios" <contovob <at> tcd.ie>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 46811 in the body.
You can then email your comments to 46811 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#46811; Package emacs. (Sat, 27 Feb 2021 11:06:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Anantha Kumaran <ananthakumaran <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 27 Feb 2021 11:06:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Anantha Kumaran <ananthakumaran <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.1; json-pretty-print fails if there is a map with "t" as one of
 the keys
Date: Sat, 27 Feb 2021 12:19:01 +0530
[Message part 1 (text/plain, inline)]
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)
[Message part 2 (text/html, inline)]

Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Sat, 27 Feb 2021 11:19:02 GMT) Full text and rfc822 format available.

Notification sent to Anantha Kumaran <ananthakumaran <at> gmail.com>:
bug acknowledged by developer. (Sat, 27 Feb 2021 11:19:02 GMT) Full text and rfc822 format available.

Message #10 received at 46811-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Anantha Kumaran <ananthakumaran <at> gmail.com>
Cc: 46811-done <at> debbugs.gnu.org
Subject: Re: bug#46811: 27.1;
 json-pretty-print fails if there is a map with "t" as one of the keys
Date: Sat, 27 Feb 2021 13:17:59 +0200
> From: Anantha Kumaran <ananthakumaran <at> 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.




Forcibly Merged 42545 45032 46174 46811. Request was from "Basil L. Contovounesios" <contovob <at> tcd.ie> to control <at> debbugs.gnu.org. (Sat, 27 Feb 2021 14:08:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 28 Mar 2021 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 28 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.