From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Wiegley Newsgroups: gmane.emacs.devel Subject: Re: Leaving out non-applicable commands on Mx Date: Fri, 08 Jan 2016 17:46:17 -0800 Message-ID: References: <87mvszdp6b.fsf@gnus.org> <8737u9kv6f.fsf@russet.org.uk> <87fuy7hdc6.fsf_-_@wanadoo.es> <87bn8vh8q4.fsf@wanadoo.es> Reply-To: John Wiegley NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1452304125 18150 80.91.229.3 (9 Jan 2016 01:48:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Jan 2016 01:48:45 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?utf-8?Q?=C3=93scar?= Fuentes Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 09 02:48:38 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aHidx-0003wL-W5 for ged-emacs-devel@m.gmane.org; Sat, 09 Jan 2016 02:48:38 +0100 Original-Received: from localhost ([::1]:38673 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHidt-0007ED-Ns for ged-emacs-devel@m.gmane.org; Fri, 08 Jan 2016 20:48:33 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38918) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHicy-0007BE-H6 for emacs-devel@gnu.org; Fri, 08 Jan 2016 20:48:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aHibp-0007bz-LR for emacs-devel@gnu.org; Fri, 08 Jan 2016 20:47:36 -0500 Original-Received: from mail-pa0-x22f.google.com ([2607:f8b0:400e:c03::22f]:34959) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHibp-0007bS-BZ for emacs-devel@gnu.org; Fri, 08 Jan 2016 20:46:25 -0500 Original-Received: by mail-pa0-x22f.google.com with SMTP id ho8so30110308pac.2 for ; Fri, 08 Jan 2016 17:46:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:in-reply-to:date:message-id:references :user-agent:reply-to:mail-followup-to:mime-version:content-type :content-transfer-encoding; bh=o+sTX3/ZcA4yzGaalRd8sTy+pso+4YAQ8dvCRI5Y/3M=; b=bU79r53JA/XRZYQfaaHD6YKPhcyJixEEFNeKmlGFORoARfKulKfo5TJmaIiptE607L CmcDw8HT2iSfkOyTUYnxHsbGfOj6CuQ3r0eB7XLvOOf/MNINW3VObsDbMujinOeKVVfJ gIT6r93Aj3VCfb+pva88OHCeTkqm0kI9NKgiGdiXisRSQXhubQFedf+K++UqhQ4R7VgY /2LC8s2EujeRB6Tz2VOsVPiBR9g3uDOCzOl+ewYrA7O9VE2JhOTOrzmCZn96BlOf3uvw mrk610iY41pPIA3EUfOrVReXDtTpj3SH5lrqsPmjns7SRtaPa/JyuINDrtqR8zQ6/q25 dz6A== X-Received: by 10.67.2.73 with SMTP id bm9mr163845625pad.94.1452303984621; Fri, 08 Jan 2016 17:46:24 -0800 (PST) Original-Received: from Vulcan.local (76-234-68-79.lightspeed.frokca.sbcglobal.net. [76.234.68.79]) by smtp.gmail.com with ESMTPSA id tm4sm169940051pab.3.2016.01.08.17.46.22 (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 08 Jan 2016 17:46:22 -0800 (PST) X-Google-Original-From: "John Wiegley" Original-Received: by Vulcan.local (Postfix, from userid 501) id BBBAE12328E8B; Fri, 8 Jan 2016 17:46:21 -0800 (PST) In-Reply-To: <87bn8vh8q4.fsf@wanadoo.es> (=?utf-8?Q?=22=C3=93scar?= Fuentes"'s message of "Sat, 09 Jan 2016 01:55:47 +0100") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.5 (darwin) Mail-Followup-To: =?utf-8?Q?=C3=93scar?= Fuentes , emacs-devel@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c03::22f X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:197862 Archived-At: >>>>> =C3=93scar Fuentes writes: > On the M-x prompt, the set of candidates is restricted to those that make > sense given the current context. Leaving out functions that are specific = to > modes not enabled is a start. So if you are editing a C file and press `M= -x > g' almost all gnus* functions shall not be considered as candidates for > completion. This sounds like a feature that should evolve first as a separate package in ELPA, and after proving itself, be considered for core. But I sense ways in which this could go wrong: expecting to find a command, failing for some undiscovered reason X, and then the user believing no such command exists. > The M-x interface can be an improvement over both keybindings and the menu > on terms of usability, given the correct methods, but having thousands of > irrelevant candidates every time you invoke M-x is an inconvenience for t= hat > goal, not to say plain dumb. Core Emacs behavior doesn't need to change to demonstrate this feature, does it? Write a new execute-extended-command and see if it works as well as you hope. --=20 John Wiegley GPG fingerprint =3D 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2