all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Cancel enabling of minor-mode.
@ 2013-11-27  8:27 Constantin Kulikov
  2013-11-27 20:53 ` Stefan Monnier
  0 siblings, 1 reply; 7+ messages in thread
From: Constantin Kulikov @ 2013-11-27  8:27 UTC (permalink / raw)
  To: help-gnu-emacs

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))


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-11-28 17:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-27  8:27 Cancel enabling of minor-mode Constantin Kulikov
2013-11-27 20:53 ` Stefan Monnier
2013-11-28 12:22   ` Nicolas Richard
2013-11-28 15:06     ` Stefan Monnier
2013-11-28 17:13       ` Constantin Kulikov
2013-11-28 17:17         ` Constantin Kulikov
2013-11-28 17:22         ` Constantin Kulikov

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.