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 uKhIAba4H2XQrwAAG6o9tA:P1 (envelope-from ) for ; Fri, 06 Oct 2023 09:35:18 +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 uKhIAba4H2XQrwAAG6o9tA (envelope-from ) for ; Fri, 06 Oct 2023 09:35:18 +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 AA93146EC1 for ; Fri, 6 Oct 2023 09:35:17 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=yahoo.com header.s=s2048 header.b=bOua0pw3; 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=reject) header.from=yahoo.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1696577717; 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=3qgazbtIfWBSNioQ4jBwH3aO0JcXZhaFy335QHuR0MQ=; b=kqtjdn9KfP3wt5Nt7s4c3w2fzyVsuiBhbFhv4/CWOLLWrLJ4VQGdMReUOw8QI8OkCbm85j dx9t9AeAa09zunGtP+U6tlL6by8tnYCO+SFKfD5xFwDBPTNlmymMTpTZS3i0E9Zx/RpSS6 NhtfOKtj34Va+O9Bq0H9oXLp+I9XXqhuD2NEb1rPThbiDZ7cgey/5iTxvH9RiGQw2P4gqx ZeQRabHQrsU1iBHY/6TC4LB/c/HqK7u4Eli7fUqd9gSTRezhstcEhNA3x29VN0eLRLrEk6 TN2mhwH/iOX8X3RQ+GlprlGAHLP81SE2rPZUhlGliqbyN0yIPakiCnaKi2l9Pw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=yahoo.com header.s=s2048 header.b=bOua0pw3; 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=reject) header.from=yahoo.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1696577717; a=rsa-sha256; cv=none; b=jUg4K42itvTuVpF724wuhk2qUDy0r2E5ZkoJJsyYNfryRWmrdmLUogytpmkiIILpElKslB ewExfY3IFQR73ULXyNtqqA3H9gHNvnatGXxOFuvli2/aIN5jzGTjEvAqVrWBhid2+Nunjk +bThtJZSCvOn7ag7bbvPmxqWtWMuowQrYXKBd20V4MSbOWRF0NdaAV5GNRNKTsAIb1BMRW m+aKRd2Ogm15sTcfCnDwK9mxCLEqkCAIkPDoOfveYMNHdUTPXECZ6KhAoOhYIwJrgup3Qw keFMne/YxWJqx3P87BspS2ocmRQz3OG4ZSluRVktxMLVs/oG2Rvfj2TAPy+Sjw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qofLw-0001Ss-Cj; Fri, 06 Oct 2023 03:34:28 -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 1qofLu-0001RM-C6 for emacs-orgmode@gnu.org; Fri, 06 Oct 2023 03:34:26 -0400 Received: from sonic306-20.consmr.mail.ne1.yahoo.com ([66.163.189.82]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qofLr-0003Pg-8u for emacs-orgmode@gnu.org; Fri, 06 Oct 2023 03:34:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1696577659; bh=3qgazbtIfWBSNioQ4jBwH3aO0JcXZhaFy335QHuR0MQ=; h=From:To:Cc:Subject:In-Reply-To:Date:References:From:Subject:Reply-To; b=bOua0pw3N/AKbQmkIUt34hnbkc3JZANBuLbUg8/A+56whMf/RhjWO83UAKbDvQb+O55sqOoL3+tHMnxpKUjmxIxfs3kHx4DNFR6m7UWbVz9J4IoVPuLIZETRDDs9s6JQU+ZXgjufdZX4oe0SPkxmJslVo6eR3BKMgEqZtJ4XF14PfzsqJaWPrFJ8KhQ6N/qrUqeTWE2BCK8hviEjyMBswU3fqbJGZpxObZVlH3kU7AxYSwI++JMxcYWAWkTdmgcPpa7LqIGI9LIjBXXGd8wwk1QsoCGWtFV10+xRsk7UCmDUm/XAH7LzlRJwuPUaFCJ7BYfodcXpqZYDEZt8xeoI8A== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1696577659; bh=9XBs4icA2C4HlkP3WqLFzL/brxbSG9/mlbs42EfWpoq=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=ZCF0pZHASiW+SWRlkxhwyuM4lpyAn5/+3zvTrbQhkYbb4/75IIMXI+LmRYufWZixkioLVeMMC5IbShnLZrOxh1msKD3uqSGU27/y/mrp95mBc0GDLVG3IeFKH1gOk9d6bxVfr5RH9JkA9SyR2XGHqKUgap8LUo7DtYBhTNBFofQIuriEp460ae4ZzWiTReC2evCSOTxaPv+gXOszloPa7EYEYtIxReogl9hKCbYCAvV6WIUmIlacPyctX68SUOq9ynyqNw9912LnbkL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CBDim.UsS9CE.abwLqY 6s.VtiZe8uvXAC1HqHOOwTR0cra2_LqCFHn926uDG0Q8J1mpQ4mTYjLsSevPs0eLYJfE5EhbF9q2 nRqTZoteaWApxmoJvuq_vgeDGpvkWg70CWQMKqJjerGK.fuPyBryJSpd_rgUHKWavakTV2iCr7R. Wmmeb6EbQ7tva3rdJ8OOYHLtDwUrPXQMuOAd.mBGG9sMNBMeZiZQ_Gu5iiV2YdL0- X-Sonic-MF: X-Sonic-ID: eb9c749d-6557-44e7-8c42-08ec4ff5c721 Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.ne1.yahoo.com with HTTP; Fri, 6 Oct 2023 07:34:19 +0000 Received: by hermes--production-sg3-64dc67fbb6-ktgw4 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 95701839308a3c4fcb80b057e2fcf6c4; Fri, 06 Oct 2023 07:34:12 +0000 (UTC) From: Po Lu 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: <87jzsintv0.fsf@gmail.com> (message from Visuwesh on Fri, 22 Sep 2023 20:22:03 +0530) Date: Fri, 06 Oct 2023 15:34:04 +0800 Message-ID: <87bkdccihf.fsf@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain References: <87bkdccihf.fsf.ref@yahoo.com> X-Mailer: WebService/1.1.21797 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.189.82; envelope-from=luangruo@yahoo.com; helo=sonic306-20.consmr.mail.ne1.yahoo.com X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 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, RCVD_IN_MSPIKE_H2=-0.493, 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: -7.58 X-Migadu-Scanner: mx2.migadu.com X-Migadu-Queue-Id: AA93146EC1 X-Spam-Score: -7.58 X-TUID: tnIeTk5G4Nm+ Visuwesh writes: > Attached patch adds yank-media and DND handler to attach files in the > clipboard and dropped onto an Emacs frame respectively. > > The yank-media handler for images is well tested, I use it frequently > however, rest of the stuff aren't really tested since I don't use a GUI > file manager. I tested enough to make sure the logic is right so I > don't know if they are ergonomic enough. As noted in the comments, > files copied/cut to clipboard doesn't seem to have a solid spec and most > of the code was written with pcmanfm as the file manager, testing with > other file managers are highly welcome. > > Better names for the newly added defcustoms are highly welcome since I > don't find them to be clear enough from their name. > > The patch compiles cleanly without warnings but I haven't tested _this_ > patch yet, I have these functions in my init.el and have tested those. Thanks. You have only implemented handlers for one of the two protocols employed by X programs to perform drag-and-drop. Lisp code receiving dropped files must also implement an XDS handler, absent which files dropped from web browsers such as Firefox will merely be saved into the default-directory. XDS is distinct from the regular drag-and-drop system in that Emacs is enjoined by the drag source to provide a file name under which the file should be saved, whereas regular drag-and-drop transpires once it has already been saved by the drag source. Refer to (elisp)Drag and Drop.