From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3133 invoked by alias); 20 Mar 2016 18:33:53 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21390 Received: (qmail 17645 invoked from network); 20 Mar 2016 18:33:52 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=98Wi74E2gkgTPszBar0f/aNTl7WNtaFOTj9uyN3YYho=; b=F0CoeMZoWzBm2gGgMRnMI/vIqdnTS+LPk1+2NcG/cjLRidFr9m8UNYF9rE8dllIe7e vJJUshZ9LaMY2UMCoKzR3X+hIBiYyXJCW3iuPnw5KnAkC9QX/cfy5o73QTmYjLzu18Ty lp4FBomI/hZbjOb1rU/OuUFfu/5YiEMxwxo8biH4HZnDvg/TSz4hS+TpAIGQNRHeVfBG xjl0f4LuCZ/v+bHUZKneznO+Us+IYhurgtVVSVWdGbBBSnpe2zwEZdWsV9dvTWs01n9B OsdK7tEGp4rwmzibm+wlaYHDVE6tctzszZyZfvz42XKa+R9DWayVzG2ffNZH87t3ioLx HSRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version; bh=98Wi74E2gkgTPszBar0f/aNTl7WNtaFOTj9uyN3YYho=; b=FKRYxcblbR23Xi4kVM1ndmaRhhYI7h/giKlkYZUhd86aaEjVRWGPdCQHBXjXkr/pNP XGOYSepciKanj6cS6zzxwjbJ8cuGmw/NioUzD2WUG9jljWMOziQInEAGn3sJZOSzxWhy X2Winf+5ly/bcXjJyiHw8dZT4fkFFUHs2lKg0KPouBEHyQDlOm9HmA3LYs6A7VwXlP6O A2hqg4SqyhrqE085VflAsnH2q8vPOKv4pMtedIaO90uc0tI3DTruYRPhBmYQRVe+AlBb MP5F8Ly8esfo7ZtWc6IQP8+GCFN0T/W3LdHw1giu3YtwitF59jKETI6B1zJ0zonP0HJv fg6g== X-Gm-Message-State: AD7BkJL1P+lGhHi9pTDR0ijxdr2YzcptoygPdiYXeLON2N8+tAIIm212MD7noKM6kJqGww== X-Received: by 10.66.66.108 with SMTP id e12mr39578540pat.33.1458498830718; Sun, 20 Mar 2016 11:33:50 -0700 (PDT) From: Bart Schaefer Message-Id: <160320113419.ZM22381@torch.brasslantern.com> Date: Sun, 20 Mar 2016 11:34:19 -0700 In-Reply-To: <20160314195716.GB17519@lorien.comfychair.org> Comments: In reply to Danek Duvall "Re: bracketed-paste & gnome-terminal" (Mar 14, 12:57pm) References: <20160310222924.GI10755@lorien.comfychair.org> <160310145228.ZM24921@torch.brasslantern.com> <20160314195716.GB17519@lorien.comfychair.org> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: bracketed-paste & gnome-terminal MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Missed this one ... On Mar 14, 12:57pm, Danek Duvall wrote: } } I see something similar when running zsh from M-x shell in emacs (something } another user pointed me at): } } $ ^[[?2004h } ^[[?2004l } } Everything's fine when it pastes, presumably because emacs' terminal } emulation doesn't support bracketed paste. Emacs terminal emulation always behaves as if bracketed-paste were in effect, because it's not attempting to do live interaction with the program running in the buffer -- that is, you do all your editing in the emacs buffer without anything being sent to the shell, and then when you finally press enter (or equivalent binding) it all gets transmitted at once. So emacs has no reason to recognize escapes that differentiate a paste from any other kind of input. } Is there any way around either of these problems, other than } explicitly unsetting zle_bracketed_paste when detecting that you're } running inside an emacs terminal or gnome-terminal? No, not that I can think of. These are among the reasons that I think bracketed-paste ought to have been something you have to explicitly turn ON, rather than something you have to turn off, but consensus went the other way. -- Barton E. Schaefer