GNU bug report logs - #78125
29.3; Obsolete text-mode-variant used in elisp manual

Previous Next

Package: emacs;

Reported by: rossboylan <at> stanfordalumni.org

Date: Tue, 29 Apr 2025 02:23:02 UTC

Severity: normal

Found in version 29.3

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Ross Boylan <rossboylan <at> stanfordalumni.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 78125-done <at> debbugs.gnu.org
Subject: bug#78125: 29.3; Obsolete text-mode-variant used in elisp manual
Date: Tue, 29 Apr 2025 10:21:12 -0700
Thanks, Eli!
Ross

On Tue, Apr 29, 2025 at 12:13 AM Eli Zaretskii <eliz <at> gnu.org> wrote:
>
> > From: rossboylan <at> stanfordalumni.org
> > Date: Mon, 28 Apr 2025 18:15:31 -0700
> >
> >
> > >From emacs 29.3, open the Elisp info documentation.  That
> > documentation says it is for emacs 29.2.  The `Example Major Modes`
> > includes the code `(setq-local text-mode-variant t)`.
> >
> > I tried using some old code that included that command.  The result was
> >
> > .emacs:39:15: Warning: ‘text-mode-variant’ is an obsolete variable (as of
> >     27.1); use ‘derived-mode-p’ instead.
> >
> > So I think the example needs to be updated.
>
> Thanks.
>
> I updated the example on the emacs-30 branch, but note that the actual
> definition of text-mode still sets that variable, since we haven't
> removed it yet.
>
> > A secondary matter: naively following the error message would result in
> > this code: (setq-local derived-mode-p t), which I assume is a bad idea
> > and probably an error.
>
> Yes, you are supposed to look up the documentation of the replacement
> to figure out how to use it.  I made the text of the obsolescence
> message more clear in that regard.
>
> And with that, I'm closing this bug.




This bug report was last modified 16 days ago.

Previous Next


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