unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Markus Triska <triska@metalevel.at>
To: Andreas Schwab <schwab@linux-m68k.org>
Cc: 40375@debbugs.gnu.org, Noam Postavsky <npostavs@gmail.com>
Subject: bug#40375: 27.0.50; yank unexpectedly depends on progn
Date: Mon, 13 Apr 2020 20:01:13 +0200	[thread overview]
Message-ID: <87a73fw9hy.fsf@metalevel.at> (raw)
In-Reply-To: <87r1wrjqdm.fsf@igel.home> (Andreas Schwab's message of "Mon, 13 Apr 2020 18:35:01 +0200")

Andreas Schwab <schwab@linux-m68k.org> writes:

> What does your interprogram-paste-function return?

Its value is `gui-selection-value'.

I have now repeatedly tried it, and sometimes it indeed works as
expected (i.e., the image is inserted), but I can reliably trigger the
problem when I:

1. open Firefox and browse to the description of this bug, i.e.:
   https://debbugs.gnu.org/cgi/bugreport.cgi?bug=403752
2. click on the URL bar, so that the text in the URL becomes selected
3. switch to a terminal application using only the keyboard, and then,
   from the terminal, perform the steps I outlined.

In this case, the text that is inserted is not the expected image that
was most recently killed in Emacs, but rather the URL from Firefox that
is selected in that application.

I can reproduce this with XQuartz 1.18.4 (xorg-server 1.18.4) on OSX.

Is it possible that yanking in Emacs does not work as expected when text
is selected in other applications on this platform?

Once this issue occurs, what is yanked is no longer predictable for me:
Sometimes it is text that is selected in other applications, sometimes
it is text that was copied to the clipboard from other applications, but
is no longer selected. It feels like there is no clear pattern.

What I would prefer in all these cases is that Emacs yank the text that
was most recently killed in this example, which is the sample image that
you can reproduce.

Thank you and all the best,
Markus






  reply	other threads:[~2020-04-13 18:01 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-01 16:14 bug#40375: 27.0.50; yank unexpectedly depends on progn Markus Triska
2020-04-01 16:57 ` Noam Postavsky
2020-04-01 17:53   ` Markus Triska
2020-04-01 23:11     ` Noam Postavsky
2020-04-13 16:14       ` Noam Postavsky
2020-04-13 16:22         ` Markus Triska
2020-04-13 16:30           ` Noam Postavsky
2020-04-13 16:35     ` Andreas Schwab
2020-04-13 18:01       ` Markus Triska [this message]
2020-04-13 18:34         ` Eli Zaretskii
2020-04-13 18:52           ` Markus Triska
2020-04-13 19:35             ` Eli Zaretskii
2020-04-13 19:46               ` Markus Triska
2020-04-13 22:16                 ` Noam Postavsky
2020-04-13 22:44                   ` Drew Adams
2020-04-14  5:39                   ` 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=87a73fw9hy.fsf@metalevel.at \
    --to=triska@metalevel.at \
    --cc=40375@debbugs.gnu.org \
    --cc=npostavs@gmail.com \
    --cc=schwab@linux-m68k.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).