From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Nic Ferrier Newsgroups: gmane.emacs.devel Subject: Re: a suggested solution for better external' completion in certain emacs modes Date: Fri, 12 Nov 2004 10:12:42 +0000 Message-ID: <87is8bwf39.fsf@tapsellferrier.co.uk> 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 1100254612 6050 80.91.229.6 (12 Nov 2004 10:16:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 12 Nov 2004 10:16:52 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 12 11:16:43 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 1CSYTx-0004X0-00 for ; Fri, 12 Nov 2004 11:16:42 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CSYcV-0000xJ-NE for ged-emacs-devel@m.gmane.org; Fri, 12 Nov 2004 05:25:31 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CSYc7-0000ww-2v for emacs-devel@gnu.org; Fri, 12 Nov 2004 05:25:08 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CSYc4-0000wa-Ip for emacs-devel@gnu.org; Fri, 12 Nov 2004 05:25:04 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CSYc4-0000w4-A7 for emacs-devel@gnu.org; Fri, 12 Nov 2004 05:25:04 -0500 Original-Received: from [80.168.156.78] (helo=owls-tree.tapsellferrier.co.uk) by monty-python.gnu.org with esmtp (TLSv1:RC4-SHA:128) (Exim 4.34) id 1CSYSz-0007pb-Ki; Fri, 12 Nov 2004 05:15:41 -0500 Original-Received: from [217.207.145.34] (helo=kanga) by owls-tree.tapsellferrier.co.uk with esmtp (Exim 4.30 #1 (Debian)) id 1CSYMu-0000EQ-5g; Fri, 12 Nov 2004 10:09:24 +0000 Original-Received: from nferrier by kanga with local (Exim 4.30 #1 (Debian)) id 1CSYQ7-0000Np-BK; Fri, 12 Nov 2004 10:12:43 +0000 Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Fri, 12 Nov 2004 02:05:36 -0500") 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:29777 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:29777 Richard Stallman writes: > What about history? Emacs' comint mode keeps quite a small history by > default and also doesn't save the history in a file, many Readline > programs do offer this. > > If you are using comint, you have all the history in Emacs. > The history commands do not need to interact with the program. But comint's history is not as functional as the history provided by some Readline programs: - Readline programs often keep their history over invocations, comint does not - Readline programs often have very large line historys, but comint tends to have a small line history (I guess this is changeable but it would be expensive for all comint buffers) Also, Emacs does not 'add value' to line historys... so if they could be delegated (if the sub program does have Readline and history support then use it) it would be a good thing I think. > So I was proposing a completly new way of communicating with > Readline. > > I thought these command would go thru the pty to the subprogram. > Are you thinking that Readline would talk to Emacs thru a socket? > That's ok if you make it work. No. I think they would go through the pty to the subprogram. I was suggesting that Readline would stop seeing the pty as a pty and treat it more like a stream. I am examining ways to achieve better integration with programs that offer sophisticated command line facilities. I may have a muck around with comint to see if I can get it to use Readline expansions in a generic way. -- Nic Ferrier http://www.tapsellferrier.co.uk