unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Robert Pluim <rpluim@gmail.com>
To: "Sébastien Gendre" <seb@k-7.ch>
Cc: Eli Zaretskii <eliz@gnu.org>, 72254@debbugs.gnu.org
Subject: bug#72254: 29.4; Cannot yank media when image come from Gnome-shell screenshot
Date: Tue, 23 Jul 2024 14:50:34 +0200	[thread overview]
Message-ID: <87ed7k9srp.fsf@gmail.com> (raw)
In-Reply-To: <87ed7kqoe4.fsf@k-7.ch> ("Sébastien Gendre"'s message of "Tue, 23 Jul 2024 14:33:07 +0200")

>>>>> On Tue, 23 Jul 2024 14:33:07 +0200, Sébastien Gendre <seb@k-7.ch> said:

    Sébastien> I have evaluate the added method, but when I evaluate (gui-get-selection
    Sébastien> 'CLIPBOARD 'TARGETS) I still get the result:

How did you evaluate the `cl-defmethod'? I tested with 'C-x C-e' after
the form.

Maybe visiting yank-media.el and doing 'M-x eval-buffer' will help.

    Sébastien> image/png

    Sébastien> And when I run the command yank-media, I have this traceback:

    Sébastien> Debugger entered--Lisp error: (wrong-type-argument sequencep image/png)
    Sébastien>   mapc(#f(compiled-function (elt) #<bytecode 0x1ebc9d0d6093f55d>) image/png)
    Sébastien>   seq-do(#f(compiled-function (elt) #<bytecode 0x1ebc9d0d6093f55d>) image/png)
    Sébastien>   #f(compiled-function #'sequence #<bytecode 0x19945316743f723a>)(#f(compiled-function (elt) #<bytecode 0x94038b48f0aa5ab>) image/png)
    Sébastien>   apply(#f(compiled-function #'sequence #<bytecode
    0x19945316743f723a> ) #f(compiled-function (elt) #<bytecode
    0x94038b48f0aa5ab> ) image/png nil)
    Sébastien>   seq-map(#f(compiled-function (elt) #<bytecode 0x94038b48f0aa5ab>) image/png)
    Sébastien>   seq-filter(#f(compiled-function (type) #<bytecode 0x17bbb7cb3b4b0c6d>) image/png)
    Sébastien>   yank-media--find-matching-media("x/special-\\(?:gnome|KDE|mate\\)-files")
    Sébastien>   yank-media()
    Sébastien>   funcall-interactively(yank-media)
    Sébastien>   command-execute(yank-media record)
    Sébastien>   execute-extended-command(nil "yank-media" "yank")
    Sébastien>   funcall-interactively(execute-extended-command nil "yank-media" "yank")
    Sébastien>   command-execute(execute-extended-command)

Yes, itʼs still using the old `gui-get-selection'.

Maye you need to rebuild emacs with the patch.

Robert
-- 





  parent reply	other threads:[~2024-07-23 12:50 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-23 10:57 bug#72254: 29.4; Cannot yank media when image come from Gnome-shell screenshot Sébastien Gendre
2024-07-23 11:21 ` Robert Pluim
2024-07-23 11:52   ` Eli Zaretskii
     [not found]   ` <87plr4qpqy.fsf@k-7.ch>
2024-07-23 12:26     ` Robert Pluim
     [not found]       ` <87ed7kqoe4.fsf@k-7.ch>
2024-07-23 12:50         ` Robert Pluim [this message]
     [not found]           ` <87ttggp8e0.fsf@k-7.ch>
2024-07-23 13:10             ` Robert Pluim
     [not found]               ` <87le1sp7ts.fsf@k-7.ch>
2024-07-23 14:48                 ` Robert Pluim
2024-07-23 16:34                   ` Visuwesh
     [not found]                     ` <87a5i8oyax.fsf@k-7.ch>
2024-07-23 17:00                       ` Robert Pluim
     [not found]                         ` <87sew058rc.fsf@k-7.ch>
2024-07-24  7:16                           ` Robert Pluim
2024-07-24  9:29                             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-07-24 10:50                               ` Robert Pluim
2024-07-24 12:12                                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-07-24 13:35                                   ` Robert Pluim
2024-07-24 14:11                                     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-20 10:12                                       ` Robert Pluim
2024-08-20 12:18                                         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-20 13:15                                           ` Eli Zaretskii
2024-08-20 13:20                                             ` Robert Pluim
2024-08-20 13:30                                               ` Eli Zaretskii
2024-08-20 13:59                                                 ` Robert Pluim
2024-08-20 14:01                                                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-20 14:25                                                   ` Eli Zaretskii
2024-08-20 15:17                                                     ` Robert Pluim
2024-08-21  2:37                                                     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-08-21 13:47                                                       ` Eli Zaretskii
2024-08-24 14:03                                                         ` Andrea Corallo
2024-09-12  0:20                                                           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
     [not found]                             ` <87wmlbul4a.fsf@k-7.ch>
2024-07-24 10:55                               ` Robert Pluim

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=87ed7k9srp.fsf@gmail.com \
    --to=rpluim@gmail.com \
    --cc=72254@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=seb@k-7.ch \
    /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).