From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: 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 Message-ID: <83sg5hoj2w.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35353"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46811-done@debbugs.gnu.org To: Anantha Kumaran Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 27 12:19:10 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lFxcr-00096q-Qe for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Feb 2021 12:19:09 +0100 Original-Received: from localhost ([::1]:43314 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lFxcq-0003mX-S6 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Feb 2021 06:19:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54540) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lFxck-0003mK-Sn for bug-gnu-emacs@gnu.org; Sat, 27 Feb 2021 06:19:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59912) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lFxck-0000n8-LJ for bug-gnu-emacs@gnu.org; Sat, 27 Feb 2021 06:19:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lFxck-0003Dk-Hd for bug-gnu-emacs@gnu.org; Sat, 27 Feb 2021 06:19:02 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Feb 2021 11:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 46811 X-GNU-PR-Package: emacs Mail-Followup-To: 46811@debbugs.gnu.org, eliz@gnu.org, ananthakumaran@gmail.com Original-Received: via spool by 46811-done@debbugs.gnu.org id=D46811.161442469812324 (code D ref 46811); Sat, 27 Feb 2021 11:19:02 +0000 Original-Received: (at 46811-done) by debbugs.gnu.org; 27 Feb 2021 11:18:18 +0000 Original-Received: from localhost ([127.0.0.1]:43224 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFxc2-0003Ch-4U for submit@debbugs.gnu.org; Sat, 27 Feb 2021 06:18:18 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36648) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lFxbz-0003CU-Sz for 46811-done@debbugs.gnu.org; Sat, 27 Feb 2021 06:18:16 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58199) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lFxbu-0000Js-NE; Sat, 27 Feb 2021 06:18:10 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2937 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lFxbt-0006d3-1I; Sat, 27 Feb 2021 06:18:09 -0500 In-Reply-To: (message from Anantha Kumaran on Sat, 27 Feb 2021 12:19:01 +0530) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:200934 Archived-At: > From: Anantha Kumaran > 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.