emacs-devel
[Top][All Lists]
Advanced

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

Re: define-minor-mode question


From: Tim Cross
Subject: Re: define-minor-mode question
Date: Thu, 21 Apr 2022 10:26:53 +1000
User-agent: mu4e 1.7.13; emacs 28.1.50

Eli Zaretskii <eliz@gnu.org> writes:

>> 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.

It looks like ivy was not configured correctly. I've gone through the
setup and made some changes and now, starting the mode from ivy does not
generate that message and it looks like ivy does disable
extended-command-suggest-shorter provided you configure it correctly. 



reply via email to

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