From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xue Fuqiao Newsgroups: gmane.emacs.help Subject: About the `:variable' keyword in `define-minor-mode' Date: Thu, 14 Feb 2013 22:37:35 +0800 Organization: The Church of Emacs Message-ID: <20130214223735.edcdea25b5a4ed018be3baca@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1360852691 13004 80.91.229.3 (14 Feb 2013 14:38:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Feb 2013 14:38:11 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 14 15:38:33 2013 Return-path: Envelope-to: geh-help-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 1U5zxF-0008PF-GQ for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Feb 2013 15:38:29 +0100 Original-Received: from localhost ([::1]:35177 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5zws-0008N6-R8 for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Feb 2013 09:38:06 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:41135) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5zwg-0008ML-KT for help-gnu-emacs@gnu.org; Thu, 14 Feb 2013 09:38:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U5zwZ-000359-UY for help-gnu-emacs@gnu.org; Thu, 14 Feb 2013 09:37:54 -0500 Original-Received: from mail-pb0-f53.google.com ([209.85.160.53]:40135) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U5zwZ-00034F-O2 for help-gnu-emacs@gnu.org; Thu, 14 Feb 2013 09:37:47 -0500 Original-Received: by mail-pb0-f53.google.com with SMTP id un1so184382pbc.12 for ; Thu, 14 Feb 2013 06:37:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:date:from:to:subject:message-id:organization:x-mailer :mime-version:content-type:content-transfer-encoding; bh=JdPnk0soiSXAopa/b9xZONTITfwIIWIGxf7M8e5Rs5Y=; b=izn8YHD8vvoaR5ebnT7NP9oXMh1C5FlStzAyXfHMmWFWDAxdc8qnkav0SzeWWYlJsK 1eL6GnRAK0WsaimvhVzr8TMWjtBGWe6W3K/dCKyunMZL45ZaOqFTpO/GG52YD7AayoIR XX00T8Dc8J7eb6AKrv2QJ1YNnGnyzCjTbXFAe4tkV6tCp+D/+5nqP2RMatZ+F/mW9MUn yb9UytYSfnpoATSwOucikjAYVhYw4SrWbdlPBCns4mNfVVDDJcrt79/8X8OXswgLVdiM PJ6gys2a+fFIbQh54xvJLjUtXXgloMB/B3nhhfjLDDlJcPKUjg4vDikh1PaL5105I85L xy4A== X-Received: by 10.66.80.70 with SMTP id p6mr4570378pax.23.1360852666722; Thu, 14 Feb 2013 06:37:46 -0800 (PST) Original-Received: from Emacs ([49.118.21.177]) by mx.google.com with ESMTPS id gg7sm1481867pbc.45.2013.02.14.06.37.44 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 14 Feb 2013 06:37:46 -0800 (PST) X-Mailer: Sylpheed 3.2.0 (GTK+ 2.24.13; x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.160.53 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:89097 Archived-At: In the docstring of `define-minor-mode': [...] :variable PLACE [...] 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. I don't understand the meaning of GET. The docstring says it returns the current state, but where will it return? -- Best regards, Xue Fuqiao. http://www.emacswiki.org/emacs/XueFuqiao