From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Jones Newsgroups: gmane.emacs.help Subject: Re: Readline in emacs Date: Fri, 06 Jun 2008 09:09:29 -0600 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1212765022 28114 80.91.229.12 (6 Jun 2008 15:10:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Jun 2008 15:10:22 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 06 17:11:02 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 1K4dab-0000fm-BV for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Jun 2008 17:10:49 +0200 Original-Received: from localhost ([127.0.0.1]:51918 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4dZo-0004Z9-EU for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Jun 2008 11:10:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K4dZS-0004Ys-5D for help-gnu-emacs@gnu.org; Fri, 06 Jun 2008 11:09:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K4dZQ-0004XB-Vw for help-gnu-emacs@gnu.org; Fri, 06 Jun 2008 11:09:37 -0400 Original-Received: from [199.232.76.173] (port=37967 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4dZQ-0004X5-SK for help-gnu-emacs@gnu.org; Fri, 06 Jun 2008 11:09:36 -0400 Original-Received: from pmade.com ([64.92.223.213]:59212) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K4dZQ-0000O3-Gb for help-gnu-emacs@gnu.org; Fri, 06 Jun 2008 11:09:36 -0400 Original-Received: from tiny.local.pmade.com (c-76-25-134-186.hsd1.co.comcast.net [76.25.134.186]) (authenticated bits=0) by pmade.com (8.13.8/8.13.8) with ESMTP id m56F9Vej078849 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Fri, 6 Jun 2008 15:09:32 GMT (envelope-from pjones@pmade.com) Mail-Followup-To: help-gnu-emacs@gnu.org In-Reply-To: (Jason Nielsen's message of "Tue\, 3 Jun 2008 11\:18\:50 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (darwin) X-detected-kernel: by monty-python.gnu.org: FreeBSD 6.x (1) 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:54528 Archived-At: Jason Nielsen writes: > I have a console based application that has readline support for tab > completion. I'd like to run it within emacs via comint mode but don't > want to give up tab completion and would rather not spend hours > writing elisp to get a similar functionality. Any > help/direction/pointers would be greatly appreciated. Not sure if this helps, but ... If you start a terminal emulator in Emacs (M-x term) you can run your application directly (instead of a shell), and switch between line mode and char mode. In char mode (the default term mode), all keys work as expected, including tab, because they are sent directly to the console application. In line mode, however, term mode will see the keys first, and only sends what you type after pressing RET. Also, term mode uses comint mode, so maybe you could look at how char mode in term mode works when writing a comint wrapper for your console application. -- Peter Jones, pmade inc. http://pmade.com