From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Romain FRANCOISE Newsgroups: gmane.emacs.help Subject: Re: shell-mode autocompletion uglinesses Date: Tue, 03 Dec 2002 23:59:00 +0100 Organization: orebokech dot com Sender: help-gnu-emacs-admin@gnu.org Message-ID: <87wumqlnez.fsf@orebokech.com> References: <84y978cgvh.fsf@lucy.cs.uni-dortmund.de> <84vg2b5z79.fsf@lucy.cs.uni-dortmund.de> <84vg2bxzsh.fsf@lucy.cs.uni-dortmund.de> <3DECAA5E.3020300@inka.de> <841y4z573o.fsf@lucy.cs.uni-dortmund.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1038956759 7953 80.91.224.249 (3 Dec 2002 23:05:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 3 Dec 2002 23:05:59 +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 18JM73-00023g-00 for ; Wed, 04 Dec 2002 00:05:57 +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 18JM7B-00036v-00; Tue, 03 Dec 2002 18:06:05 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.arcor-online.net!fr.clara.net!heighliner.fr.clara.net!lirmm.fr!news.site-eerie.ema.fr!cines.fr!univ-lyon1.fr!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-NNTP-Posting-Host: j446-b.resj.insa-lyon.fr Original-X-Trace: demo2.univ-lyon1.fr 1038956423 10233 134.214.166.176 (3 Dec 2002 23:00:23 GMT) Original-X-Complaints-To: abuse@univ-lyon1.fr Original-NNTP-Posting-Date: 3 Dec 2002 23:00:23 GMT Mail-Copies-To: nobody User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:IqYSEHaYcbibjqS/fQsDYroNhfU= Original-Xref: shelby.stanford.edu gnu.emacs.help:107710 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:4260 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:4260 Kai Großjohann writes: > The following appears to integrate pcomplete into shell mode: > (require 'shell) > (define-key shell-mode-map (kbd "TAB") 'pcomplete) > (add-hook 'shell-mode-hook 'pcomplete-shell-setup) You might also want to add the following, if you want to have a completion that behaves like the default completion: (setq pcomplete-cycle-completions nil) Otherwise you'll get the default cycling completion of pcomplete, which is not very intuitive if you're used to Emacs in general, or to the default Bash completion mechanism. And beware, completion of things (filenames, directories) containing spaces won't work. Romain. -- Romain FRANCOISE | I'm flooded out with energy, it's a miracle -- http://orebokech.com/ | energy and deceit.