all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Visuwesh <visuweshm@gmail.com>
Cc: Eli Zaretskii <eliz@gnu.org>, 65892@debbugs.gnu.org
Subject: bug#65892: 30.0.50; yank-media fails for clipboard selection that are wiped after being accessed
Date: Tue, 25 Jun 2024 11:45:34 +0800	[thread overview]
Message-ID: <87le2ty9b5.fsf@yahoo.com> (raw)
In-Reply-To: <87frt2qwri.fsf@gmail.com> (Visuwesh's message of "Mon, 24 Jun 2024 19:16:09 +0530")

Visuwesh <visuweshm@gmail.com> writes:

> [திங்கள் ஜூன் 24, 2024] Eli Zaretskii wrote:
>
>>> From: Visuwesh <visuweshm@gmail.com>
>>> Date: Mon, 24 Jun 2024 09:23:20 +0530
>>> 
>>> I apologise for neglecting to speak out loud before the emacs-30 branch
>>> cut.  Is there a chance to get this patch in emacs-30?  I am using this
>>> patch ever since I sent it to debbugs and I do not face any issue wrt
>>> the pcmanfm issue shown here and other applications which do not wipe
>>> the clipboard.  It would be nice to have it in emacs-30 especially with
>>> org-mode gaining yank-media support for files copied/cut from a file
>>> manager.
>>
>> I can be convinced to make such changes on the release branch only if
>> all they do is make a function whose return value was not interesting
>> to return a useful value.  But the patch does more than that: it
>> introduces pcase-dolist and replaces some FOO with (car FOO) in at
>> least 3 occasions.  
>
> Thanks for the review and consideration, Eli.  The patch only touched
> the return value of a helper function.
>
>> Such changes make me uncomfortable, especially given that this is a
>> case where Emacs needs to jump through hoops to work around
>> misfeatures of some 3rd-party utility.
>
> I suspect similar behaviour will be shown by other file managers.
>
>> Can you rewrite the patch so that it will be clear at a glance that it
>> cannot possibly cause any harm because it just causes the same code
>> return a value?  If you can, we have a chance of installing this on
>> the emacs-30 branch.
>
> I hope the attached patch makes the intent clear.  I added a doc-string
> to the internal function too, and removed pcase-dolist and extra car to
> make the code simpler.
>
>> And, btw, I wonder whether enough people use pcmanfm for us to bother
>> about this issue.
>
> AFAIK, pcmanfm is fairly popular among the window manager users crowd
> due to its light-weight.

I suspect another implication of this is that pcmanfm is actively
developed, so is there any chance of your filing a request with their
developers that they not disclaim ownership of selections after
responding to a request?  It is a very peculiar action for any X client,
and surely it's not only Emacs that is or will be affected.





  reply	other threads:[~2024-06-25  3:45 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-12 16:54 bug#65892: 30.0.50; yank-media fails for clipboard selection that are wiped after being accessed Visuwesh
2024-06-24  3:53 ` Visuwesh
2024-06-24 12:13   ` Eli Zaretskii
2024-06-24 13:46     ` Visuwesh
2024-06-25  3:45       ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-06-25  4:36         ` Visuwesh
2024-06-25 12:59           ` Eli Zaretskii
2024-06-28  4:20             ` Visuwesh
2024-06-28  8:59               ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-06-28 10:03                 ` Visuwesh

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87le2ty9b5.fsf@yahoo.com \
    --to=bug-gnu-emacs@gnu.org \
    --cc=65892@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=luangruo@yahoo.com \
    --cc=visuweshm@gmail.com \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.