From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?S=C3=A9bastien?= Gendre Newsgroups: gmane.emacs.bugs Subject: bug#72254: 29.4; Cannot yank media when image come from Gnome-shell screenshot Date: Tue, 23 Jul 2024 12:57:36 +0200 Message-ID: <87y15sqstb.fsf@k-7.ch> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28843"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.12.1; emacs 29.4 To: 72254@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 23 13:06:05 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sWDLJ-0007QT-Io for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 23 Jul 2024 13:06:05 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sWDJZ-00044K-RU; Tue, 23 Jul 2024 07:04:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sWDJG-0003Nm-DM for bug-gnu-emacs@gnu.org; Tue, 23 Jul 2024 07:03:59 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sWDJG-0003ZE-4U for bug-gnu-emacs@gnu.org; Tue, 23 Jul 2024 07:03:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sWDJK-0000OH-2S for bug-gnu-emacs@gnu.org; Tue, 23 Jul 2024 07:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?S=C3=A9bastien?= Gendre Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 23 Jul 2024 11:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 72254 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.17217326241475 (code B ref -1); Tue, 23 Jul 2024 11:04:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Jul 2024 11:03:44 +0000 Original-Received: from localhost ([127.0.0.1]:59293 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sWDJ1-0000Nj-LJ for submit@debbugs.gnu.org; Tue, 23 Jul 2024 07:03:44 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:54340) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sWDIz-0000NZ-6f for submit@debbugs.gnu.org; Tue, 23 Jul 2024 07:03:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sWDIu-0000co-5q for bug-gnu-emacs@gnu.org; Tue, 23 Jul 2024 07:03:36 -0400 Original-Received: from 96-100-31-185.ftth.cust.kwaoo.net ([185.31.100.96] helo=k-7.ch) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sWDIs-0003WI-C9 for bug-gnu-emacs@gnu.org; Tue, 23 Jul 2024 07:03:35 -0400 Original-Received: from van (_gateway [192.168.1.1]) (Authenticated sender: seb) by k-7.ch (Postfix) with ESMTPSA id E120EE810D for ; Tue, 23 Jul 2024 12:57:36 +0200 (CEST) Received-SPF: pass client-ip=185.31.100.96; envelope-from=seb@k-7.ch; helo=k-7.ch X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, RDNS_DYNAMIC=0.982, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TVD_RCVD_IP=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:289152 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, I got a bug when I try to yank a screenshot made with Gnome-shell into an org-mode buffer. From=20the reply I get on the Org-mode mailing list, the bug come from Emacs itself. What I do: * From the system menu of Gnome-shell, I choose the action to take a screenshot * I took a screenshot from a selected zone, confirm the screenshot and got a notification message telling me "You can past the screenshot from the clipboard" * On an Org-mode document, I place the point where I want to past the screenshot and call the Emacs function "yank-media" What I get: * In the mini-buffer, I get the error message: "Wrong type argument: sequencep, image/png" * If I go into the "*Messages*" buffer, the full error message is: "seq-do: Wrong type argument: sequencep, image/png" * If I enable debug-on-error, here is the full backtrace: Debugger entered--Lisp error: (wrong-type-argument sequencep image/png) mapc(#f(compiled-function (elt) #) image/png) seq-do(#f(compiled-function (elt) #) image/p= ng) #f(compiled-function #'sequence #)(#f(compil= ed-function (elt) #) image/png) apply(#f(compiled-function #'sequence #) #f(= compiled-function (elt) #) image/png nil) seq-map(#f(compiled-function (elt) #) image/p= ng) seq-filter(#f(compiled-function (type) #) im= age/png) yank-media--find-matching-media("x/special-\\(?:gnome|KDE|mate\\)-files") yank-media() funcall-interactively(yank-media) command-execute(yank-media record) execute-extended-command(nil "yank-media" "yank") funcall-interactively(execute-extended-command nil "yank-media" "yank") command-execute(execute-extended-command) What I expected: * The image present in the clipboard is attached to the org-mode heading and a link to this attachment is created under the point Versions: * Org-mode: 9.7.2 * Emacs: 29.4 * Gnome-shell: 46.3.1 Best regards =2D------ Gendre S=C3=A9bastien --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQI/BAEBCAApFiEEaA9vw9ypVj1kP0tAtYb3x3I54p4FAmafjKALHHNlYkBrLTcu Y2gACgkQtYb3x3I54p6miw//VeURAKE0nmfSDNtXiL+pPdYcvepb0SvhnlEhFWfg QQG7FhiL2nMN6QtWXOyTg7MThVsiQfKzY2VF721Pdz69HBdZRpZDEY6GZssXNb/6 YhS/olx674XEkVVHFghMyhg+Td2Rrd05BgB5MSv2Cz4yVVwe9/o/G66SfxZELoYW REr1NzyvsR5uUL+2iEHqltZJ7aOFhL0dNfamazYP+ZWJeZJr4LJG6knIXBYTDE4T Ad7mtA8lwlrj55GBIk0MIMCqatRzrVvDpEgRflQs1n5aAIb5CRBL46AHyOkoHSNf ng5F3lqj/OFEn6zPZdIEYEPBEwNSkl/0SgDY2TsVO3ejY4Ez7ikU2v8D92RN93JH y8sQT13VMVcf5O4O7WyTsqCypS1z3/zEk3vhPAksNGFNsYFhKMX4YbrQSv7WvT5s 8oi8XgMPDJnboBvkBNQrhtq8If1ce9Qgjano1y3gJ70mDOnIdXz1GgpnHlDkDa1U MkqPIfATeWhN0IrRLX/mkuGI6DDV/BserLJwovTmP2mUFDM+II6nnFsR55Uyt5+C +INhissk4zlSbioowSP+bSIvJDotp/6DDMdYm8fWuiqRsy4GLGvIbPxYclsaclkj OtEMKG1jenvi7QMsNj5KINqUpG5MlwvS9Rb73DdzYfI+bFzptvh/fNiTCOiHBml3 9s0= =Urqu -----END PGP SIGNATURE----- --=-=-=--