GNU bug report logs - #79192
json parsing error position reform

Previous Next

Package: emacs;

Reported by: Mattias EngdegÄrd <mattias.engdegard <at> gmail.com>

Date: Thu, 7 Aug 2025 15:21:01 UTC

Severity: normal

Full log


Message #29 received at 79192 <at> debbugs.gnu.org (full text, mbox):

From: Mattias EngdegÄrd <mattias.engdegard <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Dmitry Gutov <dmitry <at> gutov.dev>, Ship Mints <shipmints <at> gmail.com>,
 79192 <at> debbugs.gnu.org
Subject: Re: bug#79192: json parsing error position reform
Date: Sat, 9 Aug 2025 16:08:12 +0200
7 aug. 2025 kl. 20.22 skrev Eli Zaretskii <eliz <at> gnu.org>:

> Every tool that reports errors or hits shows line numbers, and
> sometimes also column numbers.  So it looks like a reasonable thing to
> expect.

But the json parser isn't a tool, it's a low-level primitive that can be used to make tools.
Having it produce line and column numbers makes as much sense as doing that from `re-search-forward`.
Or, if you prefer, from one of our two (three?) XML parser APIs. It just not how APIs are designed.





This bug report was last modified 7 days ago.

Previous Next


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