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: list-command-history Date: Sun, 13 Aug 2006 22:44:12 -0700 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1155534276 24385 80.91.229.2 (14 Aug 2006 05:44:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 14 Aug 2006 05:44:36 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 14 07:44:32 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GCVFX-0006bw-Nl for ged-emacs-devel@m.gmane.org; Mon, 14 Aug 2006 07:44:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GCVFX-0007XJ-5i for ged-emacs-devel@m.gmane.org; Mon, 14 Aug 2006 01:44:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GCVFJ-0007Tw-4x for emacs-devel@gnu.org; Mon, 14 Aug 2006 01:44:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GCVFH-0007Po-Sr for emacs-devel@gnu.org; Mon, 14 Aug 2006 01:44:16 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GCVFH-0007PV-OM for emacs-devel@gnu.org; Mon, 14 Aug 2006 01:44:15 -0400 Original-Received: from [148.87.113.118] (helo=rgminet01.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1GCVL1-0003RW-Oq for emacs-devel@gnu.org; Mon, 14 Aug 2006 01:50:12 -0400 Original-Received: from rgmgw1.us.oracle.com (rgmgw1.us.oracle.com [138.1.186.110]) by rgminet01.oracle.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id k7E5iDrB011067 for ; Sun, 13 Aug 2006 23:44:13 -0600 Original-Received: from dradamslap (dhcp-amer-csvpn-gw2-141-144-73-34.vpn.oracle.com [141.144.73.34]) by rgmgw1.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with SMTP id k7E5iCV1003727 for ; Sun, 13 Aug 2006 23:44:13 -0600 Original-To: "Emacs-Devel" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE 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:58366 Archived-At: I just came across command `list-command-history' in the Emacs manual. I probably knew of it years ago, but I don't think I ever used it. I gave it a try. Seems like it could be useful to some people, if it were spruced up just a bit. But I might be missing something - perhaps someone who uses it can comment on how it's used. Here are some comments, from an ignorant quick tour: 1. `q' should perhaps quit (a la View-quit). 2. `x' executes the current line again, but I didn't find a command (binding) that would yank the current line into the minibuffer as input for `repeat-complex-command', without entering it. That is, it seems like there should be a way to reuse the current line after editing it. 3. `C-h m' and the description in the Emacs manual are skimpy. I couldn't figure out why some of the bindings exist. What are the use cases for the TAB and `C-M-q' bindings - why would someone want to indent stuff here (especially since you can't use `C-j' as `newline-and-indent - and especially since the buffer is read-only)? And what is the `' binding - what is it for, and how does one use it? 4. There should be quick ways to a) remove duplicates and b) sort lines (and then put back the read-only status). The sort could be reversable - that is, the original order could be saved, and sorting toggled. Likewise, perhaps, for duplicates. Some such enhancements would be trivial. #2 seems the most useful. WDOT? Does anyone use this now?