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#25428: 25.1; Incorrect doc string for `delete-selection-mode' Date: Thu, 12 Jan 2017 08:24:39 -0800 (PST) Message-ID: 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 1484239215 19785 195.159.176.226 (12 Jan 2017 16:40:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 12 Jan 2017 16:40:15 +0000 (UTC) To: 25428@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 12 17:40:09 2017 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 1cRiPv-0003yD-8d for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Jan 2017 17:39:59 +0100 Original-Received: from localhost ([::1]:35078 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRiPz-0003JZ-OK for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Jan 2017 11:40:03 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45475) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRiCV-0006kD-7e for bug-gnu-emacs@gnu.org; Thu, 12 Jan 2017 11:26:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cRiCQ-0000nJ-7G for bug-gnu-emacs@gnu.org; Thu, 12 Jan 2017 11:26:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36330) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cRiCQ-0000nD-4e for bug-gnu-emacs@gnu.org; Thu, 12 Jan 2017 11:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cRiCP-0001om-ST for bug-gnu-emacs@gnu.org; Thu, 12 Jan 2017 11:26:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Jan 2017 16:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 25428 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14842383046895 (code B ref -1); Thu, 12 Jan 2017 16:26:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Jan 2017 16:25:04 +0000 Original-Received: from localhost ([127.0.0.1]:51729 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cRiBT-0001n9-NI for submit@debbugs.gnu.org; Thu, 12 Jan 2017 11:25:03 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:54177) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cRiBQ-0001ma-2P for submit@debbugs.gnu.org; Thu, 12 Jan 2017 11:25:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cRiBJ-0007uA-53 for submit@debbugs.gnu.org; Thu, 12 Jan 2017 11:24:55 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:52684) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cRiBJ-0007tj-1P for submit@debbugs.gnu.org; Thu, 12 Jan 2017 11:24:53 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45122) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRiBH-0005bf-3Y for bug-gnu-emacs@gnu.org; Thu, 12 Jan 2017 11:24:52 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cRiBC-0007iH-4C for bug-gnu-emacs@gnu.org; Thu, 12 Jan 2017 11:24:51 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:33713) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cRiBB-0007bf-QV for bug-gnu-emacs@gnu.org; Thu, 12 Jan 2017 11:24:46 -0500 Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v0CGOg0j008626 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 12 Jan 2017 16:24:43 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id v0CGOfEX031778 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 12 Jan 2017 16:24:42 GMT Original-Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id v0CGOet4027984 for ; Thu, 12 Jan 2017 16:24:41 GMT X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 12.0.6753.5000 (x86)] X-Source-IP: userv0022.oracle.com [156.151.31.74] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:128036 Archived-At: The doc string says this: If called from Lisp, enable the mode if ARG is omitted or nil. That is completely wrong. This is an ordinary minor mode, defined using `define-minor-mode', whose doc string says this: When called from Lisp, the mode command toggles the mode if the argument is =E2=80=98toggle=E2=80=99, 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). E.g., `(delete-selection-mode t)' ENABLES the mode, even though the `delete-selection-mode' doc string says that it DISABLES it. In GNU Emacs 25.1.1 (x86_64-w64-mingw32) of 2016-09-17 built on LAPHROAIG Windowing system distributor 'Microsoft Corp.', version 6.1.7601 Configured using: 'configure --without-dbus --without-compress-install CFLAGS=3D-static'