From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id mC8IOupTMmXzVAAAG6o9tA:P1 (envelope-from ) for ; Fri, 20 Oct 2023 12:18:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id mC8IOupTMmXzVAAAG6o9tA (envelope-from ) for ; Fri, 20 Oct 2023 12:18:19 +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 ABA9A551C7 for ; Fri, 20 Oct 2023 12:18:18 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=izt0Ry0C; 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=1697797098; 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: 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=DAEUAYmXMyxPOudIPwZmiPqoCp1f3xEyRD1yb5pGGs4=; b=gzj9ZObVV4dRaEf+A0ccOlmr45QGPowJ8Yp7SeCjtjvfuylgClxf0rC5316cNTjIPXKSem Y0cpTzX8NvNPtA7pmKs+CoYh6cn5w0jwPSyr5LOGkspn9scFFkIv+8YWoW9ycrvta3jm6u iiRLKnOniMG+yrGvU9U/jq+FQTUR2QGFmv3U/2YshlR0p4LHWuv1x8//dgR7bhbI8IC4SC +xiTxBRkXoohzHO1qROamuSNm1lwhPjp6431ZWAns3xSAnVmUDkOLKhafA5BqFGZAeelb+ yTvcunU3iLSZHieUnqOW9+yWbyomKTMugOtvfnlh0hvUZAty5JPkO/UycfTnfA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1697797098; a=rsa-sha256; cv=none; b=bI+J/QdOq+vihX7Wcx2EBhkKhcKOAdXFAVkUtPmGIj4u7cuyqms9n5z6y5VUwA8MS7ZFu2 f+/bxIisyFzbfhO0919tzrdabd9sRKJoDwPgNIjjp9hH9OLLUZe6xE6dPecV3H2J0Rx0ZI AcYfN5kkhRjZH7aRXRp3m2ygVjouH/OJQe3Nb/yJsUFBIaVDC05F1HhKQZjxHPZOnsgLOi X4z6pKQWWOh3eQVWxxIzbU1Io8+rqDyOYMjHBwWs4R0IzlBHydiNvbMpOwQuULe12v0yDh GmA7LS/9rWCUGQwZmb5ggrvF0d2wK37O8flpaUw1DQIaBavlbPCayZOquz7tOQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=izt0Ry0C; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtmZs-0004eq-LH; Fri, 20 Oct 2023 06:18:02 -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 1qtmZl-0004dG-FB for emacs-orgmode@gnu.org; Fri, 20 Oct 2023 06:17:56 -0400 Received: from mail-oo1-xc44.google.com ([2607:f8b0:4864:20::c44]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qtmZj-0002E3-VK for emacs-orgmode@gnu.org; Fri, 20 Oct 2023 06:17:53 -0400 Received: by mail-oo1-xc44.google.com with SMTP id 006d021491bc7-57b5f0d658dso359724eaf.0 for ; Fri, 20 Oct 2023 03:17:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697797069; x=1698401869; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=DAEUAYmXMyxPOudIPwZmiPqoCp1f3xEyRD1yb5pGGs4=; b=izt0Ry0CPfFFoO44ROgspJLTQm3w+LXgyYuqDm9y7C9rDAhBXFlX0d0YEjzgys+jmK uKitaNpPaq7AN3LwTIGvK8F0VcLESJWS99ZstmThfxe1TiOxZydaWLXkX4Jmgsw2c8J0 HadgdBEopmz/LwQOiGGc38o7cqJRn1DPIGiJZCz4YEBFpynSFULf8AxnQmpLMuv+6ChY EEwNDvMzcAp/9/wU/Y/IUH2CxcpyIh+lRHVhzoytvy4TljbbFXoF/Lnz0Zk63fwyOB0+ W5oH4QRwKxsDeKdeyvonTP5cBXsKUGL3aRTbE4vWBnksHKUHOtj0ccUx+xE41ftRR0gz sf4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697797069; x=1698401869; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=DAEUAYmXMyxPOudIPwZmiPqoCp1f3xEyRD1yb5pGGs4=; b=bjNDU9lSxgSgR/ARkpiE5pyi1EubfMD3orpLuxRUmD6V/hS6e0gzL9hCIQuPL5XHV3 sSiZazn6N7YpVrNO1sDR5qMZ84rvNNzE5bhlqaFHkrWKVrkiJWKzURhu/wMia2+XKgrQ 1vrTrsau2fj1bXXrkhr8JFUPbI5z76p5vfWnZ2YhlB+zwlOMecgYdIN1I96wimHUBt5G DXosS2BjMAJHp1quy5RP80rNIkoq+DE8LewTiWX+M8SLd/eZwIC7lcrzN2+sabUX23IC OA3gnLIySZKRIc3jZcEjhORvVCAtFK6DcGc2EaP/mtYlYfh7PG6XPf7nzh4y8LfjdXD5 50kQ== X-Gm-Message-State: AOJu0Yw/2/oywbEwfGu7wkBjao9EfOMDz+tNt0S/Dw1dbYUtqnZgespy JI8B/bGf3QZ9aKAj+DhDpcT2zT0TVevZ3A== X-Google-Smtp-Source: AGHT+IHvr8zbWYpd0zKsEJD4Id7aqY/D8AuOFNcqRvEGU7JueE0AwcA6W1ro6FxdGG0W9KEtKU/seA== X-Received: by 2002:a05:6358:18e:b0:143:8aa4:30bc with SMTP id d14-20020a056358018e00b001438aa430bcmr1442925rwa.8.1697797069547; Fri, 20 Oct 2023 03:17:49 -0700 (PDT) Received: from localhost ([115.240.90.130]) by smtp.gmail.com with ESMTPSA id o9-20020aa79789000000b0068fece22469sm1202094pfp.4.2023.10.20.03.17.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 03:17:49 -0700 (PDT) From: Visuwesh To: Ihor Radchenko Cc: Po Lu , 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: <87jzrhd8ur.fsf@localhost> (Ihor Radchenko's message of "Fri, 20 Oct 2023 07:57:32 +0000") 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> <87cyxbdjzy.fsf@localhost> <871qdq5ad6.fsf@yahoo.com> <87sf65da4t.fsf@localhost> <87h6ml4ty0.fsf@yahoo.com> <87jzrhd8ur.fsf@localhost> Date: Fri, 20 Oct 2023 15:47:46 +0530 Message-ID: <87edhp61it.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::c44; envelope-from=visuweshm@gmail.com; helo=mail-oo1-xc44.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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-Spam-Score: -7.03 X-Migadu-Queue-Id: ABA9A551C7 X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -7.03 X-TUID: s9k8tI0khqFO [=E0=AE=B5=E0=AF=86=E0=AE=B3=E0=AF=8D=E0=AE=B3=E0=AE=BF =E0=AE=85=E0=AE=95= =E0=AF=8D=E0=AE=9F=E0=AF=8B=E0=AE=AA=E0=AE=B0=E0=AF=8D 20, 2023] Ihor Radch= enko wrote: > Po Lu writes: > >>> Because nobody added you manually to the CC in this branch of the >>> discussion. You would only be automatically in the CC in the replies to >>> your message (87bkdccihf.fsf@yahoo.com), but not the earlier branches. >> >> The follow-up I mentioned lists 87bkdccihf.fsf@yahoo.com within >> In-Reply-To. > > I see. I use wide reply by default, personally. I did not drop you or > anyone from CC in this thread on purpose. I also use wide-reply but the problem was that I neglected to include Po Lu in the CCs when I replied to a message in another sub-thread that referred to Po Lu's message. So the issue raised by Po Lu was addressed but he was effectively dropped from the discussion due to my negligence. >>> Do you mean something like a standardized entry in `dnd-protocol-alist' >>> that is independent on OS? Instead of (REGEXP . FUNCTION), >>> (SYMBOL . FUNCTION) with SYMBOL =3D 'file-list or so. >> >> I'm sorry, but I don't understand what you're proposing. Would you >> please couch it differently? > > Instead of passing dnd data as is from the OS, Emacs can convert it into > a standardized format, independent of the OS. Then, > `dnd-protocol-alist' can allow handlers for such standardized dnd type. > > In our scenario, the dnd data will be dropped file list. Emacs should > internally detect such file lists for GNU/Linux / Windows / other > platforms with dnd support and then convert them into the same format. > Then, dnd users can add (file-list . FUNCTION) into `dnd-protocol-alist' > and the FUNCTION will be passed with the converted data that will always > be the same for all the OSes. > > Does it make sense? BTW, I would also like to have something like dnd-protocol-alist but for dropped _text_ instead. Currently, every dropped text is handled by dnd-insert-text but I would like to have a handler so that e.g., I can add the relevant bibtex entry for the DOI _text_ (10.BLAH/BLAH no fancy link) onto an Emacs window visiting a bibtex file. I currently do this via an advice but it would be nice to have something less hacky.