From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id OJAYAVn6MGXbAAAA9RJhRA:P1 (envelope-from ) for ; Thu, 19 Oct 2023 11:43:53 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id OJAYAVn6MGXbAAAA9RJhRA (envelope-from ) for ; Thu, 19 Oct 2023 11:43:53 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9432D4CB85 for ; Thu, 19 Oct 2023 11:43:52 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=h5hW1sL9; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1697708632; a=rsa-sha256; cv=none; b=deqMjDkviywwqp0Gxdvd3kZLzkIjRLysswJO6NpUmq2DOaDW9C+tJOb27lsq34kLyM/41N lYRkiJDmqM/77xTtXZO+mEByARfA5xNRnnOz81xuNlwEujAUXZ9+FEvzwf1wkllOi/D/t0 SkWa8q3swL2j0RbRKXKyd/K1EJJ+KwXhhSimKW/e3AnQ5PdV3kWDfJ+xvsWShpZquvvRAA O3oUZPwXowIauVgCSSIGUQJp6rvt1B20JcusiBnpxPACYrR6/sGrXHGhlw34YzA88Wo5sS 1a/4Jg4EXQW3LLsHdl0zC+KyYwqOODYDJrMhmdqe+br2H5fewX3fzZUh1jNoOA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=h5hW1sL9; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1697708632; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=rfYUrcj8WERlfjIgScWTY56K9PjQ1Z3h71wjISTBjM8=; b=YxblAvnse8eJa/SeaFRNUCm2sjamMRmebqoke1jpDoPG6DUhISSkc+AoVJQEcHg//jYuIz BcZ08sqisiPbkaJ0Y64UOgkeskax/sJWGTTs+yzXLlUu0ODk0hweSZaPBEVn3S/d+/pSMA ++HSEHZ4NtuZOKHN6p7mi929gE9zl45R4ah5FrTpMwQcA88myfW/Q3IDcIQqb28R3NBJYZ UcNm8vfgNwKutw+YDVRgO+inQG3L47CdOHukJCBY2JV+g5/jKor0bmJY60rG5jRnabIDoy CQBG/gXPMUXPJ5kjvA7ZaRIp+mAwaVo1ebUHgaHEqr/jr4vK5ZKlogNnMvkgTw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtPYO-0004kt-GO; Thu, 19 Oct 2023 05:42:56 -0400 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 1qtPYL-0004hk-IO for emacs-orgmode@gnu.org; Thu, 19 Oct 2023 05:42:53 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qtPYI-0008N6-Dv for emacs-orgmode@gnu.org; Thu, 19 Oct 2023 05:42:53 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 2D21F240101 for ; Thu, 19 Oct 2023 11:42:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1697708568; bh=cDfJzICDuLgwQyUyLpZUjml58LthajIxfpIVISGpIM0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=h5hW1sL9bEsCZG3BwvlDW+RuJ4JfFW0UcU2xyBL2YUXyWt1dRwwgJo8ii8Ax4NuZ4 k4JpOFvPVB5y8/oUKWXsPMj4QGpE9b1NR7urqQx7Tb/d36xh01uPV/rwcWhEJwyHhZ GFtYyeQ693uCTNRAT9ZW+A+Vdp9JxTyt6dj+ZCAod8xYwOgc8pnBN5MO1PQIFrpZXW lbqgGpp0fm9sGrdkFIdlulpRV7LDywCb0hC5mfb2UqougAQcY5nt4ylzVCw/zNo9V+ cc7Cu9TrzSwJ87UCmf+T2RbOA6b8Tq+ZzbWmfSk92xpyg5xnD8YTK0usBy8NrT2EM2 x4deQEUQbCWKg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4SB2ng4tMlz6twM; Thu, 19 Oct 2023 11:42:47 +0200 (CEST) From: Ihor Radchenko To: Visuwesh Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] [PATCH] Add yank-media and DND handler [9.6.7 (9.6.7-g6eb773 @ /home/viz/lib/emacs/straight/build/org/)] In-Reply-To: <875y335amn.fsf@gmail.com> References: <87jzsintv0.fsf@gmail.com> <87lecx2nff.fsf@localhost> <87bkdsomm2.fsf@gmail.com> <87a5tamm3j.fsf@gmail.com> <877cnyzlda.fsf@localhost> <87a5sur51r.fsf@gmail.com> <875y3ir0lu.fsf@gmail.com> <87ttr1pild.fsf@localhost> <87v8bhpdg8.fsf@gmail.com> <87edi4m4my.fsf@localhost> <87edi4dm78.fsf@gmail.com> <875y335amn.fsf@gmail.com> Date: Thu, 19 Oct 2023 09:44:33 +0000 Message-ID: <87cyxbdjzy.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de 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, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: -6.50 X-Spam-Score: -6.50 X-Migadu-Queue-Id: 9432D4CB85 X-TUID: oTZZPBoOCyxs Visuwesh writes: >>> Is there any particular reason why you insert a newline after the image >>> link? >> >> It is for when you drop multiple files onto a frame. AFAIU/AFAICT >> there's no way to know beforehand if multiple files will be dropped or >> not. I will look into it in bit more detail in the coming days and drop >> the newline if only one file is dropped. > > OK, seems like the actual handling is done by x-dnd-handle-uri-list > where the URI list is split and each URI is handled separately. We can > override this function by our own by changing the entry in > x-dnd-types-alist but we need to do the same for pgtk-dnd-types-alist > and from what I can tell there are no such facilities for MS Windows and > NS? I think we need to accept that we will have sub-optimal interface > for multi file drops. WDYT? Ideally, we should ask Emacs devs to provide OS-independent interface for uri-list handling. I am not a big fan of adding special OS handling to Org mode, unless absolutely necessary. And the discussed _minor_ problem is not so big deal that we should complicate the code and, more importantly, maintenance so much. > Also, can I know what you think about using a popup-menu instead of a > dialog box for prompting as Liu Hui suggests in > https://yhetil.org/orgmode/CAOQTW-MAS6B2Uh9Z52eJN7eBwni+suhq9dWe0FkY_RzVHoxW-A@mail.gmail.com > ? If you're okay with it, I will write a function to use rmc or > popup-menu for prompting as per what use-dialog-box-p returns. I have no objections. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at