From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Nicholas Ochiel Newsgroups: gmane.emacs.devel Subject: Re: [GUI emacs:term.el] Possible regression causes word wrapping to break term display in zsh Date: Sat, 26 Nov 2016 13:29:48 +0300 Message-ID: References: <8337ie38q3.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1480156224 30838 195.159.176.226 (26 Nov 2016 10:30:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 26 Nov 2016 10:30:24 +0000 (UTC) Cc: Dan Nicolaescu , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 26 11:30:19 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cAaFN-0006od-5m for ged-emacs-devel@m.gmane.org; Sat, 26 Nov 2016 11:30:17 +0100 Original-Received: from localhost ([::1]:49929 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cAaFQ-0003cg-Lk for ged-emacs-devel@m.gmane.org; Sat, 26 Nov 2016 05:30:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53759) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cAaFK-0003cJ-0S for emacs-devel@gnu.org; Sat, 26 Nov 2016 05:30:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cAaFI-0001DQ-Sm for emacs-devel@gnu.org; Sat, 26 Nov 2016 05:30:14 -0500 Original-Received: from mail-wj0-x232.google.com ([2a00:1450:400c:c01::232]:35310) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cAaFG-0001CQ-Uy; Sat, 26 Nov 2016 05:30:11 -0500 Original-Received: by mail-wj0-x232.google.com with SMTP id v7so76885766wjy.2; Sat, 26 Nov 2016 02:30:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=i/YtX3XGhxm7t0jiSfyPSJHoJvG62paRRSRdKX4Ih74=; b=YoVjslYkBytytoLoLgDZNDt8+vlIt4RTLmy2KRw2oP/0dZtiIaqv5yqu8nE45hPb1G ybU4FKl18YY3fCDiusSG5mvB19H2/JJ0AYnrCEHDNLrmpu0zLtY37fdgMWu51d6g3K8G O8PIg2WBcKUOuihbz0ZzoLbMEYVkUlZvK1O281RJ6sI7CYggbk5x8/UYGSjI+Hfc7ppa z2ONMfpBuj12GGiwB5VeXCw1P9C3h06VSEaZyc5L23xoZn2HELsoP1Q/25oouq33csKW vim9GyGaE6OgiHmm4E5Uv86iXeKqsGdI5zWWHuPU7pka0kc/PmlZrhOgU1v2ua9X7ru6 UDHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=i/YtX3XGhxm7t0jiSfyPSJHoJvG62paRRSRdKX4Ih74=; b=VGSYLapWVYNGJMFZPKxWBxse4HVUnvse/q351sxM5+ga8nCJq1nI1qzJGJ8EVzfSTl yoyn/RDiL7qJsLP09+iz3d3WU/HyFaJ6c4ah9dWiyY3jiYb9LwHn6I4L/JjQ+sxxkgii cvQJ8aznfD4EUT3lGNudTc+0Pcp7+u+DysweBQbZH2Xssutp3dO2w55EifBMkK1zYppe i3x10ZVb66oorRZG8YtH3zgKYC3WZ3JFtjCDM4V70af36E7eQa4f+2ZHGhlVT+CAKRPL yeEBT2YA69Cpi1rh1K7b72rvCPAOF0j8tvojdi4M9tIY9Tx8IbF9cYVjBkP5YirNZM9p Cwow== X-Gm-Message-State: AKaTC03WYSYzU42X2xQW8MYEwtSFSHwz2gvp1VbympX7e/9BG5VyH33bAn3Rq9ikmq7tuV5u37rXnVr6roRLuA== X-Received: by 10.194.104.39 with SMTP id gb7mr10341650wjb.139.1480156209088; Sat, 26 Nov 2016 02:30:09 -0800 (PST) Original-Received: by 10.80.173.172 with HTTP; Sat, 26 Nov 2016 02:29:48 -0800 (PST) In-Reply-To: <8337ie38q3.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c01::232 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:209612 Archived-At: > The discussion there seems to say it has to do with something called oh-my-zsh and/or multi-term? Indeed, yes, oh-my-zsh (http://ohmyz.sh), which provides plugins for zsh appears to be the source of the problem. (I apologise for not investigating that a bit more before posting.) Specifically, by disabling the plugin which provides *syntax highlighting* in the shell, (https://github.com/zsh-users/zsh-syntax-highlighting), ~ emacs -Q --eval '(term "/bin/zsh")' ~ works without error. (However, the syntax highlighting plugin works without any issues in xterm.) I've provided further details below in case they are still relevant. > Are zsh and a GUI frame necessary for reproducing this issue? - zsh is necessary. - The issue occurs both in gui and virtual console. > Does the recipe you posted reproduce the problem in "emacs -Q"? Reproduced with ~ emacs -Q --eval '(term "/bin/zsh")' ~ > Do you mean point jumps by itself, or do you mean it jumps when you try moving it with cursor motion keys? IOW, please describe what triggers these jumps. - Type one char at a time until the edge of the frame is reached. - Type one char; line wraps to the next line. - Type one char; point moves to line above. > Did you try to disable the fringes? Did it help? Issue still occurs when: - ~(fringe-mode nil)~ - ~(setq overflow-newline-into-fringe nil) -- Sincerely, Nicholas Ochiel On 26 November 2016 at 12:12, Eli Zaretskii wrote: >> From: Nicholas Ochiel >> Date: Sat, 26 Nov 2016 02:04:56 +0300 >> Cc: emacs-devel@gnu.org >> >> Steps: >> 0. Open gui emacs in X. >> 1. M-x term (char mode, /bin/zsh) > > Are zsh and a GUI frame necessary for reproducing this issue? > >> 2. Enter a long input that causes text to wrap at fringe. >> 3. Notice that point jumps irregularly. > > Do you mean point jumps by itself, or do you mean it jumps when you > try moving it with cursor motion keys? IOW, please describe what > triggers these jumps. > >> 4. Move point and attempt to edit some portion of wrapped line in terminal. >> 5. Notice that prompt or previous terminal output is overwritten in an >> unpredictable manner. >> 6. Further operations on text cause unpredictable editing behaviour. >> 7. This occurs regardless of truncate-lines, visual-line-mode. > > Did you try to disable the fringes? Did it help? > >> >> Reproduced with: >> - Emacs 24.5.1, >> - emacs-snapshot 26.0.50.2 >> >> This odd behaviour was also reported here: >> 1. https://github.com/syl20bnr/spacemacs/issues/5520 > > The discussion there seems to say it has to do with something called > oh-my-zsh and/or multi-term? Does the recipe you posted reproduce the > problem in "emacs -Q"? > > Thanks.