From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#41727: 26.3; Doc of `define-minor-mode' and minor-mode commands Date: Sat, 06 Jun 2020 21:56:30 +0300 Message-ID: <838sh081lt.fsf@gnu.org> References: <963d4189-17dc-4f4e-9993-0335fa271e50@default> <83k10kafha.fsf@gnu.org> <9d7f8447-1c0b-46db-a40c-c1ed2a398c46@default> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="25890"; mail-complaints-to="usenet@ciao.gmane.io" 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 Sat Jun 06 20:57:09 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 1jhe0D-0006dG-Nk for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Jun 2020 20:57:09 +0200 Original-Received: from localhost ([::1]:58084 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jhe0C-0006NB-QR for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 06 Jun 2020 14:57:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35220) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jhe06-0006Mp-Uq for bug-gnu-emacs@gnu.org; Sat, 06 Jun 2020 14:57:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40922) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jhe06-0008MD-KH for bug-gnu-emacs@gnu.org; Sat, 06 Jun 2020 14:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jhe06-0001b5-J1 for bug-gnu-emacs@gnu.org; Sat, 06 Jun 2020 14:57: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: Sat, 06 Jun 2020 18:57: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.15914698066117 (code B ref 41727); Sat, 06 Jun 2020 18:57:02 +0000 Original-Received: (at 41727) by debbugs.gnu.org; 6 Jun 2020 18:56:46 +0000 Original-Received: from localhost ([127.0.0.1]:52468 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jhdzq-0001ab-6q for submit@debbugs.gnu.org; Sat, 06 Jun 2020 14:56:46 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55292) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jhdzo-0001aP-7s for 41727@debbugs.gnu.org; Sat, 06 Jun 2020 14:56:44 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36582) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jhdzi-0008Hs-QY; Sat, 06 Jun 2020 14:56:38 -0400 Original-Received: from [176.228.60.248] (port=3739 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jhdzh-0005As-I8; Sat, 06 Jun 2020 14:56:38 -0400 In-Reply-To: <9d7f8447-1c0b-46db-a40c-c1ed2a398c46@default> (message from Drew Adams on Sat, 6 Jun 2020 09:45:46 -0700 (PDT)) 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:181628 Archived-At: > Date: Sat, 6 Jun 2020 09:45:46 -0700 (PDT) > From: Drew Adams > Cc: 41727@debbugs.gnu.org > > > > The doc needs improvement when describing calling the mode from Lisp. > > > > > > 1. The doc string of `define-minor-mode' says this: > > > > > > 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 otherwise (including if > > > the argument is omitted or nil or a positive integer). > > > > It actually says this: > > Interactively with no prefix argument, it toggles the mode. > > A prefix argument enables the mode if the argument is positive, > > and disables it otherwise. > > > > > > Yes, and? The point was about what the doc says about > a call from Lisp. My point was that you take the text out of its context, and that context spells out what you say is missing. This is not the first time you raise this issue, and the argument always goes the same way. I wish you'd stopped these repeated complaints about the same thing. > > Are you reading obsolete docs? > > I'm reading the 26.3 docs, as suggested by the report: The latest sources seem to be different.