From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#21709: 25.0.50; doc of :variable in `define-minor-mode' Date: Mon, 19 Oct 2015 08:14:57 -0700 (PDT) Message-ID: <131df705-9c27-4cb5-940e-755ea2635031@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1445268294 24660 80.91.229.3 (19 Oct 2015 15:24:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 Oct 2015 15:24:54 +0000 (UTC) To: 21709@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 19 17:24:40 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZoCIi-0002oh-97 for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Oct 2015 17:24:40 +0200 Original-Received: from localhost ([::1]:40150 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoCIh-0000Vp-Fx for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Oct 2015 11:24:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43747) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoCAP-0005gl-Fe for bug-gnu-emacs@gnu.org; Mon, 19 Oct 2015 11:16:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZoCAM-0003zt-GW for bug-gnu-emacs@gnu.org; Mon, 19 Oct 2015 11:16:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37941) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoCAM-0003zo-Cn for bug-gnu-emacs@gnu.org; Mon, 19 Oct 2015 11:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZoCAL-0001g9-SE for bug-gnu-emacs@gnu.org; Mon, 19 Oct 2015 11:16:01 -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, 19 Oct 2015 15:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21709 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.14452677106381 (code B ref -1); Mon, 19 Oct 2015 15:16:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Oct 2015 15:15:10 +0000 Original-Received: from localhost ([127.0.0.1]:56879 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZoC9W-0001er-62 for submit@debbugs.gnu.org; Mon, 19 Oct 2015 11:15:10 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33311) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZoC9T-0001eh-HG for submit@debbugs.gnu.org; Mon, 19 Oct 2015 11:15:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZoC9S-0003j3-GV for submit@debbugs.gnu.org; Mon, 19 Oct 2015 11:15:07 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:43515) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoC9S-0003iy-EL for submit@debbugs.gnu.org; Mon, 19 Oct 2015 11:15:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43306) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoC9R-0004JM-Gv for bug-gnu-emacs@gnu.org; Mon, 19 Oct 2015 11:15:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZoC9O-0003ei-OT for bug-gnu-emacs@gnu.org; Mon, 19 Oct 2015 11:15:05 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:38938) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoC9O-0003eJ-IB for bug-gnu-emacs@gnu.org; Mon, 19 Oct 2015 11:15:02 -0400 Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t9JFF0Sb002940 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 19 Oct 2015 15:15:01 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0022.oracle.com (8.13.8/8.13.8) with ESMTP id t9JFF0Uw009079 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Mon, 19 Oct 2015 15:15:00 GMT Original-Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by userv0121.oracle.com (8.13.8/8.13.8) with ESMTP id t9JFEwnj016064 for ; Mon, 19 Oct 2015 15:14:59 GMT X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] X-Source-IP: aserv0022.oracle.com [141.146.126.234] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:107761 Archived-At: The doc is unclear - both the doc string and (elisp) `Defining Minor Modes'. Specifically, the part about PLACE being (GET . SET). PLACE can also be of the form (GET . SET), where GET is an expression that returns the current state, and SET is a function that takes one argument, the new state, and sets it. PLACE can also be a cons '(GET . SET)', where GET is an expression that returns the current state, and SET is a function of one argument (a state) that sets it. Surely the function does not "set" a "state". It might set the variable to a new value (but it does not "set" the value). What is the function argument? A "state"? What does that mean? State of what? What form does this "state" take? What does it do? My guess is that the doc should says something like this: The argument is the new variable value, which is assigned to PLACE. Presumably, "state" should be replaced by "value" everywhere, here. But that's just a guess. In GNU Emacs 25.0.50.1 (i686-pc-mingw32) of 2015-10-09 Bzr revision: af45926d66d303fdc4c2c3ebbc820b4a54d9e4a0 Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --host=3Di686-pc-mingw32 --enable-checking=3Dyes,glyphs'