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 #14 received at 79192 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Mattias Engdegård <mattias.engdegard <at> gmail.com>
Cc: 79192 <at> debbugs.gnu.org
Subject: Re: bug#79192: json parsing error position reform
Date: Thu, 07 Aug 2025 19:17:44 +0300
> From: Mattias Engdegård <mattias.engdegard <at> gmail.com>
> Date: Thu, 7 Aug 2025 17:43:26 +0200
> Cc: 79192 <at> debbugs.gnu.org
> 
> 7 aug. 2025 kl. 17.36 skrev Eli Zaretskii <eliz <at> gnu.org>:
> 
> > If we have the position, can we have the cake and eat it, too?  Would
> > it be possible to call some function in the case of an error that
> > would calculate the line and column from the position, and include
> > that in the error data?  That way, the performance will suffer only
> > when there is an error to report.
> 
> It would be completely useless busy-work in practice. Even if disabled by default, it's programming work done for something that makes nobody happy. Let's put our effort where it counts instead.

Sorry, I don't follow.  How is providing helpful data about the locus
of an error "useless"?




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.