From: Lars Ingebrigtsen <larsi@gnus.org>
To: Gang Liang <randomizedthinking@gmail.com>
Cc: 38335@debbugs.gnu.org
Subject: bug#38335: Emacs term: bracketed paste not supported
Date: Sat, 23 Nov 2019 13:15:57 +0100 [thread overview]
Message-ID: <87eexypz42.fsf@gnus.org> (raw)
In-Reply-To: <CACs1p2QGz_kMjP1UK8rEMogi_+rBTurJXaFdiUW7P7gVE_eWYA@mail.gmail.com> (Gang Liang's message of "Fri, 22 Nov 2019 15:01:54 -0800")
Gang Liang <randomizedthinking@gmail.com> 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 <input> [encode_options] <output>' % sys.argv[0]
... sys.exit(1)
...
usage: <input> [encode_options] <output>
larsi@marnie:~/src/mplayer/ffmpeg/tools$
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2019-11-23 12:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-22 23:01 bug#38335: Emacs term: bracketed paste not supported Gang Liang
2019-11-23 12:15 ` Lars Ingebrigtsen [this message]
2020-05-03 1:13 ` Stefan Kangas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87eexypz42.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=38335@debbugs.gnu.org \
--cc=randomizedthinking@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).