GNU bug report logs - #49660
28.0.50; json-available-p should exist

Previous Next

Package: emacs;

Reported by: Lars Ingebrigtsen <larsi <at> gnus.org>

Date: Tue, 20 Jul 2021 12:54:01 UTC

Severity: normal

Found in version 28.0.50

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 49660 <at> debbugs.gnu.org
Subject: Re: bug#49660: 28.0.50; json-available-p should exist
Date: Tue, 20 Jul 2021 18:45:22 +0300
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Cc: 49660 <at> debbugs.gnu.org
> Date: Tue, 20 Jul 2021 16:47:13 +0200
> 
> Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> 
> > Yeah, I guess there's really no other cleanish way to do this? 
> 
> Oh, I thought of a simple hack: We could define json-available-p in
> json.c, but we could also have (say) loadup.el check whether it's
> defined, and if not, it can define a nil-returning stub?  That'll mean a
> whole lot less #ifdef-ing in json.c.

If you are ready to define json-available-p somewhere other than
json.c, then you could simply do that in subr.el or somesuch.  It
would be cleaner than defining stubs in loadup.el.




This bug report was last modified 3 years and 307 days ago.

Previous Next


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