GNU bug report logs - #48824
27.1; Symbol’s function definition is void: gnus-info-set-read

Previous Next

Packages: emacs, gnus;

Reported by: Ben Bacarisse <ben <at> bsb.me.uk>

Date: Fri, 4 Jun 2021 03:59:02 UTC

Severity: normal

Tags: wontfix

Found in version 27.1

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

Bug is archived. No further changes may be made.

Full log


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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Matthew Carter <m <at> ahungry.com>
Cc: 48824 <at> debbugs.gnu.org, Ben Bacarisse <ben <at> bsb.me.uk>
Subject: Re: bug#48824: 27.1; Symbol’s function
 definition is void: gnus-info-set-read
Date: Fri, 04 Jun 2021 11:55:46 +0200
Matthew Carter <m <at> ahungry.com> writes:

> Ben Bacarisse <ben <at> bsb.me.uk> writes:
>
>> After upgrading to 27.1 my Gnus home-grown backend fails with
>>
>>   Symbol’s function definition is void: gnus-info-set-read
>>
>> If I comment out the one use of this function I can start Gnus but, of
>> course, the maintenance of the read messages no longer works.
>>
>> The associated "getter" function (gnus-info-read) works, as does the
>> related "setter" function gnus-into-set-marks.
>
> Looks like this changed towards end of 2019 to swap from macros to
> inlined functions, and you can now use setf directly, vs a setter:
>
> https://git.savannah.gnu.org/cgit/emacs.git/tree/ChangeLog.3#n9403

Yes, the accessor macros should have been retained for backwards
compatibility (but marked as obsolete) to avoid breaking out-of-tree
code.

But that sail has shipped (since Emacs 27.1 was released without those
macros), so unfortunately all external code has to be adjusted to use
the new syntax.  Fortunately, that shouldn't be difficult -- just
rewrite calls like

(gnus-info-set-read info range)

to

(setf (gnus-info-read info) range)

There isn't going to be any further Emacs 27 releases, so we can't
reintroduce the removed setter macros, either, so I'm closing this bug
report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




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

Previous Next


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