From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.help Subject: eshell: Support old-style completion and cycling completion? Date: Sun, 16 Feb 2003 21:16:44 +0100 Organization: University of Duisburg, Germany Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <84k7g0x9oz.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1045426774 30856 80.91.224.249 (16 Feb 2003 20:19:34 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 16 Feb 2003 20:19:34 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18kVG7-00081W-00 for ; Sun, 16 Feb 2003 21:19:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18kVHC-0001bR-09 for gnu-help-gnu-emacs@m.gmane.org; Sun, 16 Feb 2003 15:20:38 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!p50877f29.dip.t-dialin.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: p50877f29.dip.t-dialin.net (80.135.127.41) Original-X-Trace: fu-berlin.de 1045426649 49022209 80.135.127.41 (16 [73968]) User-Agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.3.50 Cancel-Lock: sha1:EL2kJDm+kc0klmH/aDDpBIKIx5Q= Original-Xref: shelby.stanford.edu gnu.emacs.help:110251 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:6753 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6753 Usually, I know and love the fact that hitting TAB completes as far as it can, then offers the list of completions. But sometimes, I think it might be nice to cycle the completions instead. So I tried a naive approach: (defun kai-eshell-pcomplete-cycling () "Like `pcomplete', but turn on cycling explicitly." (interactive) (let ((eshell-cmpl-cycle-completions t)) (pcomplete))) Then I bound this to a key. No dice. Hm. Thinking some more, it's possible that a behavior that I would like is this: If there is a common prefix for all completions, insert that. If there is more than one possible completion, beep. After the next TAB, show all possible completions. After the next TAB, complete to the first completion. So it's a kind of a hybrid between old-style and cycling style. But I don't have this behavior, so I haven't tried it, so I don't know. What do people think? -- A turnip curses Elvis