From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Roland Winkler" Newsgroups: gmane.emacs.bugs Subject: bug#11493: 24.0.95; regression: comint-output-filter-functions / ansi-color-process-output Date: Wed, 16 May 2012 17:46:50 -0500 Message-ID: <87y5orhhgl.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1337208480 24724 80.91.229.3 (16 May 2012 22:48:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 16 May 2012 22:48:00 +0000 (UTC) To: 11493@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 17 00:47:59 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SUn0e-0000Ws-Bj for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 May 2012 00:47:56 +0200 Original-Received: from localhost ([::1]:47764 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUn0d-0001rd-Q6 for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 May 2012 18:47:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35117) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUn0a-0001rH-MC for bug-gnu-emacs@gnu.org; Wed, 16 May 2012 18:47:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SUn0Y-00066Y-SB for bug-gnu-emacs@gnu.org; Wed, 16 May 2012 18:47:52 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48655) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUn0Y-00066H-Oq for bug-gnu-emacs@gnu.org; Wed, 16 May 2012 18:47:50 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SUn0j-0006P5-UW for bug-gnu-emacs@gnu.org; Wed, 16 May 2012 18:48:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Roland Winkler" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 May 2012 22:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11493 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.133720843924561 (code B ref -1); Wed, 16 May 2012 22:48:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 May 2012 22:47:19 +0000 Original-Received: from localhost ([127.0.0.1]:58201 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SUn03-0006O6-Du for submit@debbugs.gnu.org; Wed, 16 May 2012 18:47:19 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42627) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SUn01-0006Nr-3l for submit@debbugs.gnu.org; Wed, 16 May 2012 18:47:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SUmzi-0005sG-Rn for submit@debbugs.gnu.org; Wed, 16 May 2012 18:46:59 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:57306) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUmzi-0005sC-Of for submit@debbugs.gnu.org; Wed, 16 May 2012 18:46:58 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34881) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUmzh-0001or-31 for bug-gnu-emacs@gnu.org; Wed, 16 May 2012 18:46:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SUmzf-0005ro-5O for bug-gnu-emacs@gnu.org; Wed, 16 May 2012 18:46:56 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:37372) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUmzf-0005rk-1w for bug-gnu-emacs@gnu.org; Wed, 16 May 2012 18:46:55 -0400 Original-Received: from pchdb00005.uni-regensburg.de ([132.199.129.10]:52287 helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1SUmze-0003Nm-86 for bug-gnu-emacs@gnu.org; Wed, 16 May 2012 18:46:54 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:60086 Archived-At: Some not so old code that works fine with Emacs 23 is giving me unexpected trouble with Emacs 24. Essentially, it uses a mode derived from comint-mode. It sends input via comint-simple-send and comint-send-input, but it has its own output filters. In Emacs 24, ansi-color-process-output has been added to the hook comint-output-filter-functions. This hook is also run by comint-send-input. ansi-color-process-output references the variable comint-last-output-start. Upon start-up comint-mode assigns this variable a marker, but it does not give this marker a useful value. (Only comint-output-filter assigns a buffer position to comint-last-output-start.) ansi-color-process-output checks that comint-last-output-start is non-nil. But it does not handle the case that comint-last-output-start holds a marker that does not point anywhere. So this code fails. comint-last-output-start is an undocumented variable and I have not fully understood what it is supposed to do. Yet it appears to me that comint.el and ansi-color.el depend on each other in a too sophisticated way. In GNU Emacs 24.0.95.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.1) of 2012-04-04 on regnitz Windowing system distributor `The X.Org Foundation', version 11.0.10706000