unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Roland Winkler" <winkler@gnu.org>
To: 11493@debbugs.gnu.org
Subject: bug#11493: 24.0.95; regression: comint-output-filter-functions / ansi-color-process-output
Date: Wed, 16 May 2012 17:46:50 -0500	[thread overview]
Message-ID: <87y5orhhgl.fsf@gnu.org> (raw)

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





             reply	other threads:[~2012-05-16 22:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-16 22:46 Roland Winkler [this message]
2012-05-29 13:47 ` bug#11493: 24.0.95; regression: comint-output-filter-functions / ansi-color-process-output Chong Yidong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y5orhhgl.fsf@gnu.org \
    --to=winkler@gnu.org \
    --cc=11493@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).