From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id qM12E0XPDWUWagAAG6o9tA:P1 (envelope-from ) for ; Fri, 22 Sep 2023 19:30:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id qM12E0XPDWUWagAAG6o9tA (envelope-from ) for ; Fri, 22 Sep 2023 19:30:45 +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 D2D3534BF0 for ; Fri, 22 Sep 2023 19:30:44 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=msNEFboQ; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1695403845; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=6ETPoce/6YX2kY+iQ/A8UrEQDIks3tSdmHKz0XOgmHI=; b=kyKKq04W+pCdhBytGbbn6B9CsSdA/4MLVcyHX3HbTGobiHZZUEDHJ1uLWNDtKtObOtADWm s8rmsrfnsMTNVJ7e9E4uO+ohutzH4fulBGUJVygRFXrkq8xUjD0YSHl/WNY62SlNk+R80O 110bFH1Itw1eKxT7M+URD0l7JrpKlVLWPQ7V1rlD3rOnPuEUuAtM0cdAAK1r8D90J9KujQ Sdo/SqR1rws0rSz5UZZU8QMO81pvvkYhecVP/eGoHp9+5nBCwkQO+BdTHN/ZX0FIEhpKcf fe7jvj0flJdZ+mquaJKmD3iOM4bPbs3gSRR+v/X2xwVdt4tvx4ZU7evGXtsOQg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=msNEFboQ; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1695403845; a=rsa-sha256; cv=none; b=B/yi7j9FkmhoKCSZKM/bgQ1VE6BmfCQJRps60WQCZtrDb50LCQffXr4d3+mQ4+6kPK0a8C 6hM2uYgTLaowr/P9CgkPscQblMa4VyTGXyYLB3iQqqwUTD2F00qsVzzXJZr2VBkzhVYqxY WO2DLHHaoLciYrv6sRWTXL5Nko8FquSt0ruO4pm3xNZenv6elC4EUmuRVgWeB8oopnfuIH MunvckgVO5L5uqUQM+/rcqjzpeC2OqRAYjAdFOUPNe5FMbYWpYeftutQZM43OP5kzRcjNI G53eBLXFjBfD/EGa2GLbDqk0OxOGzWlYM5Nddfe4rj7DUpV7UJCeSmgd5CJLYQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qjjyN-0001kB-VP; Fri, 22 Sep 2023 13:29:47 -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 1qjjyL-0001jy-RU for emacs-orgmode@gnu.org; Fri, 22 Sep 2023 13:29:45 -0400 Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qjjyK-00076R-68 for emacs-orgmode@gnu.org; Fri, 22 Sep 2023 13:29:45 -0400 Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-1c465d59719so20648025ad.1 for ; Fri, 22 Sep 2023 10:29:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695403782; x=1696008582; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6ETPoce/6YX2kY+iQ/A8UrEQDIks3tSdmHKz0XOgmHI=; b=msNEFboQBp2XBbRfv0SwZR8eIubLSpjUBryfPlvrQx96i9ez3ePrMSqPXrGZAmZCZA s/ArTpNFJUIaEWqqjYLbQT8LQJSRUet4VThHh72hY0uW9PCJff+ucZ8zah61UHS55oP/ zA9/4mR/eL3oTS1xYhe5coODHTyHpeDggA3maq+Fuk6Tq8DLPUCrRppAFkC7pVS50RWu A86scQflja1O1AwGiw+KHJ2SdsTz/T9tGDVQ5UFIze/pVAGhxSH6tptCn8YpLW3M4N4Y PkHnMRwdeX91g9uhK1hBB88LjWfq9ugVL8DJKKOEeu0FMiZbUOXyR9ub8SflB/2KU+zD nBog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695403782; x=1696008582; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:to:from:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=6ETPoce/6YX2kY+iQ/A8UrEQDIks3tSdmHKz0XOgmHI=; b=YDj2wXLALuPjNIEIugkWTv7utkHX82nI/CGRm5guWmtnOcYYALKUrRpxVUDWme1D+W OTrIJqvAWqFahGx8vT3sshh+Y4N8o1qwHR9pR5ludzPOzcgLwxGVyHEwKebibsJ8Hi1o VYtW9g6rS9Gi7vyHlh9oIa7TAJouk7IJdbS5mAMUm1NYlx122RcuTCjiFB7Gv+l5eTF1 53xi5+hJrUodaOteHPpV1e2CuMzQfX9vOfhduJW7+TNatKtdd55qWhgxh1clcsEJ2Diu /uHCVm5vRR5Rjkg1i0q2yRCvTXBcHZ34Z4nX8RObzRMWobLNl9lB90BJQu3JPYW4QcJY OOkg== X-Gm-Message-State: AOJu0YxAa+o9A3qTISGljk5FxmU+T8FWMjKEPPriYtnM3b1qR7BHNLtf qOmSJOIiuLZZwqGb5N8C1/wEE0a34h8= X-Google-Smtp-Source: AGHT+IEO53BTi8IkhqHXK3l2E1ulEZjcnm+2E9hbuGxc3ZHpjxnlWwmwZCBAqKSbURY0qbh1Fhs52Q== X-Received: by 2002:a17:90b:30d4:b0:269:3771:7342 with SMTP id hi20-20020a17090b30d400b0026937717342mr343840pjb.18.1695403781970; Fri, 22 Sep 2023 10:29:41 -0700 (PDT) Received: from localhost ([115.240.90.130]) by smtp.gmail.com with ESMTPSA id z2-20020a17090a1fc200b00263b9e75aecsm3810355pjz.41.2023.09.22.10.29.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 10:29:41 -0700 (PDT) From: Visuwesh To: 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: (Max Nikulin's message of "Fri, 22 Sep 2023 23:51:49 +0700") References: <87jzsintv0.fsf@gmail.com> Date: Fri, 22 Sep 2023 22:59:38 +0530 Message-ID: <87fs36nmkd.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::62c; envelope-from=visuweshm@gmail.com; helo=mail-pl1-x62c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -9.45 X-Migadu-Scanner: mx2.migadu.com X-Migadu-Queue-Id: D2D3534BF0 X-Spam-Score: -9.45 X-TUID: 5rkSGz5L7cxK [=E0=AE=B5=E0=AF=86=E0=AE=B3=E0=AF=8D=E0=AE=B3=E0=AE=BF =E0=AE=9A=E0=AF=86= =E0=AE=AA=E0=AF=8D=E0=AE=9F=E0=AE=AE=E0=AF=8D=E0=AE=AA=E0=AE=B0=E0=AF=8D 22= , 2023] Max Nikulin wrote: > On 22/09/2023 21:52, Visuwesh wrote: >> Attached patch adds yank-media and DND handler to attach files in the >> clipboard and dropped onto an Emacs frame respectively. > > Thank you for your work in this area. > > I am not an active DND user, I am just curious what cases are supported: > > - X11 Yes. > - Wayland I don't know nor am I willing to setup a test environment for it. > - Sandboxed applications communicating with desktop environment > through XDG desktop portal (flatpack/snap/AppImage or just running > in bubblewrap) Same as above. > - Emacs running on a remote host (ssh + X11 forwarding) If the DND links are of the form file://HOST/ then the current DND handler won't run. I don't have a way to test it myself so I can't write a handler for remote files. I am not sure if we can even reuse the existing the org-attach code for remote files. > - Windows I don't have access to a Windows machine so can't test it unfortunately. > When a file is dropped into an Org buffer I would consider inserting a > link or storing it in addition to attachment options. The current code already inserts a link to the dropped files.