From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#32643: 26; minor-mode variables Date: Thu, 06 Sep 2018 17:33:51 +0300 Message-ID: <83sh2mwv8w.fsf@gnu.org> References: <3ce888af-aa04-4dd2-99b5-0882e37024f3@default> <494224f1-815f-4fb4-a779-75e243b519f0@default> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1536244388 17261 195.159.176.226 (6 Sep 2018 14:33:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 6 Sep 2018 14:33:08 +0000 (UTC) Cc: rms@gnu.org, 32643@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 06 16:33:04 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fxvLD-0004Ls-Vv for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Sep 2018 16:33:04 +0200 Original-Received: from localhost ([::1]:33999 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxvNJ-0000AT-OR for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Sep 2018 10:35:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60957) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxvND-00007p-94 for bug-gnu-emacs@gnu.org; Thu, 06 Sep 2018 10:35:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fxvN9-0008VC-Uh for bug-gnu-emacs@gnu.org; Thu, 06 Sep 2018 10:35:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43233) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fxvN8-0008MQ-9B for bug-gnu-emacs@gnu.org; Thu, 06 Sep 2018 10:35:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fxvN8-0007EE-4p for bug-gnu-emacs@gnu.org; Thu, 06 Sep 2018 10:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Sep 2018 14:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32643 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32643-submit@debbugs.gnu.org id=B32643.153624445227723 (code B ref 32643); Thu, 06 Sep 2018 14:35:02 +0000 Original-Received: (at 32643) by debbugs.gnu.org; 6 Sep 2018 14:34:12 +0000 Original-Received: from localhost ([127.0.0.1]:48251 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fxvMJ-0007D5-VU for submit@debbugs.gnu.org; Thu, 06 Sep 2018 10:34:12 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39540) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fxvME-0007Cc-Tw for 32643@debbugs.gnu.org; Thu, 06 Sep 2018 10:34:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fxvM6-0005Ua-JH for 32643@debbugs.gnu.org; Thu, 06 Sep 2018 10:34:01 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43879) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxvM6-0005U9-F6; Thu, 06 Sep 2018 10:33:58 -0400 Original-Received: from [176.228.60.248] (port=4710 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fxvM0-0002Rq-6f; Thu, 06 Sep 2018 10:33:52 -0400 In-reply-to: <494224f1-815f-4fb4-a779-75e243b519f0@default> (message from Drew Adams on Thu, 6 Sep 2018 07:18:45 -0700 (PDT)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:150080 Archived-At: > Date: Thu, 6 Sep 2018 07:18:45 -0700 (PDT) > From: Drew Adams > Cc: 32643@debbugs.gnu.org > > But the real point of the bug report is that we _do_ say that a > minor mode should have (and set) a mode variable: > > Define a variable whose name ends in '-mode'. We call this the > "mode variable". The minor mode command should set this > variable. > > And that "should" is not respected by some variables from basic > Emacs itself - in particular `auto-fill-mode'. Shouldn't it be? FWIW, I see no need to demand 100% consistency here. > Nothing requires everything in the Emacs distribution to respect > each convention that Emacs sets forth. But is there a reason why > `auto-fill-mode' (and others?) should not respect this convention? > If nothing else, I'm curious why the exception(s). Most probably, historical accidents. But even finding that out is a non-trivial amount of work. > (The bug report also asks whether it's a bug for a mode not to have > a variable, and suggests that it is. And if it's not, the report asks that > the Elisp manual give some guidance about when a mode should > not or need not have a variable.) I think the manual already does what you want, it just doesn't say this is a bug (because it isn't, IMO).