[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 12:04:07 +0300 |
> From: Tim Cross <theophilusx@gmail.com>
> Cc: emacs-devel@gnu.org
> Date: Wed, 20 Apr 2022 18:20:57 +1000
>
> >> 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?
> >
>
> When I tired it, it didn't work. The command was not found. I also tried
> C-h f, which also failed.
>
> After your reply, I dug a little deeper and now suspect this is an issue
> with ivy. I don't normally use ivy, but the project I'm contributing to
> does, so I was using their default setup. If I define the mode in a
> clean (emacs -q) environment, the shorthand version works. I'm guesssing
> that whatever Emacs uses to generate the shorthand name isn't being
> picked up by ivy. I don't know if this is an ivy limitation or an ivy
> configuration error at this point.
Sounds like a subtle misfeature in ivy? At the very least, ivy should
disable extended-command-suggest-shorter, to avoid misleading users.