all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#5596: Term type warning lacks final \n
@ 2010-02-18 15:00 jidanni
  2010-02-18 17:03 ` Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: jidanni @ 2010-02-18 15:00 UTC (permalink / raw
  To: 5596

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







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

* bug#5596: Term type warning lacks final \n
  2010-02-18 15:00 bug#5596: Term type warning lacks final \n jidanni
@ 2010-02-18 17:03 ` Stefan Monnier
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2010-02-18 17:03 UTC (permalink / raw
  To: jidanni

> $ 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);







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

end of thread, other threads:[~2010-02-18 17:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-18 15:00 bug#5596: Term type warning lacks final \n jidanni
2010-02-18 17:03 ` Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.