From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tim Cross Newsgroups: gmane.emacs.devel Subject: Re: define-minor-mode question Date: Thu, 21 Apr 2022 10:26:53 +1000 Message-ID: <87pmlb8ej8.fsf@gmail.com> References: <87o80widob.fsf@gmail.com> <83lew0tgcs.fsf@gnu.org> <87bkww2ls8.fsf@gmail.com> <83bkwwt9bs.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40194"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.7.13; emacs 28.1.50 Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Apr 21 02:31:16 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nhKj6-000AIv-1q for ged-emacs-devel@m.gmane-mx.org; Thu, 21 Apr 2022 02:31:16 +0200 Original-Received: from localhost ([::1]:40948 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhKj5-0001oz-0v for ged-emacs-devel@m.gmane-mx.org; Wed, 20 Apr 2022 20:31:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34590) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhKhY-0000x3-IY for emacs-devel@gnu.org; Wed, 20 Apr 2022 20:29:40 -0400 Original-Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]:34744) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nhKhX-0007Zm-25; Wed, 20 Apr 2022 20:29:40 -0400 Original-Received: by mail-pj1-x1035.google.com with SMTP id d23-20020a17090a115700b001d2bde6c234so4435032pje.1; Wed, 20 Apr 2022 17:29:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:user-agent:from:to:cc:subject:date:in-reply-to :message-id:mime-version; bh=lEqWy4kjbB+BxitDrXkX9BPK5NnQH2bfHQdygHwMIk8=; b=YrFomEl9MUiR2PoxtllxOswSPa6yNDlkNVrB9qGkaM5v2r4gLnd1lbWMnviQ87w0g7 YwA7SkOamWs2THnmw9ntRhIQFLZ0862gdT3Me5v/Gc8m9dVYxbi8chSupi5sicicAjix KR9ZeJwsAKJ6r2rw24crJF6E/iBVgwV/H10PCWdEPqMRN3lwgL8CLO8h03cvWQYqBkVE nxfeu+kjIu64iJHzdTOXTk/1qjKOAEDNXymYWyi6RoRC/SNUi+1992aQNadpj2kJG14r DdOcfdQiblFKCgsqlB2MX+i8jwxxnABRmZO0YKw+kpIyjxIV+vyXoKlKKfIGUzNWDB8O IpNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:references:user-agent:from:to:cc:subject:date :in-reply-to:message-id:mime-version; bh=lEqWy4kjbB+BxitDrXkX9BPK5NnQH2bfHQdygHwMIk8=; b=uxhTzoDz4yAVc/Otoy4IlC1Dh2kZrozknXHmOSYL+hUTEoJX6POrdk/DjWaNjUHzDW PflMwai+nwm70FRscJpKojde5Z8s4w+WM7dVGJojHFIiOO2wKUSBrF0SLOiTpefPxNr9 rb4M/puASgZZ9QZ/YN7e3Qz7C96TWAKQt3wvmsYmN+2QO8rz8XNDtRl1+SFZu6NyNidV TGDPDuT30bUsxQZuRefazZ7I1zWfboxI1/24lRbm6EwphlL1unt2ekwTvj3wbu4i5Zyf o6pjMQ5QdcBCV4Rm9ejwILPTS7mhtb60V3Z9cPhEo0gUlPMsURkdFaj82P7SNnQKeYa3 zgPA== X-Gm-Message-State: AOAM532Vst9NkchkgwNVl9NZ/4J6IGakdRojJfRQNNn7pVsa5sobdi3l KuEXb7frxKHB09SUt0QAbppQg3fO9oc= X-Google-Smtp-Source: ABdhPJwKRDh77y1qYNSH49PpLImQ/ltGJaIr6Go4lzxQIN55hgWG/a2IIad6qSiHF/Vb+czqHX/mkA== X-Received: by 2002:a17:90b:1e10:b0:1ce:8478:ea09 with SMTP id pg16-20020a17090b1e1000b001ce8478ea09mr7460664pjb.134.1650500976906; Wed, 20 Apr 2022 17:29:36 -0700 (PDT) Original-Received: from dingbat (220-235-29-41.dyn.iinet.net.au. [220.235.29.41]) by smtp.gmail.com with ESMTPSA id s3-20020a056a00194300b004f6da3a1a3bsm9070361pfk.8.2022.04.20.17.29.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Apr 2022 17:29:35 -0700 (PDT) In-reply-to: <83bkwwt9bs.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::1035; envelope-from=theophilusx@gmail.com; helo=mail-pj1-x1035.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:288731 Archived-At: Eli Zaretskii writes: >> From: Tim Cross >> 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.