Subject: bug#5596 closed by Stefan Monnier <[email-masked]> (Re: bug#5596: Term type warning lacks final \n)

From: [email-masked] (Emacs bug Tracking System)
Date: Thu, 18 Feb 2010 17:06:02 +0000

This is an automatic notification regarding your bug report
which was filed against the emacs package:

#5596: Term type warning lacks final \n

It has been closed by Stefan Monnier <[email-masked]>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Stefan Monnier <[email-masked]> by
replying to this email.

-- 
5596: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5596
Emacs Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#5596: Term type warning lacks final \n
From: Stefan Monnier <[email-masked]>
To: [email-masked]
Date: Thu, 18 Feb 2010 12:03:52 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

> $ TERM=dumb emacs -nw
> emacs: Terminal type "dumb" is not powerful enough to run Emacs.
> It lacks the ability to position the cursor.
> If that is not the actual type of terminal you have,
> use the Bourne shell command `TERM=... export TERM' (C-shell:
> `setenv TERM ...') to specify the correct type.  It may be necessary
> to do `unset TERMINFO' (C-shell: `unsetenv TERMINFO') as well.$

Thanks should be fixed with the patch below,

        Stefan

=== modified file 'src/term.c'
--- src/term.c	2010-01-13 08:35:10 +0000
+++ src/term.c	2010-02-18 16:51:07 +0000
@@ -3938,6 +3938,8 @@
   va_start (ap, str);
   fprintf (stderr, "emacs: ");
   vfprintf (stderr, str, ap);
+  if (!(strlen (str) > 0 && str[strlen (str) - 1] == '\n'))
+    fprintf (stderr, "\n");
   va_end (ap);
   fflush (stderr);
   exit (1);

Subject: Term type warning lacks final \n
From: [email-masked]
To: [email-masked]
Date: Thu, 18 Feb 2010 23:00:13 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

Fellas, you forgot the final \n:
$ TERM=dumb emacs -nw
emacs: Terminal type "dumb" is not powerful enough to run Emacs.
It lacks the ability to position the cursor.
If that is not the actual type of terminal you have,
use the Bourne shell command `TERM=... export TERM' (C-shell:
`setenv TERM ...') to specify the correct type.  It may be necessary
to do `unset TERMINFO' (C-shell: `unsetenv TERMINFO') as well.$