unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#11493: 24.0.95; regression: comint-output-filter-functions / ansi-color-process-output
@ 2012-05-16 22:46 Roland Winkler
  2012-05-29 13:47 ` Chong Yidong
  0 siblings, 1 reply; 2+ messages in thread
From: Roland Winkler @ 2012-05-16 22:46 UTC (permalink / raw)
  To: 11493

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





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#11493: 24.0.95; regression: comint-output-filter-functions / ansi-color-process-output
  2012-05-16 22:46 bug#11493: 24.0.95; regression: comint-output-filter-functions / ansi-color-process-output Roland Winkler
@ 2012-05-29 13:47 ` Chong Yidong
  0 siblings, 0 replies; 2+ messages in thread
From: Chong Yidong @ 2012-05-29 13:47 UTC (permalink / raw)
  To: Roland Winkler; +Cc: 11493

"Roland Winkler" <winkler@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.






^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-05-29 13:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-16 22:46 bug#11493: 24.0.95; regression: comint-output-filter-functions / ansi-color-process-output Roland Winkler
2012-05-29 13:47 ` Chong Yidong

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