From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#5596: Term type warning lacks final \n Date: Thu, 18 Feb 2010 12:03:52 -0500 Message-ID: References: <87635u6136.fsf@jidanni.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1266513785 16201 80.91.229.12 (18 Feb 2010 17:23:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Feb 2010 17:23:05 +0000 (UTC) To: jidanni@jidanni.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 18 18:22:59 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NiA5b-0007Mg-1s for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Feb 2010 18:22:59 +0100 Original-Received: from localhost ([127.0.0.1]:52227 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NiA5a-0008Nl-B4 for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Feb 2010 12:22:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NiA5W-0008NQ-1g for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2010 12:22:54 -0500 Original-Received: from [140.186.70.92] (port=48930 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NiA5V-0008NC-6T for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2010 12:22:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NiA5T-00089a-Ni for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2010 12:22:52 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48073) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NiA5T-00089W-Ic for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2010 12:22:51 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Ni9pC-0004SO-9b for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2010 12:06:02 -0500 Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 18 Feb 2010 17:06:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org Mail-Followup-To: 5596@debbugs.gnu.org, Stefan Monnier X-Emacs-PR-Message: cc-closed 5596 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5596-done@debbugs.gnu.org id=D5596.126651273617118 (code D ref 5596); Thu, 18 Feb 2010 17:06:02 +0000 Original-Received: (at 5596-done) by debbugs.gnu.org; 18 Feb 2010 17:05:36 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ni9om-0004S3-N4 for submit@debbugs.gnu.org; Thu, 18 Feb 2010 12:05:36 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ni9nE-0004Qm-7w for 5596-done@debbugs.gnu.org; Thu, 18 Feb 2010 12:04:00 -0500 Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id o1IH3qi2021091; Thu, 18 Feb 2010 12:03:52 -0500 Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 602AF3A6E5; Thu, 18 Feb 2010 12:03:52 -0500 (EST) In-Reply-To: <87635u6136.fsf@jidanni.org> (jidanni@jidanni.org's message of "Thu, 18 Feb 2010 23:00:13 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3473=0 X-Mailman-Approved-At: Thu, 18 Feb 2010 12:05:35 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 18 Feb 2010 12:06:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:35175 Archived-At: > $ 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);