From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: Key bindings proposal Date: Mon, 23 Aug 2010 15:36:25 -0700 Message-ID: <8C662051648B4596802BF3DD72FC64FD@us.oracle.com> References: <19534.1494.627000.357123@gargle.gargle.HOWL><19537.40472.267000.563053@gargle.gargle.HOWL><87tymlv41y.fsf@mail.jurta.org> <87aaodo1qt.fsf@tux.homenetwork><87tymlvyif.fsf@mail.jurta.org> <87occtc9pa.fsf@tux.homenetwork> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1282603067 19978 80.91.229.12 (23 Aug 2010 22:37:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 23 Aug 2010 22:37:47 +0000 (UTC) To: "'Thierry Volpiatto'" , Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 24 00:37:46 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Onfe4-0002nR-0O for ged-emacs-devel@m.gmane.org; Tue, 24 Aug 2010 00:37:40 +0200 Original-Received: from localhost ([127.0.0.1]:42237 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Onfdx-0006uv-Vm for ged-emacs-devel@m.gmane.org; Mon, 23 Aug 2010 18:37:30 -0400 Original-Received: from [140.186.70.92] (port=40337 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Onfdq-0006un-Lp for emacs-devel@gnu.org; Mon, 23 Aug 2010 18:37:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Onfdp-0004OL-Cw for emacs-devel@gnu.org; Mon, 23 Aug 2010 18:37:22 -0400 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:53902) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Onfdp-0004OA-6d for emacs-devel@gnu.org; Mon, 23 Aug 2010 18:37:21 -0400 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o7NMbHf8018510 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 23 Aug 2010 22:37:19 GMT Original-Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o7NMLo2P013295; Mon, 23 Aug 2010 22:37:17 GMT Original-Received: from abhmt006.oracle.com by acsmt353.oracle.com with ESMTP id 542126871282602984; Mon, 23 Aug 2010 15:36:24 -0700 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 23 Aug 2010 15:36:24 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87occtc9pa.fsf@tux.homenetwork> Thread-Index: ActDCKi9V4UJeitcTMqaVDrCS9vdXwACHR7Q X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:129100 Archived-At: > > I tried anything, but it does nothing. > > Do you have an idea what is wrong? > > Nothing is wrong, start typing commands say dired-, after exactly two > characters typed (i.e "di") you will see completion. > choose a command in list and run it with RET, C-z to describe it. > > When you have run command it is added in extended-command-history. > Next time you run anything-M-x, you will see your command appearing in > a buffer with header "Emacs commands history". FWIW, nearly the same with Icicles. But `dir' instead of `di', since there are also non-Dired command names (e.g. `diary', `diff') that start with `di'. And `C-M-RET' instead of `C-z' for candidate help. And just `M-x', not `anything-M-x'. And normal access to the history (as well as access using completion). I made the point that the solution to the problem Juri described is not to rename the commands but to use better completion (e.g. substring, regexp, pcomplete, fuzzy,...). That's the point. It does not matter how you get better completion. I mentioned that even vanilla Emacs now offers completion other than prefix completion - one need *not* use Icicles or Anything (or Ido, for that matter) to invoke a command whose names matches somewhere other than the prefix. (However, Icicles (and probably Anything, by now) also offers progressive completion, which lets you match multiple patterns (e.g. substrings) without regard to order.) The main point is that commands should *not* be named only on the basis of facilitating prefix completion. Instead, if you want to improve completion matching, then use non-prefix matching.