unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Matthias Dahl <ml_emacs-lists@binary-island.eu>
To: Drew Adams <drew.adams@oracle.com>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: conditionally enabling a mode in define-minor-mode context
Date: Tue, 13 May 2014 17:14:37 +0200	[thread overview]
Message-ID: <537236DD.5000705@binary-island.eu> (raw)
In-Reply-To: <32b5873c-d585-4b25-a81c-94fc2c0648e2@default>

Hello Drew...

Thanks for taking the time. :)

> Without thinking much about it, I'm guessing you could define two minor
> modes, one of which you turn on everywhere and which controls the
> conditional enabling of the other.  Again, just a thought, without
> reflection - ignore if not helpful.

Hm... interesting. Never thought about that. Meanwhile I was thinking
about just doing everything manually instead of using the macro to
define a minor mode. This would give me the freedom to do what I want.

But having a "sentinel" minor mode that just checks and conditionally
activates the "real" minor mode, is also an interesting concept. I'll
need to think this through. Thanks.

The only reason for all of this: I want to make it as easy as possible
for users to use this minor mode w/o spending time fiddling with it and
w/o non-working key bindings (...) because the mode is in a "not working
with this buffer" state.

So long,
Matthias

-- 
Dipl.-Inf. (FH) Matthias Dahl | Software Engineer | binary-island.eu
 services: custom software [desktop, mobile, web], server administration



      reply	other threads:[~2014-05-13 15:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-11  8:50 conditionally enabling a mode in define-minor-mode context Matthias Dahl
2014-05-11 19:30 ` Drew Adams
2014-05-13 15:14   ` Matthias Dahl [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=537236DD.5000705@binary-island.eu \
    --to=ml_emacs-lists@binary-island.eu \
    --cc=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).