From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: "Connection broken" message appearing in odd places in buffers Date: Thu, 15 Sep 2011 00:14:41 +0200 Organization: Programmerer Ingebrigtsen Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1316038689 27368 80.91.229.12 (14 Sep 2011 22:18:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 14 Sep 2011 22:18:09 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 15 00:18:05 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R3xmP-0004mH-Bu for ged-emacs-devel@m.gmane.org; Thu, 15 Sep 2011 00:18:05 +0200 Original-Received: from localhost ([::1]:58682 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3xmO-0001Be-L4 for ged-emacs-devel@m.gmane.org; Wed, 14 Sep 2011 18:18:04 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:36551) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3xmL-0001BO-Kl for emacs-devel@gnu.org; Wed, 14 Sep 2011 18:18:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R3xmI-0003dU-CE for emacs-devel@gnu.org; Wed, 14 Sep 2011 18:18:01 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:46465) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R3xmI-0003dQ-14 for emacs-devel@gnu.org; Wed, 14 Sep 2011 18:17:58 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1R3xmH-0004ik-2d for emacs-devel@gnu.org; Thu, 15 Sep 2011 00:17:57 +0200 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 15 Sep 2011 00:17:57 +0200 Original-Received: from larsi by cm-84.215.51.58.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 15 Sep 2011 00:17:57 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 39 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.51.58.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAD1BMVEURCQ1bQ1CekYtCLTcp GyLWId+gAAACf0lEQVQ4jTWTi5XjMAhF8ZgCjOQCRiQFWEYFSAv917QPT+Kc/HTF40/B3vUkipjE RcXwTR6DYoZJmwAB0HoCHjbI0qScMR6LZg4+F8Aak62bjzFp19cZTEFuwHjHGO6wWFoH035NG0Ew S88BTreOa5JRJODALYYNQJGYcztjmoGGjxnueaeJHNQnQFeaiApKj4smekAzRi+KXGbvDwjFc/m1 j9FVM+OQblL0ecgmHIqmVP+cPY/b3N1wgqieg4ZXXhiDdpc0ZWrf2wUvYaRd02Ly97znx3FN76jv IvoDraiXVsOJXUSAaH4tBqG+KIlXqQBMj8Gxt5MnjS1imfSLiXncRRvSPtkHnRRrLEEM0wP6hgKe vFRQafQVpvkDOVysJWLTa+NwWwcjqvEj+nttbU3zth97uHS5BbXqotlwPFwWhBCudWgyJmWkbl27 2XWhf2YCsIlVyyM7vwAZVnokoivs45mhL/Ba2phb69MNDUSQlsVtFLVUpp9Xp+jtleYfsLmeQXdF yl0nHxfLH/DVIFwSLP1Nn/K0GX9fCVC2uDELAP0D7rojs3syliB90OpPawOTTiwdZb6V2TDaH4B5 xQzWB7wHPVqP8xYAr1/MEaQnfZxc9E8WOtoOmrumD7RxSUHTAbKsV45Lw8qwJyhvMsFm7mVyjsux 4351WMBH/QVoGIpNnzy62h+ACu0vgFX0Ddebji4AURDJ/sZGbhkLAtHTE3iD/PamK8FBkkGh27DA 8tPPCQCptg7K3V2iGLQ5acspzK3A7/Dyws4gD2S+vzdKgMixkUUHdygiczoBcJAFCZT/hN/oHf+q Y+yz7IZtXQ+YqyU4sxGqjIIiR2j8B8BUlkyS2jVvAAAAAElFTkSuQmCC Mail-Copies-To: never X-Now-Playing: Various's _New Wave to New Beat Volume 2_: "Man Parrish - Hip Hop Be Bop (Dub)" User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:Slm4+73YwnC4sRgqd0YH2TyXyXE= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 80.91.229.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:144042 Archived-At: Lars Magne Ingebrigtsen writes: > This seems like a bug to me, I think, but I thought I'd ask here first > if anybody knows what this is about. It's this code in status_notify that's the culprit: /* Insert new output into buffer at the current end-of-output marker, thus preserving logical ordering of input and output. */ if (XMARKER (p->mark)->buffer) Fgoto_char (p->mark); else SET_PT_BOTH (ZV, ZV_BYTE); And if I added a trace to output the process-mark throughout the conversation, I get this: Mark: # 235 Authentication succeeded Mark: # 250 OK Mark: # 250 Accepted Mark: # 354 Enter message, ending with "." on a line by itself Sending email...done Mark: # 250 OK id=1R3xha-0001tb-Ic Mark: # So the process-mark stays at character 363, and that's where it outputs the message. So the question is, I guess -- why doesn't the marker increase? Because the output from the process gets inserted at the end of the buffer. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/