unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#38335: Emacs term: bracketed paste not supported
@ 2019-11-22 23:01 Gang Liang
  2019-11-23 12:15 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Gang Liang @ 2019-11-22 23:01 UTC (permalink / raw)
  To: 38335

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





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#38335: Emacs term: bracketed paste not supported
  2019-11-22 23:01 bug#38335: Emacs term: bracketed paste not supported Gang Liang
@ 2019-11-23 12:15 ` Lars Ingebrigtsen
  2020-05-03  1:13   ` Stefan Kangas
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Ingebrigtsen @ 2019-11-23 12:15 UTC (permalink / raw)
  To: Gang Liang; +Cc: 38335

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





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#38335: Emacs term: bracketed paste not supported
  2019-11-23 12:15 ` Lars Ingebrigtsen
@ 2020-05-03  1:13   ` Stefan Kangas
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Kangas @ 2020-05-03  1:13 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: Gang Liang, 38335-done

Lars Ingebrigtsen <larsi@gnus.org> writes:

> 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?

More information was requested, but none was given within 22 weeks, so
I'm closing this bug.

If this is still an issue, please reply to this email (use "Reply to
all" in your email client) and we can reopen the bug report.

Best regards,
Stefan Kangas





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-05-03  1:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-22 23:01 bug#38335: Emacs term: bracketed paste not supported Gang Liang
2019-11-23 12:15 ` Lars Ingebrigtsen
2020-05-03  1:13   ` Stefan Kangas

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).