> 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 <monnier@iro.umontreal.ca> 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