[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#38335: Emacs term: bracketed paste not supported
From: |
Lars Ingebrigtsen |
Subject: |
bug#38335: Emacs term: bracketed paste not supported |
Date: |
Sat, 23 Nov 2019 13:15:57 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
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