From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: a suggested solution for better external' completion in certain emacs modes Date: Mon, 08 Nov 2004 19:01:52 -0500 Message-ID: References: <87smal64nc.fsf@orebokech.com> <87wtx45rag.fsf_-_@tapsellferrier.co.uk> <87k6svzzp5.fsf_-_@tapsellferrier.co.uk> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1099958557 22087 80.91.229.6 (9 Nov 2004 00:02:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 9 Nov 2004 00:02:37 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 09 01:02:27 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CRJSt-00041G-00 for ; Tue, 09 Nov 2004 01:02:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CRJbG-0008SG-BH for ged-emacs-devel@m.gmane.org; Mon, 08 Nov 2004 19:11:06 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CRJaw-0008RH-VE for emacs-devel@gnu.org; Mon, 08 Nov 2004 19:10:47 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CRJav-0008Qs-8P for emacs-devel@gnu.org; Mon, 08 Nov 2004 19:10:46 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CRJav-0008Qh-2M for emacs-devel@gnu.org; Mon, 08 Nov 2004 19:10:45 -0500 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CRJSN-0002r3-Ou for emacs-devel@gnu.org; Mon, 08 Nov 2004 19:01:55 -0500 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 6FBB48282BA; Mon, 8 Nov 2004 19:01:54 -0500 (EST) Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id A3BE74AC937; Mon, 8 Nov 2004 19:01:52 -0500 (EST) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id 920BC8CA69; Mon, 8 Nov 2004 19:01:52 -0500 (EST) Original-To: Nic Ferrier In-Reply-To: <87k6svzzp5.fsf_-_@tapsellferrier.co.uk> (Nic Ferrier's message of "Mon, 08 Nov 2004 23:30:14 +0000") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=0, requis 5) X-MailScanner-From: monnier@iro.umontreal.ca 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: main.gmane.org gmane.emacs.devel:29610 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:29610 > - Emacs starts a Readline program, eg: psql (the PostgreSQL client) > with a special option specifying signifying this mode of operation. A command-line argument is probably a bad idea (for cases like when you start psql via a script (or a make file), ...). An env-var would be good. > This seems like it wouldn't be that hard to add to Emacs and probably > not to Readline either. Sounds like a good idea. Such tools often offer things like a `listcompletions' commands which Emacs can use to implement the completion itself. Such a thing is used by GUD for gdb. Standardizing support for such things directly in comint might also be a good idea, tho not as good because it only works for those programs that go to the trouble of providing a `listcompletions' command. Stefan