all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim Cross <theophilusx@gmail.com>
To: Emacs developers <emacs-devel@gnu.org>
Subject: define-minor-mode question
Date: Wed, 20 Apr 2022 14:15:39 +1000	[thread overview]
Message-ID: <87o80widob.fsf@gmail.com> (raw)


I'm working on a minor mode which I'm defining using the
define-minor-mode macro. All seems to be working fine except for one
small issue. 

The basic mode definition is


(define-minor-mode corgi-stateline-mode
  "Toggle corgi-stateline-mode."
  :init-value nil
  :global t
  (if (default-value 'corgi-stateline-mode)
      (corgi-stateline/turn-on)
    (corgi-stateline/turn-off)))
    

When I do M-x corgi-stateline-mode, I see two messages in the echo area.
The first tells me the mode is being enabled/disabled. The second says 

You can run the command 'corgi-stateline-mode' with M-x corg-m RET

This is the problematic message. First, I don't want that message, but
more importantly, it is wrong. You cannot run the command with M-x
corg-m.

Where is this message coming from and how do I disable it?

GNU Emacs 28.1.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.30,
cairo version 1.16.0) of 2022-04-15



             reply	other threads:[~2022-04-20  4:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-20  4:15 Tim Cross [this message]
2022-04-20  6:32 ` define-minor-mode question Eli Zaretskii
2022-04-20  8:20   ` Tim Cross
2022-04-20  9:04     ` Eli Zaretskii
2022-04-21  0:26       ` Tim Cross

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

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

  git send-email \
    --in-reply-to=87o80widob.fsf@gmail.com \
    --to=theophilusx@gmail.com \
    --cc=emacs-devel@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.
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.