all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Albert Heinle <albert.heinle@googlemail.com>
To: 34160@debbugs.gnu.org
Subject: bug#34160: json-pretty-print deletes everything after first JSON object
Date: Mon, 21 Jan 2019 12:46:35 -0500	[thread overview]
Message-ID: <CABOyWhcidWYNa+aEqFjtHd4TFrOf3Lx8PUHRy9ZvsCFtNPUJGQ@mail.gmail.com> (raw)

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

Dear Emacs-dev team,

I have observed the following behavior of the command json-pretty-print
(http://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/json.el#n740):

Write

{"a": 1}{"b": 2}

into any Emacs buffer. Then, mark the whole section and run M-x
json-pretty-print.
The line is afterwards altered as
{
  "a": 1
}

This means, that any string after the first completely parsed JSON-object
is being removed by this function. I would consider this unexpected,
because information gets lost after calling a function that is just
supposed to prettify things.

My Emacs version:
GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2017-09-20
on lcy01-07, modified by Debian

I also have an Arch-linux system at home where I could also reproduce this
behavior.

Let me know if you have any other questions.

Thank you very much,

Albert Heinle

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

             reply	other threads:[~2019-01-21 17:46 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-21 17:46 Albert Heinle [this message]
2019-07-09 18:41 ` bug#34160: json-pretty-print deletes everything after first JSON object Lars Ingebrigtsen
2019-07-10  8:53   ` Glenn Morris
2019-07-10 11:24     ` Lars Ingebrigtsen
2019-07-31  7:39 ` About commit bff64115a0ad081282e0f99305f41c8dd1917d67, bug#34160, json.el Tassilo Horn
2019-07-31 15:38   ` bug#34160: " Eli Zaretskii
2019-07-31 15:38   ` Eli Zaretskii
2019-07-31 18:40     ` Tassilo Horn
2019-07-31 18:40     ` Tassilo Horn
2019-07-31 18:48       ` Eli Zaretskii
2019-07-31 18:48       ` Eli Zaretskii
2019-07-31 18:41   ` Lars Ingebrigtsen
2019-07-31 19:30     ` Tassilo Horn
2019-07-31 20:21       ` Lars Ingebrigtsen
2019-08-01  4:54         ` Tassilo Horn
2019-08-01 11:11           ` Lars Ingebrigtsen
2019-08-01 12:16             ` Tassilo Horn
2019-08-02 16:16               ` Tassilo Horn
2019-08-02 16:16               ` Tassilo Horn
2019-08-01 12:16             ` Tassilo Horn
2019-08-01 11:11           ` Lars Ingebrigtsen
2019-08-01  4:54         ` Tassilo Horn
2019-07-31 20:21       ` Lars Ingebrigtsen
2019-07-31 19:30     ` Tassilo Horn
2019-07-31 18:41   ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CABOyWhcidWYNa+aEqFjtHd4TFrOf3Lx8PUHRy9ZvsCFtNPUJGQ@mail.gmail.com \
    --to=albert.heinle@googlemail.com \
    --cc=34160@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.