emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: define-minor-mode question


From: Eli Zaretskii
Subject: Re: define-minor-mode question
Date: Wed, 20 Apr 2022 09:32:19 +0300

> From: Tim Cross <theophilusx@gmail.com>
> Date: Wed, 20 Apr 2022 14:15:39 +1000
> 
> 
> (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.

Why not?  What happens if you try?

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

There's the user option extended-command-suggest-shorter, which you
can customize to nil to suppress these suggestions.  It is a general
feature of M-x.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]