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

From: Stefan Kangas <stefankangas <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Recommend against turn-on-<FOO>-mode functions
Date: Mon, 24 Feb 2025 16:34:23 -0600
Severity: wishlist

How about adding to tips.texi a recommendation not to add any new
functions like these?

    (defun turn-on-<FOO>-mode ()
      (<FOO>-mode 1))
    (defun turn-off-<FOO>-mode ()
      (<FOO>-mode -1))

I think they are redundant in almost all cases, but it seems to me that
they are sometimes added pretty much routinely.




This bug report was last modified 152 days ago.

Previous Next


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