From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Smarter M-x that filters on major-mode Date: Fri, 12 Feb 2021 13:16:45 -0500 Message-ID: References: <8ed9b43502ae1480e06b@heytings.org> <87wnvfenry.fsf@gnus.org> <87blcrdlqf.fsf@gnus.org> <87v9aydg3f.fsf@gnus.org> <83y2fuheph.fsf@gnu.org> <87im6yd4sz.fsf@gnus.org> <8735y2y44f.fsf@gnus.org> <87mtwajua4.fsf@telefonica.net> <87eehmwfeg.fsf@gnus.org> <87blcqjq45.fsf@telefonica.net> <875z2ywbvm.fsf@gnus.org> <87pn16mehu.fsf@gnus.jao.io> <87o8gpvdfd.fsf@gnus.org> <87a6s9mf87.fsf@gnus.jao.io> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14095"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Lars Ingebrigtsen , jao , emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Feb 12 19:19:13 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 1lAd29-0003ZZ-EZ for ged-emacs-devel@m.gmane-mx.org; Fri, 12 Feb 2021 19:19:13 +0100 Original-Received: from localhost ([::1]:40686 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lAd28-0007nr-E8 for ged-emacs-devel@m.gmane-mx.org; Fri, 12 Feb 2021 13:19:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60248) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAczu-0005sO-Fa for emacs-devel@gnu.org; Fri, 12 Feb 2021 13:16:54 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:49749) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lAczp-0002XV-BO; Fri, 12 Feb 2021 13:16:53 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 4CE11440BCF; Fri, 12 Feb 2021 13:16:48 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id B7B44440A46; Fri, 12 Feb 2021 13:16:46 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1613153806; bh=YGv0mYK+Vx9jHz/clo5n1lLbAy4fQnjkE4OAu8leHLE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=RX6G/nZhaRGcC4mt73MvI4KpR4fCgq4kO3EZFCAyYwA08zjK+XvZ0yFi1GCQa1nJy zGvHrzlvMETIItYK/ZKpqXQnvYdME+fvmivQqGstgTaJ0Degxui2ECrLsw8ym6V8/r h8GOJFt1H0Gi9lHvQ3XWRZ/dy+/zxnmzBSjyzxoJX14/DmMZSvf4XkP7jN64Lxakqs 3fVisKBSKIqF3n98+upCd4UXxkM4tTStTOquf62l3Q3R1KurYPG59ibJ5CGmKwI08j X0NiTxCcn/WQE32DlK3JEsYraeaBKPDcTCm6keWGi8OvS2YsulzYLYhQGTu34RGoqg 8xBPN1eekLKRg== Original-Received: from alfajor (unknown [216.154.41.47]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 71060120229; Fri, 12 Feb 2021 13:16:46 -0500 (EST) In-Reply-To: (Dmitry Gutov's message of "Fri, 12 Feb 2021 20:12:31 +0200") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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:264546 Archived-At: >> There seems to be an assumption here that the defining info to hiding >> a command (or not) is the current major mode. > "Is minor mode xyz active" should be a common predicate, at least. Indeed. What I meant to say is that we should focus on designing the general case of an arbitrary predicate first, and *then* figure out whether we need to add special syntax/support for common cases like matching a major mode or a minor mode or ... Stefan