From: Alan Mackenzie <acm@muc.de>
To: emacs-devel <emacs-devel@gnu.org>
Cc: csant <csant@csant.info>
Subject: Re: Device 0 is not a termcap terminal device
Date: Tue, 1 Sep 2009 20:08:26 +0000 [thread overview]
Message-ID: <20090901200826.GA2657@muc.de> (raw)
In-Reply-To: <200810031625.m93GPZKn023230@mothra.ics.uci.edu>
Hi Emacs!
A little less that a year ago, I supplied a "me too" to this bug in which
batch programs would crash with the error message
Device 0 is not a termcap terminal device
I have now tracked this bug down: `send-string-to-terminal' crashes in
-batch. To see this, compare the following:
$ emacs-23.1 -Q -batch -eval '(send-string-to-terminal "Hello, world!\n")'
Device 0 is not a termcap terminal device
$ emacs-22.3 -Q -batch -eval '(send-string-to-terminal "Hello, world!\n")'
Hello, world!
Comparing the old and new versions of dispnew.c, Fsend_string_to_terminal
has been extensively modified. Emacs-22 just did this:
fwrite (SDATA (string), 1, SBYTES (string), stdout);
, Emacs-23 has tarted this up (for multi-tty, maybe?) with code including
this:
tty = t->display_info.tty;
. It is this function with throws the error. It seems that batch mode
was overlooked when this change was made.
The CC Mode test suite uses `send-string-to-terminal' in batch mode to
display the names of test files on a single line without scrolling. It
is of some inconvenience to me not being able to run the test suite in
Emacs-23.
Would somebody who knows this code (Dan N?) please fix this soon. I
WOULD APPRECIATE A PATCH VERY QUICKLY!!!!
Thanks in advance!
--
Alan Mackenzie (Nuremberg, Germany).
next prev parent reply other threads:[~2009-09-01 20:08 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-24 17:55 Device 0 is not a termcap terminal device csant
2008-10-03 10:07 ` Alan Mackenzie
2008-10-03 16:14 ` Chong Yidong
2008-10-04 22:27 ` Alan Mackenzie
2009-02-04 22:45 ` moboyle79
2009-02-05 7:15 ` Dan Nicolaescu
2008-10-03 16:25 ` Dan Nicolaescu
2009-09-01 20:08 ` Alan Mackenzie [this message]
2009-09-01 21:31 ` Andreas Schwab
2009-09-01 22:27 ` Alan Mackenzie
2009-09-01 22:36 ` Andreas Schwab
2009-09-01 23:02 ` Alan Mackenzie
2009-09-02 9:14 ` Andreas Schwab
2009-09-02 9:57 ` Alan Mackenzie
2009-09-02 10:11 ` Andreas Schwab
2009-09-01 23:20 ` Stefan Monnier
2009-09-02 9:43 ` Alan Mackenzie
2009-09-02 17:48 ` Stefan Monnier
2009-09-11 20:36 ` Alan Mackenzie
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=20090901200826.GA2657@muc.de \
--to=acm@muc.de \
--cc=csant@csant.info \
--cc=emacs-devel@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).