unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Phil Sainty <psainty@orcon.net.nz>
Cc: 58608@debbugs.gnu.org, rms@gnu.org
Subject: bug#58608: 29.0.50; Nasty bug with pasting primary selection in term buffers
Date: Thu, 16 Mar 2023 09:17:39 +0200	[thread overview]
Message-ID: <83cz59qi5o.fsf@gnu.org> (raw)
In-Reply-To: <6a98841477c47774d2e2c5621a000b42@webmail.orcon.net.nz> (message from Phil Sainty on Wed, 15 Mar 2023 03:28:25 +1300)

> Date: Wed, 15 Mar 2023 03:28:25 +1300
> From: Phil Sainty <psainty@orcon.net.nz>
> Cc: 58608@debbugs.gnu.org, "Richard M. Stallman" <rms@gnu.org>
> 
> On 2023-03-15 01:46, Phil Sainty wrote:
> > when the command was pasting from the kill ring the
> > (setq this-command 'yank) call would have made sense
> 
> On second thought, I'm not sure it made any sense then either -- that
> "paste" was still sending the text to the inferior process rather than
> inserting it into the buffer, and it's entirely up to the process as
> to whether anything at all gets inserted into the buffer as a result,
> so I don't think of that as a `yank' as far as Emacs is concerned.
> 
> (I'd still hazard a guess that (setq this-command 'yank) was added on
> account of dealing with the kill ring, but perhaps it was just a mistake
> all along.)

Thanks for all the forensics.

I think we should install on emacs-29 a change that binds
select-active-regions to nil around the call to term-send-raw-string,
and install on master a change that removes the setting of
this-command.





  reply	other threads:[~2023-03-16  7:17 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-18 10:10 bug#58608: 29.0.50; Nasty bug with pasting primary selection in term buffers Phil Sainty
2022-10-18 23:10 ` Phil Sainty
2022-10-19  0:53   ` Phil Sainty
2022-10-19  1:19     ` Phil Sainty
2022-10-19  2:09       ` Phil Sainty
2022-10-19  3:22         ` Phil Sainty
2022-10-19  5:03           ` Phil Sainty
2022-10-19 11:05       ` Eli Zaretskii
2022-10-19 22:14         ` Phil Sainty
2022-10-20  5:36           ` Eli Zaretskii
2023-03-14 12:46             ` Phil Sainty
2023-03-14 14:28               ` Phil Sainty
2023-03-16  7:17                 ` Eli Zaretskii [this message]
2023-03-26 12:45                   ` Phil Sainty
2023-03-26 13:47                     ` Eli Zaretskii
2023-03-26 13:48                     ` 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=83cz59qi5o.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=58608@debbugs.gnu.org \
    --cc=psainty@orcon.net.nz \
    --cc=rms@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).