From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Constantin Kulikov Newsgroups: gmane.emacs.help Subject: Cancel enabling of minor-mode. Date: Wed, 27 Nov 2013 12:27:48 +0400 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1385540888 28674 80.91.229.3 (27 Nov 2013 08:28:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Nov 2013 08:28:08 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 27 09:28:14 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 1VlaTl-0004Nc-PD for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Nov 2013 09:28:13 +0100 Original-Received: from localhost ([::1]:34504 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlaTl-0005sb-8m for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Nov 2013 03:28:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58426) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlaTO-0005p3-Ls for help-gnu-emacs@gnu.org; Wed, 27 Nov 2013 03:27:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VlaTN-0000Ad-Fq for help-gnu-emacs@gnu.org; Wed, 27 Nov 2013 03:27:50 -0500 Original-Received: from mail-ie0-x22c.google.com ([2607:f8b0:4001:c03::22c]:43102) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlaTN-0000AV-Ak for help-gnu-emacs@gnu.org; Wed, 27 Nov 2013 03:27:49 -0500 Original-Received: by mail-ie0-f172.google.com with SMTP id qd12so11344056ieb.31 for ; Wed, 27 Nov 2013 00:27:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=nPiQMzA8v5mGkB7F7m+ruZmvVpCFQst2+bYz/vfki3U=; b=Y/nvgdqjUBz74ERnwPVMIqL6bghXi6FZA+56b22QJNHyM6iOZophgPTwXPrzdzL1Ib S4236yIhbsvURG6YZYXX242vsZfwaAj/pBRAm2BeqCKfsw7RFmpmyVKgpbdl8Xzuej/k BMzOPhXfuv32RGn6uppaP84tMVBJhF7rb6C3d023Ttq8KlIOgCqTDZjwmyQFbo2b5rNi +jrxe7XH3KxnrEkq6ArOdKqoXPEHDFy8INckFWeqJ7coD4zYOmV+8WGzMcbeZT/oAhmH L2V5E6Gwehw5mn3RHS6DrG4fHX3AmxDWWEEHRPtuhnwwuh5fnpnOcTkpqD8dy+88fyj0 uCIw== X-Received: by 10.43.60.139 with SMTP id ws11mr23314623icb.12.1385540868802; Wed, 27 Nov 2013 00:27:48 -0800 (PST) Original-Received: by 10.43.74.137 with HTTP; Wed, 27 Nov 2013 00:27:48 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c03::22c X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:94672 Archived-At: Can I somehow cancel enabling of my minor-mode? Example of what I want: (define-minor-mode test-mode "documentation" :init-value nil (if test-mode (if some-condition cancel enabling of test-mode. exit actions-when-enabling) actions-when-disabling))