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: Tue, 20 Aug 2002 20:18:12 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: <20020821001812.GA23832@gnu.org> 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> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1029889305 19287 127.0.0.1 (21 Aug 2002 00:21:45 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 21 Aug 2002 00:21:45 +0000 (UTC) Cc: rms@gnu.org, monnier+gnu/emacs@rum.cs.yale.edu, miles@lsi.nec.co.jp, 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 17hJFo-00050y-00 for ; Wed, 21 Aug 2002 02:21:44 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17hJhx-0002NV-00 for ; Wed, 21 Aug 2002 02:50:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.10) id 17hJGu-00079l-00; Tue, 20 Aug 2002 20:22:52 -0400 Original-Received: from miles by fencepost.gnu.org with local (Exim 4.10) id 17hJCO-00074k-00; Tue, 20 Aug 2002 20:18:12 -0400 Original-To: JD Smith Content-Disposition: inline In-Reply-To: <1029880892.20785.233.camel@turtle.as.arizona.edu> User-Agent: Mutt/1.3.28i Blat: Foop 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:6697 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6697 On Tue, Aug 20, 2002 at 03:01:32PM -0700, JD Smith wrote: > Sorry, poor choice of words. I did notice that snapshot-last-prompt, in > the CVS version, now adds text properties as opposed to "freeing" the > overlay, and that it gets called not just when a new prompt is created, > but *many* times, e.g. every time a command is sent (which occurs in the > background all the time in IDLWAVE). I'm confused by what you mean -- that's when snapshot-last-prompt has _always_ been called, when input is sent (and it's not called at all when `a new prompt is created'). It should be called exactly the same number of times now as it was before. > So, in the present scheme, the current prompt has either > overlay-properties, or redundant overlay+text-properties. All old prompts > have just text-properties. In this context, I can't see how overlays are > uniquely needed, since they aren't predictably present by themselves... That simply isn't true; the _majority_ of the time, in a normal shell session, the overlay alone is responsible for the last prompt (there may be a brief instant after you've send a command, and before the process has sent any output, when they may overlap, but that's harmless). As the process sends output after a command, the overlay is moved so that it covers anything that `looks like a prompt', which may happen many times. [and snapshot-last-prompt is never called _at all_] -Miles -- P.S. All information contained in the above letter is false, for reasons of military security.