From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id KUSCKp1d9V+XPwAA0tVLHw (envelope-from ) for ; Wed, 06 Jan 2021 06:50:05 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id WBsWJp1d9V9tKAAAB5/wlQ (envelope-from ) for ; Wed, 06 Jan 2021 06:50:05 +0000 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 4CAA7940274 for ; Wed, 6 Jan 2021 06:50:05 +0000 (UTC) Received: from localhost ([::1]:38598 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kx2dw-0000UP-7F for larch@yhetil.org; Wed, 06 Jan 2021 01:50:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43874) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kx2dT-0000Rh-4m for emacs-orgmode@gnu.org; Wed, 06 Jan 2021 01:49:35 -0500 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:34948) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kx2dR-00041z-Ks for emacs-orgmode@gnu.org; Wed, 06 Jan 2021 01:49:34 -0500 Received: by mail-wr1-x42d.google.com with SMTP id r3so1453206wrt.2 for ; Tue, 05 Jan 2021 22:49:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OnlIdKJkUef27KIsrEk1UUPM7Q+5OFmvCIiY8uO1UHE=; b=tbTIPQQD5YB40ntrFsUn2miHeSwFvQlg3TE9zokj9gI7f3hmlVWIurd1enSgCu21aE rUIyWwkBDPM/7boS53R1zvu7fDyecUJHCSg+ZHvB759n6omRf3uIGxmyNWsxEjVtukaa /d6sG1YISPrRFXOzyJ41aVQOaQkyWLC+8audkAY77yb9c22tQ+MlDYCvhoOgfLnQGJOd LMc9l6W+RBXcVBRXrKJq8Onr3JsKlb4XpZWnrXG42D/uzMlvLmQ3G5aqLrnc9fNLiAfO 2TLrWJtXcgPsFOOoyG8pS5+SLCvHuL6ws7a2Bs1WcxknemwlkVcM3b4uop8U8i7s1ORi kfRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OnlIdKJkUef27KIsrEk1UUPM7Q+5OFmvCIiY8uO1UHE=; b=d34dTKIhYuXJ6S6FfDk3poZpi3ajx9hdSM4i3hvv3KifFuqSqUyx0anTL/gMI0iy2+ OfPdc+TPumnCaDDrxyqAAQAC8ssgka8986GxEkoUe3UFMXFeh05wUlGEUyqUHGT0xn1s u2hJP6JR259c64HzNre+aEIr+joDLLAm0CjyMMjDO6g9c7MkRgtiemwL8FEl68KGy/WY 2YxdEMiXZQa8QrF0RkCvZC0pvR0LA+t2wkNasEbfJ6588hiRJwlwP+qq8PIrOKTNRgr4 KtCSWIbPzGvDnquPVybbjRZ5JDd1G/vzIXWTOokt6g+vVCwYZgHyZPJK4O5JkJOMk/J0 c6pw== X-Gm-Message-State: AOAM531FWPmsBnwZTmVBnszPnAQtGktvTDuRQsFJsMZkF3XL+R7k78BO /LNieHDw9cXow/QzexKKVYDWDQfGLuWjELN+jv8= X-Google-Smtp-Source: ABdhPJxpfnu0gl4wT1pFYTfbzZ1WtHrglrfiBvdjv6Ebz+C6eOxaZze4P+w7IWrVeuNEH5GNrPQXOXtN1727l6uE7Jw= X-Received: by 2002:adf:ebc2:: with SMTP id v2mr2817808wrn.88.1609915771796; Tue, 05 Jan 2021 22:49:31 -0800 (PST) MIME-Version: 1.0 References: <87eekcfeyk.fsf@ucl.ac.uk> <87wny4oy0h.fsf@ucl.ac.uk> In-Reply-To: From: Tom Gillespie Date: Wed, 6 Jan 2021 01:49:20 -0500 Message-ID: Subject: Re: Possibility to copy text outside EMACS and send it to orgmode document To: Gerardo Moro Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=tgbugs@gmail.com; helo=mail-wr1-x42d.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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.04 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=tbTIPQQD; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 4CAA7940274 X-Spam-Score: -3.04 X-Migadu-Scanner: scn0.migadu.com X-TUID: wHs9Hpev9AUx You can achieve something a bit like this using org-protocol-capture-html https://github.com/alphapapa/org-protocol-capture-html. I'm not entirely sure whether you can bind the equivalent of a hook in javascript to run every time you C-c, but if you can, then it should be possible to match this exactly. You might also be able to wire up org-protocol to the X clipboard (if you are on linux). Best, Tom