From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#32643: 26; minor-mode variables Date: Thu, 6 Sep 2018 07:18:45 -0700 (PDT) Message-ID: <494224f1-815f-4fb4-a779-75e243b519f0@default> References: <3ce888af-aa04-4dd2-99b5-0882e37024f3@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1536243455 11637 195.159.176.226 (6 Sep 2018 14:17:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 6 Sep 2018 14:17:35 +0000 (UTC) Cc: 32643@debbugs.gnu.org To: rms@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 06 16:17:31 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 1fxv6A-0002xJ-Nw for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Sep 2018 16:17:30 +0200 Original-Received: from localhost ([::1]:33876 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxv8H-0006mg-0P for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Sep 2018 10:19:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54102) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxv7l-0006Zc-Py for bug-gnu-emacs@gnu.org; Thu, 06 Sep 2018 10:19:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fxv7f-00075e-6a for bug-gnu-emacs@gnu.org; Thu, 06 Sep 2018 10:19:09 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:43228) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fxv7f-00075C-1G for bug-gnu-emacs@gnu.org; Thu, 06 Sep 2018 10:19:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fxv7e-0006qO-I9 for bug-gnu-emacs@gnu.org; Thu, 06 Sep 2018 10:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Sep 2018 14:19: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.153624353626291 (code B ref 32643); Thu, 06 Sep 2018 14:19:02 +0000 Original-Received: (at 32643) by debbugs.gnu.org; 6 Sep 2018 14:18:56 +0000 Original-Received: from localhost ([127.0.0.1]:48246 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fxv7Y-0006py-Gv for submit@debbugs.gnu.org; Thu, 06 Sep 2018 10:18:56 -0400 Original-Received: from userp2130.oracle.com ([156.151.31.86]:40618) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fxv7W-0006pl-FC for 32643@debbugs.gnu.org; Thu, 06 Sep 2018 10:18:55 -0400 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w86EEKV7110146; Thu, 6 Sep 2018 14:18:48 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=O3qOw5s/zW7VW52qW5YUa9hapW/XjXFibdX41rOcPzw=; b=AIk0N2HUTZPPIO7BHZRmLoelhyTaXxzeC5vo1K4kfmBJXGKU29pQefo0iP/CFva1ZPoL YGDT403ENRpUqag1X1V+TCZYkT59vLXx++9J/AtZugF9qTXuX9hCBHgqe1GOfCFz03ob o2D7kW8wJEzVtbJg2PW6x8Hi+bIGqcNQYJLn5S4LwRcBb1Y56oeQplgUyaTr8knTAYal 8fQyTiEEvi92tA2QQuunSbttecj6OqUHmHBIgVyioGF8rCym1Rg8Foeto5UJqpbkrROO yfC4RpvjyVdYkdv2rS2ypoo7T/X2uLPF2+fgJ3B20iO80zfdvWKedQNgvjSmxU6AhfWA BA== Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2130.oracle.com with ESMTP id 2m7j6tvexd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 06 Sep 2018 14:18:48 +0000 Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w86EIkfS004091 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 6 Sep 2018 14:18:47 GMT Original-Received: from abhmp0016.oracle.com (abhmp0016.oracle.com [141.146.116.22]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w86EIkjU031913; Thu, 6 Sep 2018 14:18:46 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4732.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9007 signatures=668708 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=837 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809060142 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:150079 Archived-At: > > It doesn't say why some do and some don't. Why doesn't it? What's t= he > > answer to that question? For example, why doesn't variable > > `auto-fill-mode' exist? Shouldn't all minor modes have a variable? > > Which ones should? >=20 > It is not crucial for the manual to answer "why" questions. > If this one were easy to answer, it could be worth answering. > But in fact this one would be a lot of work. I get that you replied only about that intro paragraph. And no, it's not "crucial" to explain "why" about everything. Far from it. And I guess you're only speaking against any blanket requirement to explain "why" everywhere, and not against a request that `auto-fill-mode' have a variable etc. 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? 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). (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.)