Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

comint-mode broken in GNU Emacs 21.2.1?

1 view
Skip to first unread message

Vincent Montressor

unread,
Sep 18, 2003, 4:28:29 PM9/18/03
to
I'm having trouble using comint-mode under GNU Emacs 21.2.1:

% emacs -nw -q

M-x compile

Change compile command to something that accepts interactive input, such as cat:

C-a C-k cat RET

Go to the end of the compilation buffer and enter comint-mode:

C-x o M->

M-x comint-mode

Type something and hit RET:

hello, world RET

Emacs issues the following error:

error in process filter: Wrong type argument: markerp, nil

Does anyone know how to fix this?

Stefan Monnier

unread,
Sep 18, 2003, 4:37:13 PM9/18/03
to
> error in process filter: Wrong type argument: markerp, nil
> Does anyone know how to fix this?

The usual way: set debug-on-error, reproduce the error, look at the
backtrace, if you don't know what to do then, post the backtrace for more
info, ...


Stefan

Kevin Rodgers

unread,
Sep 18, 2003, 6:39:01 PM9/18/03
to
Vincent Montressor wrote:


I'll bet you're using my compile-input.el hack written way back in 1996.
Try this version, which adds comint-accum-marker to the comint-mode emulation:

compile-input.el

Vincent Montressor

unread,
Sep 22, 2003, 6:24:14 AM9/22/03
to
"Stefan Monnier" <mon...@iro.umontreal.ca> wrote in message news:<jwvy8wl...@vor.iro.umontreal.ca>...

The compile-input.el solution posted by Kevin Rodgers solved the
problem for me (thanks!), so I am back in business. (Indeed, this
solution is even nicer than using comint-mode, since I don't have to
change modes in the compilation buffer.)

Just out of curiosity, I did as you suggested above, using comint-mode
as before, and got this backtrace:

Debugger entered--Lisp error: (wrong-type-argument markerp nil)
marker-position(nil)
compilation-filter(#<process compilation> "hello, world\n")

I can't afford the time to explore it further now, especially since my
problem is solved, but anyone else who's interested now has that as a
starting point.

Thanks to both of you for your assistance.

0 new messages