From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#41727: 26.3; Doc of `define-minor-mode' and minor-mode commands Date: Mon, 8 Jun 2020 10:38:43 -0700 (PDT) Message-ID: <9a2f8463-42a6-4f0c-82d9-de15192fffe2@default> References: <963d4189-17dc-4f4e-9993-0335fa271e50@default> <83k10kafha.fsf@gnu.org> <9d7f8447-1c0b-46db-a40c-c1ed2a398c46@default> <838sh081lt.fsf@gnu.org>> <87wo4jb33s.fsf@web.de>> <83y2oz6j6x.fsf@gnu.org>> <30c91bcf-044c-4d93-8ca8-bd407d7bd6b0@default> <87mu5dbhqv.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="37278"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 41727@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 08 19:41:11 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jiLlm-0009cK-Q2 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 Jun 2020 19:41:10 +0200 Original-Received: from localhost ([::1]:43356 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jiLll-0006sZ-Iz for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 Jun 2020 13:41:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52188) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jiLle-0006sB-Nb for bug-gnu-emacs@gnu.org; Mon, 08 Jun 2020 13:41:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46283) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jiLle-0000sQ-Ef for bug-gnu-emacs@gnu.org; Mon, 08 Jun 2020 13:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jiLle-0000KB-Ck for bug-gnu-emacs@gnu.org; Mon, 08 Jun 2020 13:41: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: Mon, 08 Jun 2020 17:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41727 X-GNU-PR-Package: emacs Original-Received: via spool by 41727-submit@debbugs.gnu.org id=B41727.15916380551206 (code B ref 41727); Mon, 08 Jun 2020 17:41:02 +0000 Original-Received: (at 41727) by debbugs.gnu.org; 8 Jun 2020 17:40:55 +0000 Original-Received: from localhost ([127.0.0.1]:57815 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jiLlX-0000JN-0A for submit@debbugs.gnu.org; Mon, 08 Jun 2020 13:40:55 -0400 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:51158) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jiLlU-0000Ir-Rd for 41727@debbugs.gnu.org; Mon, 08 Jun 2020 13:40:53 -0400 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 058HWi35172838; Mon, 8 Jun 2020 17:40:47 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-2020-01-29; bh=YnCDp+zGqeLgvklMfUm3pgdPnHZJ5e4F+VQPxGHjE1s=; b=lvVD2l0ClrxwWEUEuyodxw3fSvmMKLWzm0y++oJfWIqWAyfbpS61bTrALJhaxWhaw+34 O5+SDU+1c9F9i+0Yru/h3FmqvjIyTNmYT/cnlxfA8GeS2vvqADvwtHt5cd5R+fEVc70Z XPigvTZw9K9uvq7ASi+WQ0KbR2IV/1/PQeuCtZegtj/KZ0vOwSLz02cE+J2sSKfPLCpz 6xNwStVQyxxhhlTh8YrKVlmKmM24VDoFEfCTF+YmfbVPSc0tzKx6vr8G1s/fEqPNUPqL j7SS/TUHI7NecHSgTJ93ff+sq3RNp5CCGSSNIuzaKSDt80Ob2ivyOqmpSzIZnaL1CWUV Tw== Original-Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by aserp2120.oracle.com with ESMTP id 31g33m05gf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 08 Jun 2020 17:40:46 +0000 Original-Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 058HYJTM055907; Mon, 8 Jun 2020 17:38:46 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserp3020.oracle.com with ESMTP id 31gn23eh7j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 08 Jun 2020 17:38:46 +0000 Original-Received: from abhmp0007.oracle.com (abhmp0007.oracle.com [141.146.116.13]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 058Hch6G028467; Mon, 8 Jun 2020 17:38:45 GMT In-Reply-To: <87mu5dbhqv.fsf@web.de> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5005.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9646 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 mlxscore=0 phishscore=0 adultscore=0 bulkscore=0 malwarescore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006080124 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9646 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 adultscore=0 spamscore=0 cotscore=-2147483648 malwarescore=0 phishscore=0 mlxscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 priorityscore=1501 mlxlogscore=999 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2006080124 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:181742 Archived-At: > > That's misleading enough to make me wonder whether, > > in that case, it might be better to say nothing at > > all about the call-from-Lisp case, forcing Lisp > > users to consult the code. >=20 > How about leaving only cases like ARG -> '- undocumented? >=20 > When called from Lisp, the mode command toggles the mode if the argumen= t > is `toggle', disables the mode if the argument is a non-positive > integer, and enables the mode if the argument is a positive integer or > omitted or nil. That's what we say now, and the reason I filed the bug. > Good enough for daily business. ... Not good enough for me. ;-) Consider a case where some command A invokes a minor-mode command B, to turn B on or off for some purpose/extent. Consider the case where A's prefix arg is passed to B, to do that. The programmer writing the Lisp code to define A should know that s?he can just pass the raw prefix arg. The resulting code will be simpler, easier to read, etc. I see no reason at all why we wouldn't provide an accurate (complete) description of what ARG is for Lisp use. What do we gain by not doing this right?