From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Kevin Shell Newsgroups: gmane.emacs.help Subject: Re: Pasting texts into terminal emacs buffer Date: Sun, 20 Sep 2020 22:56:45 +0800 Message-ID: <9aecfd4d-f1bf-2d59-1c14-a514ec00a16e@gmx.com> References: <83d02h0yc5.fsf@gnu.org> <24613c7d-987b-eef6-2b16-f0c0a8618408@gmx.com> <83v9g8zlz7.fsf@gnu.org> <30ab2ed2-610c-2610-b111-583ec61ad528@gmx.com> <83r1qwzh7v.fsf@gnu.org> <83k0wozf8v.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29937"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.2.2 To: Eli Zaretskii , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 20 16:59:07 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kK0nz-0007fU-KB for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 20 Sep 2020 16:59:07 +0200 Original-Received: from localhost ([::1]:54870 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kK0ny-00050P-Dl for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 20 Sep 2020 10:59:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48702) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kK0lz-00050I-Ny for help-gnu-emacs@gnu.org; Sun, 20 Sep 2020 10:57:03 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:34831) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kK0lx-0004qG-Mz; Sun, 20 Sep 2020 10:57:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1600613819; bh=Nv8CrOAzwlViS369dtwr5Hr1m4Ggh8+wpFuZ2AoAO8E=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=SPXduZ5o00neu/PjSjWnSKvoP7Vo5tRdEj7sUaJlFSP+H9b2XpTFW0TuuK4fS2ie6 sbTZQ5i+EACBPYwRL47H3PmYGi8TBbc2VqUbxPapmQzfWxJpWbnOtoiapHttI6cGpa x3xLvZ3IZhx8897zTtakqYrBeRoFkEnCqo4LYgdw= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [0.0.0.0] ([45.152.181.78]) by mail.gmx.com (mrgmx005 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MwQT9-1kaIZQ1gft-00sPH0; Sun, 20 Sep 2020 16:56:59 +0200 In-Reply-To: <83k0wozf8v.fsf@gnu.org> Content-Language: en-US X-Provags-ID: V03:K1:wa245ldOtSm5tGQOf9hwRvziwUchaWrXwi1EtUkzngJy37hIe08 ys8pZQRNrGz5/BwyJagJ/vmqr3wcUWh7zDtQo4kJUuZOi6WKBTh326Q/LeQEbptFHOAT3tl NQiPyX0ms/+tluPeG2Bs+eHU2AtQxoQIrl6aTvdsQINK7kjb2XKvMaywodug4QMH5qp8Xv0 kYD+wOydwT8j5WtJsARDQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:JmgjxUqnWtM=:EZdY5sgUw5rakLKSXHDvy2 Ujs+0X3LpKBWb9W+2aiuf1Zmk4jD+T04QnFvMyGG9qlOyrwDq+5MEk7mzLmzce6zNtjV74Scf gAYh7EcpCyjyf6FXuq12Pn3ZRncBc9jgkk+TyrRcSAoayNCKQXVMlAIBFSEReBYP0XWA8N1VG XGlvuGFIX+YpPtzJY8eM3K2ybZX3U8MEO5FYq+KLmOzGM5fSiP+sfcZ0GtAEcKdioztPFiLH3 NZDmzVWAWM6IRtkWfMn6EhJt0u/CW269zvAn3RgmZ8jr1UCH5pe7M6eJ6C4bXGABLYycNKQuI OwCtSW99Lj9q3cQjZ2cxNDZqckvXKJnkTxktWTa1nBsjULoWylPQUe1aINF4nT2Dybks+e3p7 2+0aTYiIB966MJXhNuEibmkfH38xkrb8PFTxWlscvy6fDDY15TI3kr1T4xgfuHaHyHH44pWyt 3cTbzoxS0NJbgzGRhtk0R9Cl6GfvhXJs2IntV5VFipnCiVKzLepPCb/hLtdCauVAgvO8BOjqS r+/7FqLTiNEpTD1md83RNto7qh9PacSLWDGLwlpzf8vVI5H+qxNeweRAASe7mvjtlcHx9MdSG mGu9xjB53i2iDsJw5tNEi0B0dE6T2clriuTGxDReYmVSKUUT7pO1am7iXhgqnnMtLHjBzdlRo +Up69FUBGXUq9u9I9bUZhDs8P6sUXAgNrjZx3RctUkxnsxYn8XxFAGeV/IwvC0MhB+5Zmtc6B BTcg/HZyJAmCYqSQf2iCsqlVZyC7IpMYo/lyTPa9UrvtSe6yQz1rgCt0CTwiuBo1lp5aF0Rt Received-SPF: pass client-ip=212.227.15.18; envelope-from=kshell@gmx.com; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/20 09:42:50 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:124116 Archived-At: Eli Zaretskii =E6=96=BC 2020/9/20 22:37 =E5=AF=AB=E9=81=93: >> From: Kevin Shell >> Date: Sun, 20 Sep 2020 22:32:59 +0800 >> >>>> Does it mean site config file cause this issue?(global-set-key (kbd "= M-[") 'scroll-down-line) >>> Either the site config, or one of your customizations, yes. >> >> Hello again. >> >> I have found the issue. >> >> The problem is my config line: >> >> =C2=A0(global-set-key (kbd "M-[") 'scroll-down-line) >> >> but I don't understand why it relates to texts pasting? > Pasting text on a text-mode terminal sends escape sequences to the > terminal, which are interpreted by the terminal emulator. What escape sequuences are sent? > Your > binding "steals" the beginning of the escape sequence (recall that the > ESC key acts as the Meta modifier on a TTY), so the paste command is > not seen by the emulator. I have changed binding now=E3=80=82Pasting is now working. I'm so unlucky=E3=80=82=F0=9F=98=A5