From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: rwc9u Newsgroups: gmane.emacs.help Subject: SQLi[postgres] mode and passing tabs to psql Date: Mon, 16 Jun 2008 11:44:26 -0700 (PDT) Organization: http://groups.google.com Message-ID: <33154a19-83d7-4429-a916-06bbc33e99f6@d77g2000hsb.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1213645681 8463 80.91.229.12 (16 Jun 2008 19:48:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Jun 2008 19:48:01 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 16 21:48:45 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K8Kgt-0002yE-K1 for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Jun 2008 21:48:35 +0200 Original-Received: from localhost ([127.0.0.1]:60709 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K8Kg5-0002RX-6Z for geh-help-gnu-emacs@m.gmane.org; Mon, 16 Jun 2008 15:47:45 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!d77g2000hsb.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 15 Original-NNTP-Posting-Host: 38.118.25.2 Original-X-Trace: posting.google.com 1213641867 1884 127.0.0.1 (16 Jun 2008 18:44:27 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 16 Jun 2008 18:44:27 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d77g2000hsb.googlegroups.com; posting-host=38.118.25.2; posting-account=86A5uQoAAADTzMsY61LPMiELODUckyrl User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:159548 X-Mailman-Approved-At: Mon, 16 Jun 2008 15:47:23 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:54906 Archived-At: I'd like to figure a way to harness the completion functionality that the psql client provides, and use that from within the emacs sqli mode for postgres. If I run psql from the bash prompt then when I hit tab twice I get completions for either sql keywords or table names depending on the location of my cursor. When I try to do this from within the sqli mode I can't figure out the way to pass the tabs to the underlying process. I am assuming if I can get this to work then I could write some sort of output filter to provide a completions list. Any ideas or modes to point me at that do something similar. Thanks, Rob