From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: John Wiegley Newsgroups: gmane.emacs.devel Subject: Re: [friedman@splode.com: some other observations on pcomplete] Date: Wed, 13 Mar 2002 16:00:44 -0700 Sender: emacs-devel-admin@gnu.org Message-ID: <8766402hur.fsf@alice.dynodns.net> References: <200203102132.g2ALWfr04155@wijiji.santafe.edu> <200203121812.g2CIC2E15076@rum.cs.yale.edu> <200203131058.g2DAwSX05431@wijiji.santafe.edu> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1016060629 10635 127.0.0.1 (13 Mar 2002 23:03:49 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 13 Mar 2002 23:03:49 +0000 (UTC) Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16lHmf-0002lR-00 for ; Thu, 14 Mar 2002 00:03:49 +0100 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 16lHpU-0002HA-00 for ; Thu, 14 Mar 2002 00:06:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16lHmF-0007ZG-00; Wed, 13 Mar 2002 18:03:23 -0500 Original-Received: from mail.gci-net.com ([216.183.68.100] helo=gci-net.com) by fencepost.gnu.org with smtp (Exim 3.34 #1 (Debian)) id 16lHjv-0007Vu-00 for ; Wed, 13 Mar 2002 18:01:00 -0500 Original-Received: from [216.183.69.152] (HELO aris) by gci-net.com (CommuniGate Pro SMTP 3.5b8) with ESMTP-TLS id 130500 for emacs-devel@gnu.org; Wed, 13 Mar 2002 15:47:56 -0700 Original-Received: from johnw by aris with local (Exim 3.35 #1 (Debian)) id 16lHjg-0005Ex-00 for ; Wed, 13 Mar 2002 16:00:44 -0700 Original-To: emacs-devel@gnu.org X-Home-Page: http://www.gci-net.com/users/j/johnw/ X-Public-Key: http://pgp5.ai.mit.edu:11371/pks/lookup?op=get&search=0xF40524D0 In-Reply-To: (Kai.Grossjohann@CS.Uni-Dortmund.DE's message of "Wed, 13 Mar 2002 13:38:09 +0100") Original-Lines: 37 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.1 (i386-debian-linux-gnu) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.5 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:1920 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:1920 >>>>> On Wed Mar 13, Kai writes: >> Could someone tell me what [pcomplete's features] are? > I'm not an expert on this, but two things at least come to my mind: > * pcomplete can offer context-sensitive completion... > * After hitting TAB to pop up a *Completions* buffer, typing makes > the buffer (window, actually) go away. Here are a few others: * It has several modes of prompting you with possible completions. It can show you the list on first TAB, second TAB, or it can cycle. * It can optionally expand the arguments that it completes, when variable references are involved. Thus, calling pcomplete-expand on $HOME/.zsh will yield /home/johnw/.zshrc. This is not used by default. * It offers context-sensitive help, as well as completion lists. Try calling `M-x pcomplete-help' when you are at "cvs add ". It will pop up the info page for adding files to cvs. * It will optionally pare members of completion lists, if that argument has already been seen. For example, if I type "ls .zshrc .zsh", then .zshrc will not be in the second argument's completion list. * Last but not least, writing new context-sensitive completion functions is EASY. Granted, the process needs documentation, but basically you just call `pcomplete-here' and pass it a list, which will set the completion list for that argument position. Take a look at pcomplete/tar. John _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel