From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Aaron Jensen Newsgroups: gmane.emacs.bugs Subject: bug#30544: 26.0.91; ansi-term duplicates 2 line zsh prompts any time windows change (maybe other times) Date: Wed, 14 Mar 2018 18:33:07 -0700 Message-ID: References: <83vadyr278.fsf@gnu.org> <83o9jqqzlj.fsf@gnu.org> <87in9yw73t.fsf@gmail.com> <87d106w3k7.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1521077538 1705 195.159.176.226 (15 Mar 2018 01:32:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 15 Mar 2018 01:32:18 +0000 (UTC) Cc: 30544@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Mar 15 02:32:14 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1ewHkY-0000Fr-0G for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Mar 2018 02:32:10 +0100 Original-Received: from localhost ([::1]:49330 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ewHmY-0004g9-Rr for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Mar 2018 21:34:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48898) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ewHmP-0004fo-La for bug-gnu-emacs@gnu.org; Wed, 14 Mar 2018 21:34:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ewHmM-0001QU-HC for bug-gnu-emacs@gnu.org; Wed, 14 Mar 2018 21:34:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54168) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ewHmM-0001QJ-Dm for bug-gnu-emacs@gnu.org; Wed, 14 Mar 2018 21:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ewHmM-0005KM-2D for bug-gnu-emacs@gnu.org; Wed, 14 Mar 2018 21:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Aaron Jensen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Mar 2018 01:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30544 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 30544-submit@debbugs.gnu.org id=B30544.152107759520417 (code B ref 30544); Thu, 15 Mar 2018 01:34:02 +0000 Original-Received: (at 30544) by debbugs.gnu.org; 15 Mar 2018 01:33:15 +0000 Original-Received: from localhost ([127.0.0.1]:33832 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ewHlb-0005JE-Ft for submit@debbugs.gnu.org; Wed, 14 Mar 2018 21:33:15 -0400 Original-Received: from mail-qt0-f182.google.com ([209.85.216.182]:33816) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ewHlZ-0005Ix-Dq for 30544@debbugs.gnu.org; Wed, 14 Mar 2018 21:33:13 -0400 Original-Received: by mail-qt0-f182.google.com with SMTP id l25so5653048qtj.1 for <30544@debbugs.gnu.org>; Wed, 14 Mar 2018 18:33:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=vEB5y4yjh0KyBinRD8skbS8pdZXPEPKZUvQDVpzea4w=; b=sV2AooT/8NRvQhzNTMg8jrEBv9p4dZkWrJLpaAGDqZS+ykjOMSzSQTqFqfgWO3nULl A+xaRmvb62drNbUcATuvNYuPflXWuLHp25dxmiQY9Zob3A77PfF63A0FKKaTKi1btHNh nXvNmAh9+IYfv/a9wP+q6vczeD0NGJ6uyL8VhiVABFj4JiOoWU9EcedxFaEbZDu8ot0j IDrWpiLM7n+P/0FLCcAUVoS/m+OxnugUdhYAeiVQToCKhT405JJYVXLQYZY8MNF6sJTg Z8FRLZYZS5HWqEAUdHTj6WDNwYL0vKHoUol48TJ+5Rr9x0nt6ntVep9MNfEYBlot2X5f jxhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=vEB5y4yjh0KyBinRD8skbS8pdZXPEPKZUvQDVpzea4w=; b=aeHr2pUicIxX9PWGqktJfSPo+w155B4giR4ZPsPFxeR5qEqPpE/oCMRUcIBngkm1aL iAzI+E3gL0LqdoY6o5zlcPH3wgvax8q/ZkSgFt5i9iclKOFeJ4M29mS1rIX0INhBbAqc SmdP8TrE7oXUeOg6FAziXYZSYebhY8caL71WjBw852tTeyrGXt7Zue+49agICEb3afaY pZxPLjhbx+Xa564AQxmV4RgYFlhsQBVowfNizS1Xn91t978gmPULcSYsPhfiLE/Nt+J2 19B6P4G7HlLdDNB57fmz/l8+DjJShInC9qzct+RXwzXTQpi6mbqRixngl0foRyVo180y ZRSw== X-Gm-Message-State: AElRT7HR0Zn78xpBXiI+h92xnl9xcTc0yD58bgbtuX5mMUuT6q/Mwa8x lL8ZR0y6HT6o4PuFJOpHrO6QH2cguWZtZ8urBdQ= X-Google-Smtp-Source: AG47ELtx0LnJOPBHFN6JX9M4VAzZRgNnpRSDtRvNPJ2xnFdI8lF/25M0NaK92qQgtClUW/urgFWI6QafI5e+ixxY++Q= X-Received: by 10.200.7.77 with SMTP id k13mr10436631qth.165.1521077587919; Wed, 14 Mar 2018 18:33:07 -0700 (PDT) Original-Received: by 10.237.60.76 with HTTP; Wed, 14 Mar 2018 18:33:07 -0700 (PDT) In-Reply-To: <87d106w3k7.fsf@gmail.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:144298 Archived-At: On Wed, Mar 14, 2018 at 6:06 PM, Noam Postavsky wrote: > Yes, I did PROMPT=$'one\ntwo' (by the way, I found I had to remove > 'prompt adam1' from my .zshrc (the default setup puts it in), otherwise > setting PROMPT has no effect). I can reproduce the problem in term.el, > but urxvt doesn't have any problems no matter how I resize. Ah, apparently I can only reproduce it in iterm2 if I have an RPROMPT that does a lineup and linedown to get the RPROMPT on the first line... PROMPT=$'one\ntwo' local _lineup=$'\e[1A' local _linedown=$'\e[1B' RPROMPT='%{${_lineup}%}%*%{${_linedown}%}' I've also noticed that emacs seems to be doing unnecessary resizing when switching between perspectives using perspective.el. I haven't yet looked into what is causing that, but I suspect adding a check similar to what iterm2 has, where we actually see what the process tty size is and only set it if it has changed may help that.