From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#41727: 26.3; Doc of `define-minor-mode' and minor-mode commands Date: Mon, 08 Jun 2020 19:16:24 +0200 Message-ID: <87mu5dbhqv.fsf@web.de> 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="62229"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 41727@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 08 19:17:49 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 1jiLPB-000G5h-Qf for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 Jun 2020 19:17:49 +0200 Original-Received: from localhost ([::1]:43650 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jiLPA-0002Gc-JI for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 Jun 2020 13:17:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49190) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jiLOQ-0002G6-OD for bug-gnu-emacs@gnu.org; Mon, 08 Jun 2020 13:17:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46234) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jiLOP-0004u2-OF for bug-gnu-emacs@gnu.org; Mon, 08 Jun 2020 13:17:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jiLOP-000894-JX for bug-gnu-emacs@gnu.org; Mon, 08 Jun 2020 13:17:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 08 Jun 2020 17:17:01 +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.159163660431283 (code B ref 41727); Mon, 08 Jun 2020 17:17:01 +0000 Original-Received: (at 41727) by debbugs.gnu.org; 8 Jun 2020 17:16:44 +0000 Original-Received: from localhost ([127.0.0.1]:57780 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jiLO8-00088V-Hy for submit@debbugs.gnu.org; Mon, 08 Jun 2020 13:16:44 -0400 Original-Received: from mout.web.de ([212.227.15.14]:33223) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jiLO6-00088H-Sq for 41727@debbugs.gnu.org; Mon, 08 Jun 2020 13:16:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1591636585; bh=+uhOsHi92V6TFRg1Q/gxow6bm5ru4NAFFd0mDJHRYns=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=cz2vLaKxJR6jX/gbNF+jgLoyWpy5XFIohlF3mi5LHCl9/xKtN7BQb6TZpXkQDjZLS 81MTJrhjM/iz0BcIJHppcWY3YKZyTQFRmaEv0kraJwPNndL2hcdP8RWPaUoXfTPm7G rPL5e45KV6b5+2yVQ2+CY6GMrjevk1E7qmPV7EQs= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([94.217.119.187]) by smtp.web.de (mrweb004 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MVGow-1jRBXL0xyA-00Ym37; Mon, 08 Jun 2020 19:16:25 +0200 In-Reply-To: <30c91bcf-044c-4d93-8ca8-bd407d7bd6b0@default> (Drew Adams's message of "Sun, 7 Jun 2020 09:16:25 -0700 (PDT)") X-Provags-ID: V03:K1:V/PhtAbIRJsYVk0iqwj5ivZ2zyDsXupYfKK+xvQTOMDsFY9rv7s lDxtAseADkvvVUooHEhLalpKTGIrjJdD1GJFfCjT50Ix9lh7hbJaCXR3jldhTQrlTC29OHB YZJrKNOVQRXeX+hHyHT9U0gdcqjYNwu8agJssoRzC57FwJ5wdjTnpO1vORDNC3K+5M7CPDZ kkyLVKzBkZQ9b0PbbZCNw== X-UI-Out-Filterresults: notjunk:1;V03:K0:AAW9a4Kzczc=:OUSWHLtsYlWzeT7ju1I8DE qpfAfAJpr7Hj/R191F3o3kKAxExNgk4pI74jA94Sn6i5N4sQiKrW1LzzK2Om3FXWlvtU85Sw2 EpxtpjK4g06uQ1SKY9P2GXXQbzalOt3N8Az04yB3WJuUC/gRmOQTnNQsN4NKgrxdOi3WtVxJa uf8yH5fOnRA6PDGgg81tVVXbNXpHXg0mDUIZqKGfJc4NH0Wx05CDQn2gsi/40QV1rK5gkCH/4 uFputAiA+xbpG/FswKdYAmaKSmf4ut8udyHCuKgKC92TdIV4wC5vAScTF365vhxSknACjVTmU 6W00botFLjXHujpEc2oz8yLxNQZWBwj1PiFViyvq22yAycJEYvpLNpV2g2MLvogRHNHbm3IIZ Fk8RoGojVHF428Q/FeEEvhQKFx13TrhZM/Ys5CYH/UmFUApFvohVA6CMEXgZVnv+XTLZNMqpy dISAlQNfmecLkIG7khri+4J/PhLC8lXhTSCtBtmP8DdlfzP7c9vWd+5YDmO69MhCSM1QIPpty bYg6HRiuIMmAJmrxkoT8h06nXdGh5AlFrac6kHUHNmQVIedXzrbUGqbteKvN/34Amwyx1mKh1 nSiFk7UrWxewVpSa/o6kJNscNBUYsKv/jfqGNpU2AMowUL1NByxBFgB/z/q+uPs+YtnE5h9fv VZVrBz6UtNxWBIgi+Uk1FebaVOrTEXwpSv8fD/SuYaXbmCffll3aceQb2FtdbkRMX7mVoyMSw jlXYJAwMwzYYF4wkkRLBF+bubEafBDZqKZsvTjsK0BJagcOzsWY9MyKHo4KEyLtXJf1WRxq4 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:181740 Archived-At: Drew Adams writes: > 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. How about leaving only cases like ARG -> '- undocumented? When called from Lisp, the mode command toggles the mode if the argument 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. Good enough for daily business. And we are lucky: since an additional `prefix-numeric-value' doesn't harm (it's idempotent), it's not a problem if it's called on the arg before passing it to the mode function and by the mode function again. Michael.