GNU bug report logs - #11493
24.0.95; regression: comint-output-filter-functions / ansi-color-process-output

Previous Next

Package: emacs;

Reported by: "Roland Winkler" <winkler <at> gnu.org>

Date: Wed, 16 May 2012 22:48:01 UTC

Severity: normal

Found in version 24.0.95

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 11493 in the body.
You can then email your comments to 11493 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#11493; Package emacs. (Wed, 16 May 2012 22:48:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Roland Winkler" <winkler <at> gnu.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 16 May 2012 22:48:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Roland Winkler" <winkler <at> gnu.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.95; regression: comint-output-filter-functions /
	ansi-color-process-output
Date: Wed, 16 May 2012 17:46:50 -0500
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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11493; Package emacs. (Tue, 29 May 2012 13:49:01 GMT) Full text and rfc822 format available.

Message #8 received at 11493 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> gnu.org>
To: "Roland Winkler" <winkler <at> gnu.org>
Cc: 11493 <at> debbugs.gnu.org
Subject: Re: bug#11493: 24.0.95; regression: comint-output-filter-functions /
	ansi-color-process-output
Date: Tue, 29 May 2012 21:47:00 +0800
"Roland Winkler" <winkler <at> gnu.org> writes:

> In Emacs 24, ansi-color-process-output has been added to the hook
> comint-output-filter-functions.

Actually, in Emacs 23, ansi-color-process-output is also added to
comint-output-filter-functions at top-level in ansi-color.el.

> 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.

This is already fixed in the emacs-24 branch, r107978.  Thanks.





bug closed, send any further explanations to 11493 <at> debbugs.gnu.org and "Roland Winkler" <winkler <at> gnu.org> Request was from Chong Yidong <cyd <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 29 May 2012 13:50:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 27 Jun 2012 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 364 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.