From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: space, M-x Date: Sat, 15 Nov 2008 17:39:25 +0900 Message-ID: <87bpwhpema.fsf@xemacs.org> References: <86ljvs91kv.fsf@comm.utoronto.ca> <86fxlz8q85.fsf@comm.utoronto.ca> <8f2776cb0811100947ka9c15acn4e9e9956927840de@mail.gmail.com> <87skpvouyj.fsf@xemacs.org> <8f2776cb0811141058m328e6d20t57ce6ad42aabf3a7@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1226738114 3362 80.91.229.12 (15 Nov 2008 08:35:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 15 Nov 2008 08:35:14 +0000 (UTC) Cc: Gilaras Drakeson , emacs-devel@gnu.org To: "Jim Blandy" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 15 09:36:15 2008 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.50) id 1L1Gdb-0007BH-JW for ged-emacs-devel@m.gmane.org; Sat, 15 Nov 2008 09:36:15 +0100 Original-Received: from localhost ([127.0.0.1]:60948 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L1GcT-0004ZC-47 for ged-emacs-devel@m.gmane.org; Sat, 15 Nov 2008 03:35:05 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L1GcO-0004Ym-Dl for emacs-devel@gnu.org; Sat, 15 Nov 2008 03:35:00 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L1GcM-0004YP-Ft for emacs-devel@gnu.org; Sat, 15 Nov 2008 03:34:59 -0500 Original-Received: from [199.232.76.173] (port=50322 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L1GcM-0004YG-9P for emacs-devel@gnu.org; Sat, 15 Nov 2008 03:34:58 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]:17063) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L1GcM-0007px-0r for emacs-devel@gnu.org; Sat, 15 Nov 2008 03:34:58 -0500 Original-Received: from mtps02.sk.tsukuba.ac.jp ([130.158.97.224]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L1GcJ-0005Bb-FI for emacs-devel@gnu.org; Sat, 15 Nov 2008 03:34:55 -0500 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mtps02.sk.tsukuba.ac.jp (Postfix) with ESMTP id AB16F820D; Sat, 15 Nov 2008 17:34:35 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id CA5364C12C; Sat, 15 Nov 2008 17:39:25 +0900 (JST) In-Reply-To: <8f2776cb0811141058m328e6d20t57ce6ad42aabf3a7@mail.gmail.com> X-Mailer: VM 8.0.12-devo-585 under 21.5 (beta28) "fuki" 83e35df20028+ XEmacs Lucid (x86_64-unknown-linux) X-detected-kernel: by mx20.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:105697 Archived-At: Jim Blandy writes: > On Thu, Nov 13, 2008 at 7:19 PM, Stephen J. Turnbull wrote: > > Jim Blandy writes: > > > > > Perhaps what you're after here is having Emacs's M-x history behave a > > > bit more like bash's command history, where stepping back into the > > > history retrieves both a command and its arguments. > > > > I use C-x ESC ESC (repeat-complex-command) for that. > > Right; I never got into that, but it's exactly what's called for. > What's missing is completion as one edits the arguments. :) M-TAB works for me most of the time. However, that *is* a pretty big step back from the completion you get with most commands, I admit. It should be possible for repeat-complex-command to have position- sensitive completion based on the interactive spec (if one exists) of the closest enclosing function call. An alternative would be to do the same thing, but only for the top-level call. The basic idea for top-level would be instead of princ'ing the whole sexp, treat it as a list and wrap each element of the list in a field as you princ it. Then the field would have a keymap and a history/completion list. (How history would be maintained is an exercise for the reader, I'm way too lazy to even *think* about it today. :-) I have no time to work on this, though.