From unknown Sun Aug 17 22:10:26 2025 X-Loop: bug-gnu-emacs@gnu.org Subject: bug#5596: Term type warning lacks final \n Resent-From: jidanni@jidanni.org Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 18 Feb 2010 15:01:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: report 5596 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: To: 5596@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.126650522611535 (code B ref -1); Thu, 18 Feb 2010 15:01:02 +0000 Received: (at submit) by debbugs.gnu.org; 18 Feb 2010 15:00:26 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ni7re-000300-1o for submit@debbugs.gnu.org; Thu, 18 Feb 2010 10:00:26 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ni7rc-0002zv-PA for submit@debbugs.gnu.org; Thu, 18 Feb 2010 10:00:25 -0500 Received: from mail.gnu.org ([199.232.76.166]:46766 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ni7rX-0006I1-VM for submit@debbugs.gnu.org; Thu, 18 Feb 2010 10:00:20 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Ni7rX-0003OX-F6 for submit@debbugs.gnu.org; Thu, 18 Feb 2010 10:00:20 -0500 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on monty-python X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO,NO_REAL_NAME,UNPARSEABLE_RELAY autolearn=no version=3.1.0 Received: from lists.gnu.org ([199.232.76.165]:56287) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ni7rX-0003OH-5m for submit@debbugs.gnu.org; Thu, 18 Feb 2010 10:00:19 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ni7rW-0003AD-B8 for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2010 10:00:18 -0500 Received: from [140.186.70.92] (port=59710 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ni7rV-00038y-9f for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2010 10:00:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ni7rU-0004EO-KW for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2010 10:00:17 -0500 Received: from mailbigip.dreamhost.com ([208.97.132.5]:54286 helo=homiemail-a5.g.dreamhost.com) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ni7rU-0004EK-EP for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2010 10:00:16 -0500 Received: from jidanni.org (125-230-46-90.dynamic.hinet.net [125.230.46.90]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by homiemail-a5.g.dreamhost.com (Postfix) with ESMTP id 85EACBCB37 for ; Thu, 18 Feb 2010 07:00:15 -0800 (PST) From: jidanni@jidanni.org Date: Thu, 18 Feb 2010 23:00:13 +0800 Message-ID: <87635u6136.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -5.3 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.5 (-----) 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.$ From unknown Sun Aug 17 22:10:26 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: bug-gnu-emacs@gnu.org From: bug-gnu-emacs@gnu.org (Emacs bug Tracking System) To: jidanni@jidanni.org Subject: bug#5596 closed by Stefan Monnier (Re: bug#5596: Term type warning lacks final \n) Message-ID: References: <87635u6136.fsf@jidanni.org> X-Emacs-PR-Message: they-closed 5596 X-Emacs-PR-Package: emacs Reply-To: 5596@debbugs.gnu.org Date: Thu, 18 Feb 2010 17:06:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1266512762-17133-1" This is a multi-part message in MIME format... ------------=_1266512762-17133-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 . 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 by replying to this email. --=20 5596: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D5596 Emacs Bug Tracking System Contact bug-gnu-emacs@gnu.org with problems ------------=_1266512762-17133-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 5596-done) by debbugs.gnu.org; 18 Feb 2010 17:05:36 +0000 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 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 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 Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 602AF3A6E5; Thu, 18 Feb 2010 12:03:52 -0500 (EST) From: Stefan Monnier To: jidanni@jidanni.org Subject: Re: bug#5596: Term type warning lacks final \n Message-ID: References: <87635u6136.fsf@jidanni.org> Date: Thu, 18 Feb 2010 12:03:52 -0500 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) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3473=0 X-Spam-Score: -1.8 (-) X-Debbugs-Envelope-To: 5596-done 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 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.8 (-) > $ 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); ------------=_1266512762-17133-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 18 Feb 2010 15:00:26 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ni7re-000300-1o for submit@debbugs.gnu.org; Thu, 18 Feb 2010 10:00:26 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ni7rc-0002zv-PA for submit@debbugs.gnu.org; Thu, 18 Feb 2010 10:00:25 -0500 Received: from mail.gnu.org ([199.232.76.166]:46766 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ni7rX-0006I1-VM for submit@debbugs.gnu.org; Thu, 18 Feb 2010 10:00:20 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Ni7rX-0003OX-F6 for submit@debbugs.gnu.org; Thu, 18 Feb 2010 10:00:20 -0500 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on monty-python X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO,NO_REAL_NAME,UNPARSEABLE_RELAY autolearn=no version=3.1.0 Received: from lists.gnu.org ([199.232.76.165]:56287) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ni7rX-0003OH-5m for submit@debbugs.gnu.org; Thu, 18 Feb 2010 10:00:19 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ni7rW-0003AD-B8 for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2010 10:00:18 -0500 Received: from [140.186.70.92] (port=59710 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ni7rV-00038y-9f for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2010 10:00:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ni7rU-0004EO-KW for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2010 10:00:17 -0500 Received: from mailbigip.dreamhost.com ([208.97.132.5]:54286 helo=homiemail-a5.g.dreamhost.com) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ni7rU-0004EK-EP for bug-gnu-emacs@gnu.org; Thu, 18 Feb 2010 10:00:16 -0500 Received: from jidanni.org (125-230-46-90.dynamic.hinet.net [125.230.46.90]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by homiemail-a5.g.dreamhost.com (Postfix) with ESMTP id 85EACBCB37 for ; Thu, 18 Feb 2010 07:00:15 -0800 (PST) From: jidanni@jidanni.org To: bug-gnu-emacs@gnu.org Subject: Term type warning lacks final \n Date: Thu, 18 Feb 2010 23:00:13 +0800 Message-ID: <87635u6136.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -5.3 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.5 (-----) 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.$ ------------=_1266512762-17133-1--