unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Matt Bisson <bisson.m@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 49253@debbugs.gnu.org
Subject: bug#49253: 27.2; Emacs non-responsive when pasting into terminal-mode
Date: Mon, 28 Jun 2021 16:09:24 -0400	[thread overview]
Message-ID: <CAFbUcw+xPzXiQSb+w6EgfJAC4cjK1S5joDjdB8Ob5PueVeY1qA@mail.gmail.com> (raw)
In-Reply-To: <83sg11omxc.fsf@gnu.org>

That's described in the initial report.  I see it's called "term-mode"
not "terminal-mode" which was a brain-fart on my part.  The steps
(term-mode in step 2):

1. Start "emacs -nw" <ret>
2. M-x term <ret> <ret>
3. In another application (for the purposes of "exact keystroke, let's
say, Alt-TAB to Firefox"), copy some text into the clipboard, it
doesn't matter what.
4. Return to the Emacs session (click on the Terminal emulator,
Alt-TAB, whatever*), and paste into the terminal (I used Command-V).
4* To be clear, return the cursor to the term-mode buffer (e.g., C-b
*terminal* <ret>).

Inject any mount of delays or operations between steps 1, 2, 3, and 4.
The bug essentially is "if you ever paste into term-mode buffers, you
lose.




On Mon, Jun 28, 2021 at 2:37 PM Eli Zaretskii <eliz@gnu.org> wrote:
>
> > From: Matt Bisson <bisson.m@gmail.com>
> > Date: Mon, 28 Jun 2021 14:11:56 -0400
> > Cc: 49253@debbugs.gnu.org
> >
> > No.  (Unless I'm misunderstanding what you're asking) the problem can
> > occur at any time.  It's in response to simply pasting from the
> > clipboard into a terminal application.  I can start Emacs, run for
> > days normally -- using terminal-mode, editing files, and so forth.
> > The second I go into the terminal-mode buffer and paste from the
> > (Windows, Mac, whatever) clipboard (NOT using the Emacs yank command),
> > the problem happens.
>
> Wait a minute: what do you mean by "terminal-mode buffer" into which
> you need to go?  More generally, can you describe a detailed recipe
> for reproducing the problem on your system, keystroke by keystroke?
>
> > > No, it's the other way around: you start Emacs from GDB.  There are
> > > some instructions in etc/DEBUG.
> >
> > Yes, I do know that's what you mean :) but it's not as if Emacs is
> > going to crash, and stop in the debugger.
>
> You are investigating the error message saying "Failed select".
> Search the *.c files for that text, and you will find only 3 instances
> of it.  Put a breakpoint in all these 3 places, then do whatever it
> takes to reproduce the problem, and you will be able to collect the
> information I asked about.





  reply	other threads:[~2021-06-28 20:09 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-28 14:28 bug#49253: 27.2; Emacs non-responsive when pasting into terminal-mode Matt Bisson
2021-06-28 16:57 ` Eli Zaretskii
2021-06-28 17:18   ` Matt Bisson
2021-06-28 17:27     ` Eli Zaretskii
2021-06-28 17:30       ` Matt Bisson
2021-06-28 17:34         ` Matt Bisson
2021-06-28 17:59           ` Eli Zaretskii
2021-06-28 18:00         ` Eli Zaretskii
2021-06-28 18:11           ` Matt Bisson
2021-06-28 18:37             ` Eli Zaretskii
2021-06-28 20:09               ` Matt Bisson [this message]
2021-06-29 12:09                 ` Eli Zaretskii
2021-06-29 15:06                   ` Matt Bisson
2022-07-16 12:21 ` Lars Ingebrigtsen
2022-07-16 19:13   ` Matt Bisson
2023-12-08 19:06     ` Matt Bisson
2023-12-08 20:35       ` Matt Bisson
2023-12-09 11:10         ` Eli Zaretskii
2023-12-09 21:38           ` Jared Finder via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-12-11 16:10             ` Matt Bisson
2023-12-11 22:13               ` Jared Finder via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-12-13 19:26                 ` Matt Bisson
2023-12-16 12:46                 ` Eli Zaretskii

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=CAFbUcw+xPzXiQSb+w6EgfJAC4cjK1S5joDjdB8Ob5PueVeY1qA@mail.gmail.com \
    --to=bisson.m@gmail.com \
    --cc=49253@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /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).