From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Volkan YAZICI Newsgroups: gmane.emacs.help Subject: Re: SQLi[postgres] mode and passing tabs to psql Date: Tue, 17 Jun 2008 01:45:40 -0700 (PDT) Organization: http://groups.google.com Message-ID: <54f7a573-fb77-4ef3-b3f4-260797f60d49@79g2000hsk.googlegroups.com> References: <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 1213695685 8891 80.91.229.12 (17 Jun 2008 09:41:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Jun 2008 09:41:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 17 11:42:07 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 1K8XhX-0005CA-AO for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Jun 2008 11:42:07 +0200 Original-Received: from localhost ([127.0.0.1]:56607 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K8Xgj-0004xj-03 for geh-help-gnu-emacs@m.gmane.org; Tue, 17 Jun 2008 05:41:17 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!79g2000hsk.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Original-NNTP-Posting-Host: 213.139.194.86 Original-X-Trace: posting.google.com 1213692340 21575 127.0.0.1 (17 Jun 2008 08:45:40 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 17 Jun 2008 08:45:40 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 79g2000hsk.googlegroups.com; posting-host=213.139.194.86; posting-account=xozGQQoAAAD99EQH9srmwM1ajggyokYW User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.14) Gecko/20080404 Iceweasel/2.0.0.14 (Debian-2.0.0.14-0etch1), gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:159564 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:54917 Archived-At: On Jun 16, 9:44 pm, rwc9u wrote: > 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. Just blind guessing: Did you try "C-q TAB" or "ESC TAB"? ("C-h b" might be helpful too.) Regards.