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.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#46811: closed (27.1; json-pretty-print fails if there is a
 map with "t" as one of the keys)
Date: Sat, 27 Feb 2021 11:19:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 27 Feb 2021 13:17:59 +0200
with message-id <83sg5hoj2w.fsf <at> gnu.org>
and subject line Re: bug#46811: 27.1; json-pretty-print fails if there is a map with "t" as one of the keys
has caused the debbugs.gnu.org bug report #46811,
regarding 27.1; json-pretty-print fails if there is a map with "t" as one of the keys
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
46811: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=46811
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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 3 (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 4 (text/html, inline)]
[Message part 5 (message/rfc822, inline)]
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.


This bug report was last modified 4 years and 80 days ago.

Previous Next


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