From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" Newsgroups: gmane.emacs.devel Subject: Re: Smarter M-x that filters on major-mode Date: Fri, 12 Feb 2021 17:56:48 +0000 Message-ID: <87lfbtp3tr.fsf@tcd.ie> References: <8ed9b43502ae1480e06b@heytings.org> <83r1lohqoc.fsf@gnu.org> <87wnvfenry.fsf@gnus.org> <87r1llqlyw.fsf@tcd.ie> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25723"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: bugs@gnu.support, "Alfred M. Szmidt" , emacs-devel@gnu.org, gregory@heytings.org, Matt Armstrong , Lars Ingebrigtsen , Eli Zaretskii To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Feb 12 19:04:19 2021 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 1lAcnj-0006am-3e for ged-emacs-devel@m.gmane-mx.org; Fri, 12 Feb 2021 19:04:19 +0100 Original-Received: from localhost ([::1]:41282 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lAcni-0001fn-41 for ged-emacs-devel@m.gmane-mx.org; Fri, 12 Feb 2021 13:04:18 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54560) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAcgZ-0005Po-MT for emacs-devel@gnu.org; Fri, 12 Feb 2021 12:56:55 -0500 Original-Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]:32993) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lAcgW-00041w-C9 for emacs-devel@gnu.org; Fri, 12 Feb 2021 12:56:55 -0500 Original-Received: by mail-wr1-x434.google.com with SMTP id 7so247666wrz.0 for ; Fri, 12 Feb 2021 09:56:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=VxVT4k75hI/Oxco07HRnQ1xXQWTz96sxAzffJpEbX70=; b=fpzP3wIIwKP12dlFg9/MdX2EsdVivx2cGr6+mq+syXPTZ1V6CbreYDm3pRA2847hin 4tLvPImrr6EEgcwMj1rDDQJF8ksqlr9JXH6Bw57NvIIxddFZv4SBNJfUiR+/iWErYjF/ aVm5LcYI0XIvdU2UoKLicxcjT9EOoCatjfgFO4HhI/RdbH3cvBKqlMhpiziqVi79Cmex H9jCzGFHKqPnZqo73Gey1n9/Ski0GoLs7MEXIU3LvnfuncD/CdXNk7PKuGnIQtdl8WyH YsZUaM5uBdnmcOb3KBlwuLYei5Wfa+Qzuo99aaAV3bep+bIzCj5ja6aucc5PUb1OjNEP V4mA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=VxVT4k75hI/Oxco07HRnQ1xXQWTz96sxAzffJpEbX70=; b=Dv65i8jwbwAKgTbyapAu9gDwJVxbGywrv1VZ7NeO+V5CyvJQnkntou656ZFwPuIgWR nWgL+r9lvsbRPvtUOmTt+7GdkGT35qQbED5GVZd6fQOF3Jm5dnCZfx9E8MB+cX9YFkyO MsD8sojRm6xYPe2YzOtM671MjPKJTS8eLUa2PgPOZy6o1UdWU3o1vHpnwrpMviHFv3w1 lDzQ08CUndFO74dxyimX5n/CXEtt0QrTEPZW3My4+EUGJn7u/9/FduCpM31DC/qhPSbo Vg+XpMG8xItwpxCfZvXeWbOO5XTn7F7PC1zWoz8Fyn8CNrm0ot7lQy7WjmoI+5+29Gf1 6yvg== X-Gm-Message-State: AOAM532iIyKo/cnfRHMIgUYnvGHM36NUt5kLb5H868DDql7i8IgxHa4I aUFduiIfzsVZ3cbtCdRR5i842A== X-Google-Smtp-Source: ABdhPJxobJTd4M1Wc1rV5qwG5brvaEsSJ3IZYyR3NI3XgD1KfuPmMoJDFHAAeMHnPILQ7iRgm+3Nhg== X-Received: by 2002:a5d:4282:: with SMTP id k2mr1926325wrq.315.1613152610149; Fri, 12 Feb 2021 09:56:50 -0800 (PST) Original-Received: from localhost ([2a02:8084:20e2:c380:f410:82e8:3a21:eedf]) by smtp.gmail.com with ESMTPSA id l2sm1026565wrm.6.2021.02.12.09.56.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Feb 2021 09:56:49 -0800 (PST) In-Reply-To: (Stefan Kangas's message of "Fri, 12 Feb 2021 11:20:38 -0600") Received-SPF: none client-ip=2a00:1450:4864:20::434; envelope-from=contovob@tcd.ie; helo=mail-wr1-x434.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:264543 Archived-At: Stefan Kangas writes: > "Basil L. Contovounesios" writes: > >> Stefan Kangas writes: >> >>> I only just now discovered that my completion framework (ivy) has had >>> the exact same idea for M-S-x. It filters all commands according to >>> some heuristics, seemingly only showing commands beginning with whatever >>> package prefix your mode is using. >> >> With which command do you see this behaviour? AFAIK, the Counsel >> version of M-x only excludes commands with a no-counsel-M-x property, >> and the Counsel version of C-h b does not by default exclude any key >> sequence prefixes. > > Oops, turns out it is actually `smex-major-mode-commands'. I should > have taken a look first, but I had forgotten that I had that package > installed. Ah yes, counsel-M-x also defers to amx/smex if those are installed. -- Basil