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#6337: 24.0.50; doc of define-minor-mode incomplete wrt mode hooks Date: Wed, 2 Jun 2010 17:03:30 -0700 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1275525091 26683 80.91.229.12 (3 Jun 2010 00:31:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 3 Jun 2010 00:31:31 +0000 (UTC) To: 6337@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 03 02:31:30 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OJyL2-0008ND-1j for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Jun 2010 02:31:28 +0200 Original-Received: from localhost ([127.0.0.1]:34502 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJyKv-0004QH-IF for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Jun 2010 20:31:05 -0400 Original-Received: from [140.186.70.92] (port=39633 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJyHq-0001zZ-IE for bug-gnu-emacs@gnu.org; Wed, 02 Jun 2010 20:28:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OJyHm-0007q5-67 for bug-gnu-emacs@gnu.org; Wed, 02 Jun 2010 20:27:51 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59415) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJyHm-0007q1-4m for bug-gnu-emacs@gnu.org; Wed, 02 Jun 2010 20:27:50 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OJxuj-0007PJ-Vq; Wed, 02 Jun 2010 20:04:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Jun 2010 00:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6337 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.127552342628463 (code B ref -1); Thu, 03 Jun 2010 00:04:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Jun 2010 00:03:46 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJxuT-0007P2-PP for submit@debbugs.gnu.org; Wed, 02 Jun 2010 20:03:46 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJxuS-0007Ou-Nm for submit@debbugs.gnu.org; Wed, 02 Jun 2010 20:03:45 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:55906) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OJxuO-00066m-RF for submit@debbugs.gnu.org; Wed, 02 Jun 2010 20:03:40 -0400 Original-Received: from [140.186.70.92] (port=43307 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJxuN-0006nI-C7 for bug-gnu-emacs@gnu.org; Wed, 02 Jun 2010 20:03:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OJxuK-0008CX-B5 for bug-gnu-emacs@gnu.org; Wed, 02 Jun 2010 20:03:39 -0400 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:38622) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJxuK-0008C6-5Q for bug-gnu-emacs@gnu.org; Wed, 02 Jun 2010 20:03:36 -0400 Original-Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o5303XE2026469 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 3 Jun 2010 00:03:34 GMT Original-Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o52NJ6WO015498 for ; Thu, 3 Jun 2010 00:03:33 GMT Original-Received: from abhmt005.oracle.com by acsmt353.oracle.com with ESMTP id 317706331275523411; Wed, 02 Jun 2010 17:03:31 -0700 Original-Received: from dradamslap1 (/141.144.80.77) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 02 Jun 2010 17:03:31 -0700 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcsCsDLGtC4V863XQc2Dm+pL8uap/Q== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 X-Auth-Type: Internal IP X-Source-IP: rcsinet13.oracle.com [148.87.113.125] X-CT-RefId: str=0001.0A090202.4C06F156.01FE:SCFMA4539811,ss=1,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 02 Jun 2010 20:04:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:37496 Archived-At: The doc for `define-minor-mode' is incomplete regarding the mode hooks, and it has apparently been like this since the beginning (Emacs 21). The doc (doc string and Elisp manual) speaks about the MODE-hook, where MODE is the name of the minor mode. But it does not mention that there is also a `MODE-on-hook' and a `MODE-off-hook'. That is, if you define those hook variables they to will be processed by the mode command. The exact behavior should be defined: The MODE-hook, if any, is run first, then the MODE-on-hook or MODE-off-hook is run, depending on whether the mode is being turned on or off. In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2010-05-23 on G41R2F1 Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/xpm/include'