GNU bug report logs - #76535
Recommend against turn-on-<FOO>-mode functions

Previous Next

Package: emacs;

Reported by: Stefan Kangas <stefankangas <at> gmail.com>

Date: Mon, 24 Feb 2025 22:35:02 UTC

Severity: wishlist

Full log


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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: Stefan Kangas <stefankangas <at> gmail.com>,
 "76535 <at> debbugs.gnu.org" <76535 <at> debbugs.gnu.org>
Subject: Re: [External] : bug#76535: Recommend against turn-on-<FOO>-mode
 functions
Date: Mon, 24 Feb 2025 23:23:02 -0500
> They aren't redundant for global minor modes created using
> `define-global-minor-mode' and `define-globalized-minor-mode',
> AFAIK.  Arg TURN-ON is a required argument.
>
>   TURN-ON is a function that will be called with no args in every buffer
>   and that should try to turn MODE on if applicable for that buffer.

Just because the arg is called "TURN-ON" doesn't mean it needs to take
an argument called `turn-on-FOO-mode` nor that it should behave the same
as `turn-on-FOO-mode`.


        Stefan





This bug report was last modified 151 days ago.

Previous Next


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