From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: `M-x yank-media' Date: Sun, 07 Nov 2021 14:48:56 +0100 Message-ID: <875yt4jctz.fsf@gnus.org> References: <877ddlt2pp.fsf@gnus.org> <837ddk9tc8.fsf@gnu.org> <878ry0kt2h.fsf@gnus.org> <83r1bs85jr.fsf@gnu.org> <87sfw8jdl1.fsf@gnus.org> <83mtmg84kk.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6166"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: alan@idiocy.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 07 14:49:47 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mjiYM-0001Mt-RM for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Nov 2021 14:49:46 +0100 Original-Received: from localhost ([::1]:42244 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mjiYK-0005wf-Gv for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Nov 2021 08:49:44 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51782) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mjiXh-0005Hj-Rr for emacs-devel@gnu.org; Sun, 07 Nov 2021 08:49:05 -0500 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:53174) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mjiXg-0002ha-8z; Sun, 07 Nov 2021 08:49:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=PuDuHSx3c9zgxeg6LG2B+BOuIP+2B4JgnvXQNabBlQk=; b=SYLOO0XJj2nsx6mdz1OqcQP+W0 bOBoUaWZ2RP/N5ZW91nNAwh4tCqSZSgiJFQ21RZBqiFAxN2IXJYGli/zrdYEuAZLlpnK/P1cHj+fB hbN9ZW0vU2HMPC4SXuAueqwSvQA37FukywauVn1vlztAAk/WzzPh/SJPfRIfBkhhRAL0=; Original-Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mjiXZ-0000nZ-8a; Sun, 07 Nov 2021 14:49:00 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEX9/f22rp00Lyne 2tNqYVKgkXOFeGH///+tuyR9AAAAAWJLR0QHFmGI6wAAAAd0SU1FB+ULBw0tNocSdRwAAAGnSURB VDjLvZMxd+MgDMflR2+vnDjznY7zDCXuHiIzG8d4bvug3/8jnOy+W/LI0OW0GPRDSNZfANStBXVw iM6iPdyBZuSRj5n5dgdAmfpVD3N8HzxX/XaGVM0dPXRTxa/QA95qwEnEoQasRFSB8nDYk3f4Vd0w xm3vFEFy295Tj+KxmT57+WJDgJ2BRnsifQW1LjnTb4CEAo7P+MRM7AMMOa6j//NkYvDQ0hsvOoQT a9MVM6Q5eIzag9esR+JgM0/dTX7tozDnHSx69Hy1XZpepcRG4tkLoJ655/4dcZ0GAcM463LeQOLs +5Ai8mSjw3MJVFoBGqPkHWNctLEnl3xZdJq3iMuysmYOWYMaYqbxNK476HNivXriC6jGM4VScO5J qkqBAxMFEeYHjQsxl2PvYeBya+UgaelZU9CTduuqSfr2Sw72TNdduYVk0URP4M4/pbvvy+VLCK9l oYoAY3fR3T+JdnnSpwdnK2PyepnBuQqwpgVjKsBs78M9ANWrttl1tfHZgav5nSSHb4HHD+flv4Mu 4nDrEBNOdxFOKeM2My/g6tYCPbC/0VxlXj9W7vUAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjEtMTEt MDdUMTM6NDU6NTQrMDA6MDCeUl5QAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTExLTA3VDEzOjQ1 OjU0KzAwOjAw7w/m7AAAAABJRU5ErkJggg== X-Now-Playing: Sleater-Kinney's _Path of Wellness_: "Path Of Wellness" In-Reply-To: <83mtmg84kk.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 07 Nov 2021 15:42:51 +0200") Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:278950 Archived-At: Eli Zaretskii writes: > But those are just the types. How do we fetch the stuff afterwards? With (gui-get-selection 'CLIPBOARD 'image/png) and then some slight massaging; see yank-media--get-selection. >> I haven't looked at Windows, but I'm guessing it has to grow a similar >> set of capabilities. > > The TARGETS thingy is already supported, has been for a long time: > > (gui-get-selection 'CLIPBOARD 'TARGETS) > => > [DataObject text/html HTML\ Format text/_moz_htmlinfo text/_moz_htmlcontext application/x-moz-file-promise-url application/x-moz-file-promise-dest-filename FILE_NAMES Preferred\ DropEffect application/x-moz-nativeimage DIB Ole\ Private\ Data BITMAP nil] > > (This is after "Copy Image" in Firefox.) But I suspect that's not all > of the story. So that's why `yank-media' saying it can't find any matches, because it's looking for "image/.*" (in Message buffers). It sounds like application/x-moz-file-promise-dest-filename (or one of the other ones) might hold the file name where the image is? Does (gui-get-selection 'CLIPBOARD 'application/x-moz-file-promise-dest-filename) return anything? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no