From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#38335: Emacs term: bracketed paste not supported Date: Sat, 23 Nov 2019 13:15:57 +0100 Message-ID: <87eexypz42.fsf@gnus.org> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="115009"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 38335@debbugs.gnu.org To: Gang Liang Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 23 13:18:47 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iYUND-000Tnm-3l for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Nov 2019 13:18:47 +0100 Original-Received: from localhost ([::1]:58434 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iYUNB-0004Db-WC for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Nov 2019 07:18:46 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35263) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iYUN1-0004DP-Ui for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2019 07:18:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iYUN0-0002MM-N6 for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2019 07:18:35 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47069) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iYUN0-0002MH-Jd for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2019 07:18:34 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iYUMp-0003Sm-Gv for bug-gnu-emacs@gnu.org; Sat, 23 Nov 2019 07:18:26 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Nov 2019 12:18:23 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38335 X-GNU-PR-Package: emacs Original-Received: via spool by 38335-submit@debbugs.gnu.org id=B38335.157451142713222 (code B ref 38335); Sat, 23 Nov 2019 12:18:23 +0000 Original-Received: (at 38335) by debbugs.gnu.org; 23 Nov 2019 12:17:07 +0000 Original-Received: from localhost ([127.0.0.1]:55888 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iYUKp-0003Q3-2T for submit@debbugs.gnu.org; Sat, 23 Nov 2019 07:16:20 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:35196) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iYUKc-0003Ox-Jm for 38335@debbugs.gnu.org; Sat, 23 Nov 2019 07:16:10 -0500 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iYUKU-000577-EX; Sat, 23 Nov 2019 13:16:00 +0100 In-Reply-To: (Gang Liang's message of "Fri, 22 Nov 2019 15:01:54 -0800") 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: 209.51.188.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:172284 Archived-At: Gang Liang writes: > Bracketed paste is well supported in emacs, yet not in the term > buffer. The reason I assume is that the terminal buffers need to be > processed differently that special escape sequences need to be sent to > the underlying process, so the program running inside a term buffer > can tell the difference between manual typing and pasting. > > Steps to reproduce the issue: > > 1. M-x term > 2. run python (or any program which differentiates typing from pasting) > 3. paste some codes with indentation into the python > 4. verify the indentation is messed up You don't say what Emacs version you're using (please use M-x report-emacs-bug when reporting Emacs bugs), and I'm not sure what you mean by "run python", but I tried `M-x term RET python RET' and then pasted the following with mouse-2 into the buffer, and the indentation seems correct? So I'm not able to reproduce the bug. Are there some additional steps necessary to reproduce? larsi@marnie:~/src/mplayer/ffmpeg/tools$ python Python 2.7.16 (default, Oct 10 2019, 22:02:15) [GCC 8.3.0] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import sys, subprocess >>> >>> if len(sys.argv) > 2: ... ifile = sys.argv[1] ... encopt = sys.argv[2:-1] ... ofile = sys.argv[-1] ... else: ... print 'usage: %s [encode_options] ' % sys.argv[0] ... sys.exit(1) ... usage: [encode_options] larsi@marnie:~/src/mplayer/ffmpeg/tools$ -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no