From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai Grossjohann Newsgroups: gmane.emacs.devel Subject: Re: eshell/pcomplete suggestion: indicator for completion cycling Date: Wed, 07 Jan 2004 09:24:26 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87isjoxj2d.fsf@emptyhost.emptydomain.de> References: <87ekudpid6.fsf@emptyhost.emptydomain.de> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1073464095 7043 80.91.224.253 (7 Jan 2004 08:28:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 7 Jan 2004 08:28:15 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Jan 07 09:28:10 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Ae92w-0003EO-00 for ; Wed, 07 Jan 2004 09:28:10 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Ae92w-0002GI-00 for ; Wed, 07 Jan 2004 09:28:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Ae9yv-0005Na-52 for emacs-devel@quimby.gnus.org; Wed, 07 Jan 2004 04:28:05 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1Ae9x7-0004lh-GM for emacs-devel@gnu.org; Wed, 07 Jan 2004 04:26:13 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1Ae9wZ-0004Z5-Sk for emacs-devel@gnu.org; Wed, 07 Jan 2004 04:26:10 -0500 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Ae9wZ-0004Yv-5z for emacs-devel@gnu.org; Wed, 07 Jan 2004 04:25:39 -0500 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1Ae8z2-0004MX-00 for ; Wed, 07 Jan 2004 09:24:08 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Ae8z1-0004MP-00 for ; Wed, 07 Jan 2004 09:24:07 +0100 Original-Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 1Ae8z1-0001iI-00 for ; Wed, 07 Jan 2004 09:24:07 +0100 Original-Lines: 26 Original-X-Complaints-To: usenet@sea.gmane.org User-Agent: Gnus/5.1004 (Gnus v5.10.4) Emacs/21.2 (gnu/linux) Cancel-Lock: sha1:7X9plMPbiC6picjbH/z57mw9h+k= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:19070 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19070 Richard Stallman writes: > I think that I might like completion cycling, as implemented by > default in eshell. > > What is "completion cycling"? Let's say you have a directory with files foo1, foo2, and foo3. Let's say you type f and then hit the TAB key. The default Emacs completion behavior is to complete f to foo. Then you hit TAB again and get a list of all possible completions. Cycling completions means that the first TAB, instead of completing f to foo, inserts the first possible completion, foo1. Hitting TAB again replaces foo1 with foo2, and again replaces that with foo3, and again goes back to foo1. By default, TAB in eshell does the cycling thing if there are up to five possible completions. If there are more than five possible completions, then it inserts substrings. The problem should be obvious: if I don't know which files are in the directory, then I don't know whether an insertion is a prefix of the full filename or a full filename already. Kai