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


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.




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.