GNU bug report logs - #38335
Emacs term: bracketed paste not supported

Previous Next

Package: emacs;

Reported by: Gang Liang <randomizedthinking <at> gmail.com>

Date: Fri, 22 Nov 2019 23:07:03 UTC

Severity: normal

Tags: unreproducible

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 38335 in the body.
You can then email your comments to 38335 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#38335; Package emacs. (Fri, 22 Nov 2019 23:07:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Gang Liang <randomizedthinking <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 22 Nov 2019 23:07:04 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Gang Liang <randomizedthinking <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Emacs term: bracketed paste not supported
Date: Fri, 22 Nov 2019 15:01:54 -0800
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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#38335; Package emacs. (Sat, 23 Nov 2019 12:18:23 GMT) Full text and rfc822 format available.

Message #8 received at 38335 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Gang Liang <randomizedthinking <at> gmail.com>
Cc: 38335 <at> debbugs.gnu.org
Subject: Re: bug#38335: Emacs term: bracketed paste not supported
Date: Sat, 23 Nov 2019 13:15:57 +0100
Gang Liang <randomizedthinking <at> 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 <at> 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 <at> marnie:~/src/mplayer/ffmpeg/tools$ 

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) unreproducible. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sat, 23 Nov 2019 12:18:34 GMT) Full text and rfc822 format available.

Reply sent to Stefan Kangas <stefan <at> marxist.se>:
You have taken responsibility. (Sun, 03 May 2020 01:15:01 GMT) Full text and rfc822 format available.

Notification sent to Gang Liang <randomizedthinking <at> gmail.com>:
bug acknowledged by developer. (Sun, 03 May 2020 01:15:01 GMT) Full text and rfc822 format available.

Message #15 received at 38335-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: Gang Liang <randomizedthinking <at> gmail.com>, 38335-done <at> debbugs.gnu.org
Subject: Re: bug#38335: Emacs term: bracketed paste not supported
Date: Sun, 03 May 2020 03:13:55 +0200
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Gang Liang <randomizedthinking <at> 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




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 31 May 2020 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 327 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.