From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Constantin Kulikov Newsgroups: gmane.emacs.devel Subject: Re: Cancel enabling of minor-mode. Date: Thu, 28 Nov 2013 21:13:25 +0400 Message-ID: References: <87li08u366.fsf@yahoo.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e01160edcde48fb04ec3fd495 X-Trace: ger.gmane.org 1385658812 30831 80.91.229.3 (28 Nov 2013 17:13:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Nov 2013 17:13:32 +0000 (UTC) To: Stefan Monnier , emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Nov 28 18:13:38 2013 Return-path: Envelope-to: ged-emacs-devel@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 1Vm59g-0004ef-Ir for ged-emacs-devel@m.gmane.org; Thu, 28 Nov 2013 18:13:32 +0100 Original-Received: from localhost ([::1]:43212 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vm59g-0004oQ-2T for ged-emacs-devel@m.gmane.org; Thu, 28 Nov 2013 12:13:32 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33904) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vm59b-0004l0-8v for emacs-devel@gnu.org; Thu, 28 Nov 2013 12:13:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vm59a-0001uK-4K for emacs-devel@gnu.org; Thu, 28 Nov 2013 12:13:27 -0500 Original-Received: from mail-ie0-x233.google.com ([2607:f8b0:4001:c03::233]:54160) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vm59Z-0001u9-WB for emacs-devel@gnu.org; Thu, 28 Nov 2013 12:13:26 -0500 Original-Received: by mail-ie0-f179.google.com with SMTP id x13so14172368ief.24 for ; Thu, 28 Nov 2013 09:13:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=wkyLG2NTfgIyxxN4UqPJwwuC0xm5WuSM4vp5awGp+SU=; b=YR1BJs9numf4B8f1IIW6ue1JMfPsnLkUFFygntC8dyoizH9FxLod7qVoSgkDnYZuS3 E9KmfYfj4vFSI8iRIDUfZX2KrJlE/J3m590q2QPfMW+wiFs+Xe67NkgEV0xJrLXfNQ+Y g2IJ7roU2F+LXR3PxhPM3/CpsFoKeug0aPmKBU/I7omnBJV4/n7Lf8T9NdldbeM7YNOP KoyJhzINutGd5NoSsb9j1Xe7eI49bmdT+ZFdMp9yxMsvyaRi/nJLZ0QBOtyNDvYWpoQ/ s9ICYyXr9po0XlHDiI3KjBNRTQZzhOya4SgEdLhgcUO78I3AGUw+EMjYUD2MWPU23gUR GiyA== X-Received: by 10.50.73.130 with SMTP id l2mr2980397igv.2.1385658805272; Thu, 28 Nov 2013 09:13:25 -0800 (PST) Original-Received: by 10.43.74.137 with HTTP; Thu, 28 Nov 2013 09:13:25 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c03::233 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:165836 Archived-At: --089e01160edcde48fb04ec3fd495 Content-Type: text/plain; charset=UTF-8 > it depends on your definition of "canceling" As for me the (setq test-mode nil) works as I want. Thanks. // But also it would be nice if I can avoid running hooks. On 28 November 2013 19:06, Stefan Monnier wrote: > > IIUC, it will still run any hook associated with the mode like for any > > mode change (+ show the message "Test mode disabled"). Not too bad, but > > not exactly like cancelling either. > > I guess it depends on your definition of "canceling". > > > Stefan > > --089e01160edcde48fb04ec3fd495 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
> it depends on your definition of "canceling= "
As for me the (setq test-mode nil) works as I want. Thanks.
// But also it would be nice if I can avoid running hooks.



On 28 N= ovember 2013 19:06, Stefan Monnier <monnier@iro.umontreal.ca>= ; wrote:
> IIUC, it will still r= un any hook associated with the mode like for any
> mode change (+ show the message "Test mode disabled"). Not t= oo bad, but
> not exactly like cancelling either.

I guess it depends on your definition of "canceling".


=C2=A0 =C2=A0 =C2=A0 =C2=A0 Stefan


--089e01160edcde48fb04ec3fd495--