emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Device 0 is not a termcap terminal device


From: Alan Mackenzie
Subject: Re: Device 0 is not a termcap terminal device
Date: Tue, 1 Sep 2009 22:27:54 +0000
User-agent: Mutt/1.5.9i

Good evening, Andreas!

On Tue, Sep 01, 2009 at 11:31:53PM +0200, Andreas Schwab wrote:
> Alan Mackenzie <address@hidden> writes:

> > The CC Mode test suite uses `send-string-to-terminal' in batch mode

> This is your problem.

Do you mean that `send-string-to-terminal' shouldn't have to work in
batch mode?

The documentation of the function in the Elisp manual for Emacs 22 just
said that the string is sent to "the terminal", which presumable means
stdout.  

In Emacs 23's Elisp, it says the string goes to "the selected frame's
terminal", which is clearly undefined in batch mode.

This change wasn't in the "incompatible changes" section of NEWS, so it
would appear to be a bug.

> Use princ instead.

This doesn't work.  In place of the smoothly updating line produced by
send-string-to-terminal, princ sputters, leaves the line partially
blank, updating fragments of it every few seconds.

princ is the wrong function - it's purpose is to convert lisp objects to
human reabable strings, so it'll be doing something wierd with the
control characters in the output strings, or buffering them
inappropriately, or whatever.

The strings being output are terminal specific, therefore they need an
"raw output to terminal" function, such as send-string-to-terminal.  I
think I was right.  :-)

> Andreas.

-- 
Alan Mackenzie (Nürnberg).




reply via email to

[Prev in Thread] Current Thread [Next in Thread]