From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: `M-x yank-media' Date: Sun, 07 Nov 2021 15:21:44 +0200 Message-ID: <83r1bs85jr.fsf@gnu.org> References: <877ddlt2pp.fsf@gnus.org> <837ddk9tc8.fsf@gnu.org> <878ry0kt2h.fsf@gnus.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9873"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 07 14:24:31 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 1mji9u-0002M3-CW for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Nov 2021 14:24:30 +0100 Original-Received: from localhost ([::1]:42262 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mji9t-0007Vh-28 for ged-emacs-devel@m.gmane-mx.org; Sun, 07 Nov 2021 08:24:29 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46826) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mji7V-0005Ka-EP for emacs-devel@gnu.org; Sun, 07 Nov 2021 08:22:01 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:44320) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mji7T-00080R-KS; Sun, 07 Nov 2021 08:22:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=kGrHKuDCItEgAjX/k554O2sMqIcWTnsMew+Vliac52U=; b=BjlE2MOoyQeC cXCePpi/keH5JEfEvYZwHBDJOvwW1S1OWnADtuSpvxrZ8hgh4EIoZd1UlwvgZmaMRwe81Zo2htY3S Mm6iwS8zxDsGyJMeZUeP1YHT6SEDz7mucl4v9pZZ8GrPQXDc7iDocLoGypHGWZMiEzrEcRIh2FC2w whvY91grJk9HGwyj+YCBdowTuxBzjkM42q5yEk4c126kvgstUqnKlgbbAYnoYI4IbTeNRLiY53Uqn tP64fozGutp/P2Bw4rk2MCB8NCuSkQZhBlescOLK5Pc3BWbRhe27Myiz3bnOCUoXkICRQmRfeQzez c4qAxcbkZSgQTPPcwvR6CA==; Original-Received: from [87.69.77.57] (port=3771 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mji7Q-0007yF-01; Sun, 07 Nov 2021 08:21:57 -0500 In-Reply-To: <878ry0kt2h.fsf@gnus.org> (message from Lars Ingebrigtsen on Sun, 07 Nov 2021 14:12:54 +0100) 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:278943 Archived-At: > From: Lars Ingebrigtsen > Cc: emacs-devel@gnu.org > Date: Sun, 07 Nov 2021 14:12:54 +0100 > > Eli Zaretskii writes: > > > This new command doesn't seem to work for me on MS-Windows: I get this > > message: > > > > user-error: No handler in the current buffer for anything on the clipboard > > > > The documentation doesn't seem to hint that something non-trivial is > > needed for this to work. > > I haven't tried this on Windows at all -- I have no idea what the > clipboard stuff looks like over there. (Or on Macos, but I had planned > on exploring that.) What does this require from the clipboard to work? What are the assumptions? > > Also, should this be bound to a key? Perhaps even C-y? > > There are so few modes that support media yanking that it's premature to > put it on any key, I think. And certainly not on `C-y' -- that would > break all sorts of things, I think. (People marking text in a web > browser and hitting `C-y' in a html-mode buffer still expect to get just > the plain text, while `yank-media' will give them more options, like > text/html.) AFAIK, that's what "other applications" do: they paste the content from the clipboard regardless of the type. Fine-tuned behavior, where the user can select exactly what he/she wants to past and how, is then available from a context menu.