From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Constantine Vetoshev Newsgroups: gmane.emacs.bugs Subject: bug#16470: 24.3.50; term mode and newlines with some window configurations Date: Thu, 16 Jan 2014 15:15:43 -0800 Message-ID: <4B69E121-3153-45CF-9903-D1294FDE4B8B@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1389914166 3194 80.91.229.3 (16 Jan 2014 23:16:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 Jan 2014 23:16:06 +0000 (UTC) To: 16470@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 17 00:16:12 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W3wAW-0004ty-3k for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Jan 2014 00:16:12 +0100 Original-Received: from localhost ([::1]:35485 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3wAV-0000Ne-FZ for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Jan 2014 18:16:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45884) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3wAS-0000NZ-21 for bug-gnu-emacs@gnu.org; Thu, 16 Jan 2014 18:16:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3wAM-0006pc-JI for bug-gnu-emacs@gnu.org; Thu, 16 Jan 2014 18:16:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40137) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3wAM-0006pS-Fu for bug-gnu-emacs@gnu.org; Thu, 16 Jan 2014 18:16:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W3wAM-0001iG-AR for bug-gnu-emacs@gnu.org; Thu, 16 Jan 2014 18:16:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Constantine Vetoshev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 16 Jan 2014 23:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 16470 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13899141566557 (code B ref -1); Thu, 16 Jan 2014 23:16:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Jan 2014 23:15:56 +0000 Original-Received: from localhost ([127.0.0.1]:54156 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W3wAF-0001hf-Q7 for submit@debbugs.gnu.org; Thu, 16 Jan 2014 18:15:56 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44106) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W3wAD-0001hO-5E for submit@debbugs.gnu.org; Thu, 16 Jan 2014 18:15:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3wAB-0006mb-Uo for submit@debbugs.gnu.org; Thu, 16 Jan 2014 18:15:52 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:56733) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3wAB-0006mX-Rt for submit@debbugs.gnu.org; Thu, 16 Jan 2014 18:15:51 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45827) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3wAA-000084-Dh for bug-gnu-emacs@gnu.org; Thu, 16 Jan 2014 18:15:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3wA8-0006mE-V7 for bug-gnu-emacs@gnu.org; Thu, 16 Jan 2014 18:15:50 -0500 Original-Received: from mail-yh0-x22a.google.com ([2607:f8b0:4002:c01::22a]:55358) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3wA8-0006lx-Ka for bug-gnu-emacs@gnu.org; Thu, 16 Jan 2014 18:15:48 -0500 Original-Received: by mail-yh0-f42.google.com with SMTP id z12so915363yhz.1 for ; Thu, 16 Jan 2014 15:15:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:content-transfer-encoding:subject:message-id:date :to:mime-version; bh=MG9TTbjeOzZgYqrSAKIJ9BgcDG7k+6ANPZf3ujQqLgg=; b=b3cYjNCN4SMaOPuPNDOch9PB1JOKpgJq1qW4+70mu3nqgHVjUTeYeGmEu4y7xlu5tF OOPOm6RrpT308AneT+/zsU4Yo2rDg9KXs8in/mwDMNEPNZVq1E3TqErlFBs4Gypg83I2 a8GqIfklhif6FUMxgj2pFglOt0tfes6XC2mIhm0+f+/c+heBaU4REnuoA8V6ad5qEpR0 UH8H66ME9ClNoY4kAWybR+vIqdDiX+7KS8vt6PyJ+wA4q84VcS5fIRzQ64WpXJHrCEkw 6hR7Wf+6gYECXcyY0+juGDYE2+gAgXa4z+UPeV2J/K+mN3pqxP7ykIjeeXw6RKbpibdT qXsg== X-Received: by 10.236.14.3 with SMTP id c3mr5752991yhc.100.1389914146820; Thu, 16 Jan 2014 15:15:46 -0800 (PST) Original-Received: from ?IPv6:2601:9:2780:1ce:9579:3b37:7e62:f1b? ([2601:9:2780:1ce:9579:3b37:7e62:f1b]) by mx.google.com with ESMTPSA id f78sm14580951yhp.12.2014.01.16.15.15.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 16 Jan 2014 15:15:45 -0800 (PST) X-Mailer: Apple Mail (2.1827) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:83615 Archived-At: Working with a build from today's Git mirror, revision 41c2162. Running = Emacs with -Q. Something is wrong with term.el's handling of newlines in some window = configurations. The following steps reproduce the bug consistently on my machine: 0. Make sure you have no .zshrc file in your home directory. 1. Start Emacs (with -Q). 2. Stretch the frame so it has enough room for three reasonably large = vertical splits. 3. Make 3 equally-sized vertical windows (C-x 3, C-x 3, C-x 3, C-x =3D). 4. Put your cursor in the right-most window. 5. Run M-x term, then select /bin/zsh as your shell. You should = immediately see the inverted '%' which indicates newline oddness with = zsh. If you run any command, e.g., ls, you will see '%' at the end of = all output. 6. Try running 'unsetopt prompt_sp' in the zsh instance. You'll see the = '%' go away, but this is undesirable, because it means that, e.g., 'echo = -n hi' does not work properly. Here is where things get even more strange. 7. exit from the zsh shell and kill the *terminal* buffer. 8. C-x 1 so you have just one empty *scratch* window. 9. M-x term, select /bin/zsh again. 10. No bad '%' behavior occurs now. To summarize: when you make three vertical windows, term.el's handling = of newlines breaks. The behavior seems tied to window splits. I have = tried this with term-suppress-hard-newline set to t and nil, and it does = not seem to make a difference. In GNU Emacs 24.3.50.1 (x86_64-apple-darwin13.0.0, NS = apple-appkit-1265.00) of 2014-01-16 on athena.local Repository revision:=20 Windowing system distributor `Apple', version 10.3.1265 Configured using: `configure --with-ns' Important settings: value of $LC_COLLATE: C value of $LC_CTYPE: en_US.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x 3 =20 M-x t e r m l s =20 e x t i i t =20 C-x k C-x 3 C-x + =20 s-x M-x t e r m l s =20 e x i t C-d C-x k C-x=20 C-g M-x t e r m e x i t =20 C-x 0 s-x M-x r e p o r t -=20 Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. call-interactively: End of buffer C-x C-g is undefined Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils term disp-table easymenu ehelp ring time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process cocoa ns multi-tty emacs)