From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#34160: About commit bff64115a0ad081282e0f99305f41c8dd1917d67, bug#34160, json.el Date: Wed, 31 Jul 2019 18:38:57 +0300 Message-ID: <837e7yi57y.fsf__13946.3626126357$1564587617$gmane$org@gnu.org> References: <87ef26ac17.fsf@gnu.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="191927"; mail-complaints-to="usenet@blaine.gmane.org" Cc: larsi@gnus.org, 34160@debbugs.gnu.org, emacs-devel@gnu.org To: Tassilo Horn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 31 17:40:12 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hsqi3-000noo-Oe for geb-bug-gnu-emacs@m.gmane.org; Wed, 31 Jul 2019 17:40:11 +0200 Original-Received: from localhost ([::1]:41892 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hsqi2-00064N-PP for geb-bug-gnu-emacs@m.gmane.org; Wed, 31 Jul 2019 11:40:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60494) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hsqhx-00061s-MM for bug-gnu-emacs@gnu.org; Wed, 31 Jul 2019 11:40:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hsqhw-0007yc-Pe for bug-gnu-emacs@gnu.org; Wed, 31 Jul 2019 11:40:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44106) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hsqhu-0007we-9K for bug-gnu-emacs@gnu.org; Wed, 31 Jul 2019 11:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hsqhu-0002wr-2d for bug-gnu-emacs@gnu.org; Wed, 31 Jul 2019 11:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 31 Jul 2019 15:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34160 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 34160-submit@debbugs.gnu.org id=B34160.156458755711254 (code B ref 34160); Wed, 31 Jul 2019 15:40:02 +0000 Original-Received: (at 34160) by debbugs.gnu.org; 31 Jul 2019 15:39:17 +0000 Original-Received: from localhost ([127.0.0.1]:52927 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hsqhA-0002vS-PV for submit@debbugs.gnu.org; Wed, 31 Jul 2019 11:39:17 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47921) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hsqh8-0002v8-8w for 34160@debbugs.gnu.org; Wed, 31 Jul 2019 11:39:14 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50488) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hsqh3-0007Ey-2n; Wed, 31 Jul 2019 11:39:09 -0400 Original-Received: from [176.228.60.248] (port=1990 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hsqh1-0002Va-Ti; Wed, 31 Jul 2019 11:39:08 -0400 In-reply-to: <87ef26ac17.fsf@gnu.org> (message from Tassilo Horn on Wed, 31 Jul 2019 09:39:00 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:164169 Archived-At: > From: Tassilo Horn > Date: Wed, 31 Jul 2019 09:39:00 +0200 > Cc: Lars Ingebrigtsen , 34160@debbugs.gnu.org > > Hi Lars, > > when fixing bug#34160 you've reverted my changes that made json pretty > printing use replace-region-contents. That had the major benefit that > pretty printing the JSON object at point didn't move point. I use that > many times a week on large JSON objects using the following command. > > --8<---------------cut here---------------start------------->8--- > (defun th/json-pretty-print-snippet-at-point (&optional minimize) > "Pretty-print the json snippet at point." > (interactive "P") > (save-excursion > (when-let ((beg (car (nth 9 (syntax-ppss))))) > (goto-char beg) > (forward-sexp) > (when (looking-back "\n" beg) > (backward-char)) > (json-pretty-print beg (point) minimize)))) > --8<---------------cut here---------------end--------------->8--- > > AFAICS, the problem in bug#34160 was not caused by my changes (the user > used Emacs 24 and not a 27 snapshot) so I see no justification for > removing my feature. > > Could you please reinstall the feature or describe why it is not > feasible to keep it? Oops, sorry about that. I think Lars is on vacation. If he doesn't respond in a day or two, I will revert the change until this issue is resolved.