From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Current mode command discovery Date: Sat, 20 Feb 2021 14:15:07 +0100 Message-ID: <875z2mq3s4.fsf@gnus.org> References: <87v9aubm96.fsf@gnus.org> <87eehi820x.fsf@gnus.org> <83v9at9xel.fsf@gnu.org> <87wnv8xlqa.fsf@gnus.org> <838s7o9g90.fsf@gnu.org> <87im6revhq.fsf@tcd.ie> <83im6r98qd.fsf@gnu.org> <87k0r7uade.fsf@gnus.org> <83eehf978r.fsf@gnu.org> <87ft1vu9hd.fsf@gnus.org> <838s7n95pf.fsf@gnu.org> <8735xvu7sx.fsf@gnus.org> <834kib94ha.fsf@gnu.org> <874kibh9mu.fsf@telefonica.net> <83o8gi7lh2.fsf@gnu.org> <871rdebmmh.fsf@telefonica.net> <831rdc4epn.fsf@gnu.org> <87o8ggte2j.fsf@gnus.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="37531"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: ofv@wanadoo.es, chad , EMACS development team , Eli Zaretskii , Richard Stallman To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Feb 20 14:17:52 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 1lDS8t-0009dt-PW for ged-emacs-devel@m.gmane-mx.org; Sat, 20 Feb 2021 14:17:51 +0100 Original-Received: from localhost ([::1]:53152 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lDS8s-00054G-RA for ged-emacs-devel@m.gmane-mx.org; Sat, 20 Feb 2021 08:17:50 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40414) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lDS6X-0003xR-5d for emacs-devel@gnu.org; Sat, 20 Feb 2021 08:15:26 -0500 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:60972) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lDS6O-0004O8-VC; Sat, 20 Feb 2021 08:15:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=08a1IJ5OedwRvMR9JTubvtvKp6ey9QuwXXAH3s89oF0=; b=ln6OcU/7JrFPncLVpFqunz+g6j WNgLOKHBQmL0NMt0X+CXUz1UjxzXEJ2i1FPz8M4NFet+/tV+O12lJstNJyqptkkIpwrSDk+IOOIf0 NnvLHo/7JFNus3AQamowJ/M8Y2Ixvyen0VphNkHNMQwSERLIX+a4eMAdqnZOsxQC/LPM=; Original-Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lDS6H-0005yu-FW; Sat, 20 Feb 2021 14:15:12 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAAXNSR0IArs4c6QAAABVQTFRF rY92W0xALCYhDQwKi3NfnYFr////pUJmeQAAAAFiS0dEBmFmuH0AAAAHdElNRQflAhQNATVoltUI AAAA6ElEQVQ4y83UQQ6DIBAFUNqUfTEcoMIJCheQBPYsnPtfpcwMWKuS1KSL/sSF88aBBFWIH+Zi DnIvcPUHefwvOHsWvOlBd1RvcXMaursyxrv6lLHelMvbBx+Uw7NxWKxp4LcHWMF69y0YBt8B3E3n LVnu1dCDkj2Mo1JNGHjpWqYMqyfwXocmC3B7jCQ6hgpqUFxACTq8gdp1mmPLxIvzmAgQmy1QpiSA DAnW8MT+REBZgcZ+kABNKugynj67Uswiw1xhjElkBkkNcs4EZT+bDxYYEmyBgvBZkQ2m3g+gDJRx m6q33Ut6Hl74Mpq2QplZ5wAAABBlWElmSUkqAAgAAAAAAAAAAAAAAJw8uSgAAAAldEVYdGRhdGU6 Y3JlYXRlADIwMjEtMDItMjBUMTM6MDE6NTIrMDA6MDCrRG3PAAAAJXRFWHRkYXRlOm1vZGlmeQAy MDIxLTAyLTIwVDEzOjAxOjUyKzAwOjAw2hnVcwAAADh0RVh0aWNjOmNvcHlyaWdodABDb3B5cmln aHQgKGMpIDE5OTggSGV3bGV0dC1QYWNrYXJkIENvbXBhbnn5V3k3AAAAIXRFWHRpY2M6ZGVzY3Jp cHRpb24Ac1JHQiBJRUM2MTk2Ni0yLjFXrdpHAAAAJnRFWHRpY2M6bWFudWZhY3R1cmVyAElFQyBo dHRwOi8vd3d3LmllYy5jaBx/AEwAAAA3dEVYdGljYzptb2RlbABJRUMgNjE5NjYtMi4xIERlZmF1 bHQgUkdCIGNvbG91ciBzcGFjZSAtIHNSR0JEU0ipAAAAAElFTkSuQmCC X-Now-Playing: David Allred's _Felt The Transition_: "The Garden (Solo Piano)" In-Reply-To: (Stefan Monnier's message of "Fri, 19 Feb 2021 18:01:04 -0500") Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org 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_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:265306 Archived-At: Stefan Monnier writes: >> It reminds me of the disabled-command-function machinery, or at least the >> concept. Maybe there's a decent way to leverage the two concepts into a >> similar UI pattern? Yes, that makes sense. If we do add a "Really execute this command from this other mode?" thing, then being able to permanently disable the warning, like with disabled commands, would be nice. > Talking about integration with other pre-existing functionality: how > 'bout merging the new command enable functionality with the > `menu-enable` symbol property? That does seem natural, doesn't it? However, I'm not quite sure about the proposed usages for using completion-predicate for commands that are currently not usable. In menus, the commands are still there -- they're just greyed out, so you can tell that if you just do something (mysterious), then they'll be enabled. In `M-x' completion, that's not really a natural... thing? (Unless using a display method that displays all completions, no matter what the predicate, but sort/display/colour them differently, as Eli suggested.) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no