all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* define-minor-mode question
@ 2022-04-20  4:15 Tim Cross
  2022-04-20  6:32 ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Tim Cross @ 2022-04-20  4:15 UTC (permalink / raw)
  To: Emacs developers


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



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

end of thread, other threads:[~2022-04-21  0:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-20  4:15 define-minor-mode question Tim Cross
2022-04-20  6:32 ` Eli Zaretskii
2022-04-20  8:20   ` Tim Cross
2022-04-20  9:04     ` Eli Zaretskii
2022-04-21  0:26       ` Tim Cross

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.