From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Newsgroups: gmane.emacs.devel Subject: Ordering of command completions Date: Sun, 7 Dec 2014 16:14:37 +0000 (UTC) Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1417968925 28228 80.91.229.3 (7 Dec 2014 16:15:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Dec 2014 16:15:25 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 07 17:15:14 2014 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 1XxeUM-0000DS-0d for ged-emacs-devel@m.gmane.org; Sun, 07 Dec 2014 17:15:14 +0100 Original-Received: from localhost ([::1]:58366 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XxeUL-0004pz-G8 for ged-emacs-devel@m.gmane.org; Sun, 07 Dec 2014 11:15:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39881) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XxeU1-0004pi-Tl for emacs-devel@gnu.org; Sun, 07 Dec 2014 11:15:01 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XxeTu-0001pz-EM for emacs-devel@gnu.org; Sun, 07 Dec 2014 11:14:53 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:51827) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XxeTu-0001pr-7A for emacs-devel@gnu.org; Sun, 07 Dec 2014 11:14:46 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XxeTt-0008QP-98 for emacs-devel@gnu.org; Sun, 07 Dec 2014 17:14:45 +0100 Original-Received: from 94-21-240-150.pool.digikabel.hu ([94.21.240.150]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 07 Dec 2014 17:14:45 +0100 Original-Received: from adatgyujto by 94-21-240-150.pool.digikabel.hu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 07 Dec 2014 17:14:45 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 13 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 94.21.240.150 (Mozilla/5.0 (Windows NT 6.1; rv:33.0) Gecko/20100101 Firefox/33.0) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:179268 Archived-At: Just a quick thought: various modes have lots of keybindings and often I use M-x to invoke commands of unfamiliar or rarely used modes, because I don't always know the relevant keybindings. Of course, I can use the prefix of the mode when completing, but I may not know it and it may not be obvious depending on the mode. It occured to me that M-x, when showing completions, could list command matches from the current major mode first, then from the minor modes and then the rest of the commands. It could improve M-x usability and help with the discoverability of commands in the active modes, because commands relevant to the current context would be listed first, instead of everything in a huge alphabetical list.