From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id sHo0LWKzXGNCQQAAbAwnHQ (envelope-from ) for ; Sat, 29 Oct 2022 07:00:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id kGBbLGKzXGMjJwAAG6o9tA (envelope-from ) for ; Sat, 29 Oct 2022 07:00: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 57C608C41 for ; Sat, 29 Oct 2022 07:00:18 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oodwK-0002C4-G4; Sat, 29 Oct 2022 00:59:24 -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 1oodwI-0002Bh-8D for emacs-orgmode@gnu.org; Sat, 29 Oct 2022 00:59:22 -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 1oodwF-0003t8-LB for emacs-orgmode@gnu.org; Sat, 29 Oct 2022 00:59:21 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 59598240103 for ; Sat, 29 Oct 2022 06:59:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667019557; bh=EKyVG1W14+niEs6RksfYQYJIDP3RdaJFfcoU5G63E30=; h=From:To:Cc:Subject:Date:From; b=buhmpNJd04yObP3CHy4edpIhVmcWqmM+riEjCreVLmd7XQX419HzqoQSUdu6LrpiT I/Lg7nZZf/72EDIJwxJN2tY7FZPPCllJbt7MPGIqH+gBpg7a/o6ccQISMKvCWp9Haz 1bgwL/xA1cvl5y2L1MBC2evbaAOUi4vk92XhTPL2RxTdG5O6An6Eg/w30PckUcK220 Xv92GMlOOGJP2okAL/h7bWy39PQ3cf2XJjR/2DtVV/5fS8qF3JNsWxPE9cW4ePWfrr MqRgxm7KevvUSBBvskugEIrTrpe3Eem+bNQIG+z6p0WRW2UAKdNFk4crrBf7n/pBcU XKrjpt+WuXjQA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4MznJN1F8wz6tmX; Sat, 29 Oct 2022 06:59:15 +0200 (CEST) From: Ihor Radchenko To: Samuel Wales Cc: Max Nikulin , emacs-orgmode@gnu.org Subject: Re: Getting X selection reliably (Re: idea for capture anywhere in x) In-Reply-To: References: <87tuw31iub.fsf@mm.st> <87r0zelo7e.fsf@posteo.net> <875yg7qiyb.fsf@localhost> <87bkpvl4go.fsf@localhost> Date: Sat, 29 Oct 2022 04:59:58 +0000 Message-ID: <87czabjkc1.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: -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, RCVD_IN_MSPIKE_H2=-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: , Sender: "Emacs-orgmode" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667019618; 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=pUrhnXBGIwXbxsNcVTX2l9voHiGjDdqHiSkaJMJzXKY=; b=mmKGLhQkL5fk8/jUg7Ev01xbHuo7QPbJDkJXLXOC87XLiV13+/0lEpGoRUK+J4fHFcUW1V kAsPWphvztCbfM54GsjS8BDB4pmyrpuvdmb4k3iwJxk0QcMkHIcKvu9bRO20MiSpydTnUC pY2iRt3HhZSidYDnU3ur3MC7yvDNnO59M3Cw5JTrYCtZ1LZ+VltUFdRqqKTWT/sJynoKO4 tH1yVaCRYu2bAa0Cy11A8+tj/W35Qy9RJsCe2FkzdF35seH+Czl8VgF0NclX4Px9YfOHxN uHvaOJPGs4nCWmlKTxPjbTz9QWA/dTFp3s+x/4BTGJIuEFwVyV7aM8XSMrzatA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667019618; a=rsa-sha256; cv=none; b=m3sJ0vrCP7dTZOuv2dUtZxXkLtItBJD9zwzM7+tJh+Hir77JxMzQrdam6azNMkLe+6BRHG FMLMtQiu0ePl57EzomPV43ksJXWQkSqmyt4YSvDpTRUxMnx4ZmQK1m9cu1RUPf5U+elP2p H6ukcd/3fM8hsGe1xlz4ia20bm96wPFBlezfV9GOoRwZVpxVwJrWGMh3tIZ0NEucn1hqty P6ZXfes4wXtnECLZuhovsCWoEy3L4x4FqLGIw9fQ5I+c0XREslpMbuqTUtvOUwJ2iGQaFM tSo0Omscts5lfQ49UVQ1tMUt1/hyp8fyJ68ZfD/ylvjyR9jPZJ71y1skIgvYqA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=buhmpNJd; 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" X-Migadu-Spam-Score: -8.43 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=buhmpNJd; 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" X-Migadu-Queue-Id: 57C608C41 X-Spam-Score: -8.43 X-Migadu-Scanner: scn0.migadu.com X-TUID: WozGdg5aiYEl Samuel Wales writes: > not sure i am following everything but it seems a popup that goes away > after a very short period of time shows adequately that first contact > was made with emacs. then, including the captured text shows that > there isn't another issue? Let me elaborate. What I have in mind is org-capture-before-finalize-hook. Functions in this hook is executed at the end of the capture process before the capture buffer is killed. You may reasonably assume that the capture is successful if the hook is run. Functions in org-capture-before-finalize-hook have access to the contents of the capture buffer text. So, one can call `start-process' to run notify-send shell command and put the actual captured text into the notification (displayed briefly or for longer time according to the switches passed to notify-send). When notify-send displays notification, you can quickly eyeball if the captured text is what you intended to capture without opening Emacs. Hope it is more clear. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at