From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: How to paste under terminal emacs? Date: Wed, 16 Mar 2016 10:45:17 +0600 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1458103556 10412 80.91.229.3 (16 Mar 2016 04:45:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Mar 2016 04:45:56 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Shiyao Ma Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 16 05:45:52 2016 Return-path: Envelope-to: geh-help-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 1ag3LD-0000qC-L2 for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Mar 2016 05:45:51 +0100 Original-Received: from localhost ([::1]:53100 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ag3LC-0002mU-Rg for geh-help-gnu-emacs@m.gmane.org; Wed, 16 Mar 2016 00:45:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59113) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ag3L2-0002mN-68 for help-gnu-emacs@gnu.org; Wed, 16 Mar 2016 00:45:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ag3L0-0000aB-Ve for help-gnu-emacs@gnu.org; Wed, 16 Mar 2016 00:45:40 -0400 Original-Received: from mail-lf0-x235.google.com ([2a00:1450:4010:c07::235]:33332) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ag3L0-0000a4-Mu for help-gnu-emacs@gnu.org; Wed, 16 Mar 2016 00:45:38 -0400 Original-Received: by mail-lf0-x235.google.com with SMTP id h198so10547828lfh.0 for ; Tue, 15 Mar 2016 21:45:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=A+4vtaloduTdQ57Hq+50c6wDGClUdCC49n+TqCkMh1U=; b=GkWsRmfkB/WjhiBaZG6xU8M/1ja3CLtceM25hOBAsLwyz8ltXANKbgojmqrv9xPT3H e9hPs2XsBDx8muy5GU6LSjssrqGpw6xy0SzdnC5knkMYZ6bmXptY7dYHOt/JQuc0MsnK HnHAYo75OKxvf0mk6jAr+UBb6DC+f5zKeaAHTR/s41Jk2Fk6RP9NuEeSrPU+ZQOrAKiC EXcgdBIYYBA7YssefUaUWQKqv8uISeFxIFzFYzygTimMcI1Chwe0Murg2f9lmO7i4P6l qIiWH1l2VuiMS/5acy4gdcxKTSlG+0TFq59Ep+xOodeuERyH/7B5Bg4qLDnE8CZAcOt8 n5Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=A+4vtaloduTdQ57Hq+50c6wDGClUdCC49n+TqCkMh1U=; b=NIF8HMDNLAQvvFMsCqxcKDsxjMPaxOtgEvT+j5FrGxHAXu0vXowtb+Mnbiy0TE+Uqq vw2uOo5KDwmfXaoSda2QO7YfBVJhVnncXXB+4UXknJdfAwN1RkOCOGaDMUlCutMJm1oq GZxqoituEroM70Ol0Oyn/paCz+ghFmULPOxOEzezHmTJNmMm++J0NS/THNo9lIow1Xgt 86ZTmrTLLGcuWFFK1UjGkxWchL9lM+ITCMO9YyfegegBZgyf3vQfApeoxDhmjuwc3T+E oh1Ri77NnlhMA+Lmw/Bi2ZFQMf7vFcDJkidfnKdikUcCR9Edwq/Y3YcqLLYshHY6d9DV E7ww== X-Gm-Message-State: AD7BkJJjWyEubOhZRiuGEoTBc5VxORQwsisC3nF5UeAToscIBW//y7kmmqrCyKQjW5NIHbqNp0IRjJIVsN0s4w== X-Received: by 10.25.90.21 with SMTP id o21mr434446lfb.166.1458103537391; Tue, 15 Mar 2016 21:45:37 -0700 (PDT) Original-Received: by 10.112.254.164 with HTTP; Tue, 15 Mar 2016 21:45:17 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: sK4aLvsInP_IOi_XhAJ_Z216w3I X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::235 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:109590 Archived-At: On Wed, Mar 16, 2016 at 8:41 AM, Shiyao Ma wrote: > To be specific, I am under iTerm2 using ssh to a linux box. > > I often paste stuff using command+v to terminal emacs. > > However, looks like emacs takes the paste char by char, which significant= ly > makes the paste unnecessarily slow. > > How to make emacs take the paste as a whole? Does iTerm2 implement xterm=E2=80=99s [bracketed paste][1] protocol? [1]: http://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h2-Bracketed-Pa= ste-Mode Emacs could watch for an ESC [ 2 0 0 ~ sequence and, when it sees one, stop redrawing until ESC [ 2 0 1 ~ is seen.