From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: comint read-only prompt Date: 21 Aug 2002 10:36:46 +0900 Sender: emacs-devel-admin@gnu.org Message-ID: References: <200208191540.g7JFemV13663@rum.cs.yale.edu> <1029772679.16562.13.camel@turtle.as.arizona.edu> <200208201721.g7KHLcb09801@wijiji.santafe.edu> <1029866584.20782.76.camel@turtle.as.arizona.edu> <20020820211702.GB28081@gnu.org> <1029880892.20785.233.camel@turtle.as.arizona.edu> <20020821001812.GA23832@gnu.org> <1029893073.20783.290.camel@turtle.as.arizona.edu> Reply-To: Miles Bader NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1029893901 29083 127.0.0.1 (21 Aug 2002 01:38:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 21 Aug 2002 01:38:21 +0000 (UTC) Cc: rms@gnu.org, monnier+gnu/emacs@rum.cs.yale.edu, simon.marshall@misys.com, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17hKRw-0007Yy-00 for ; Wed, 21 Aug 2002 03:38:20 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17hKu7-0004BD-00 for ; Wed, 21 Aug 2002 04:07:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17hKT5-00037g-00; Tue, 20 Aug 2002 21:39:31 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17hKQl-00031N-00 for emacs-devel@gnu.org; Tue, 20 Aug 2002 21:37:07 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17hKQj-0002zc-00 for emacs-devel@gnu.org; Tue, 20 Aug 2002 21:37:07 -0400 Original-Received: from tyo202.gate.nec.co.jp ([210.143.35.52]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17hKQi-0002w3-00; Tue, 20 Aug 2002 21:37:05 -0400 Original-Received: from mailgate4.nec.co.jp ([10.7.69.195]) by TYO202.gate.nec.co.jp (8.11.6/3.7W01080315) with ESMTP id g7L1at404470; Wed, 21 Aug 2002 10:36:55 +0900 (JST) Original-Received: from mailsv.nec.co.jp (mailgate51.nec.co.jp [10.7.69.190]) by mailgate4.nec.co.jp (8.11.6/3.7W-MAILGATE-NEC) with ESMTP id g7L1atg18537; Wed, 21 Aug 2002 10:36:55 +0900 (JST) Original-Received: from mcsss2.ucom.lsi.nec.co.jp ([10.30.114.133]) by mailsv.nec.co.jp (8.11.6/3.7W-MAILSV-NEC) with ESMTP id g7L1asG22384; Wed, 21 Aug 2002 10:36:54 +0900 (JST) Original-Received: from mcspd15.ucom.lsi.nec.co.jp (mcspd15 [10.30.114.174]) by mcsss2.ucom.lsi.nec.co.jp (8.10.2+Sun/3.7Wlsi_mx_6.0) with ESMTP id g7L1aks12338; Wed, 21 Aug 2002 10:36:50 +0900 (JST) Original-Received: by mcspd15.ucom.lsi.nec.co.jp (Postfix, from userid 31295) id 0E47136F2; Wed, 21 Aug 2002 10:36:47 +0900 (JST) Original-To: JD Smith System-Type: i686-pc-linux-gnu Blat: Foop In-Reply-To: <1029893073.20783.290.camel@turtle.as.arizona.edu> Original-Lines: 25 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:6708 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6708 JD Smith writes: > The problem is in assuming every send-input will automatically be > followed by a call to the output-filter. I'm not familiar with how > other modes use comint, but I'd bet setting your own process-filter > (e.g. to send hidden commands) is not too uncommon. If you don't expect any output following the input you send, you can call `process-send-string' instead of `comint-send-string'. That will avoid the snapshotting. > A proposed solution: if snapshot were moved to the beginning of the > output-filter, these problems would disappear. That would be completely wrong. The reason why `prompt snapshotting' is done when the user sends input is because that's the only time you can be pretty sure that what the overlay covers is _actually_ a prompt. [Normal shell output contains lots of things that appear to be prompts, but in fact are not; they are briefly displayed as if they were prompts, but when more output arrives, the overlay is moved, and so the incorrect display is removed.] -Miles -- 97% of everything is grunge