From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id +CqxIY2XXGOO8AAAbAwnHQ (envelope-from ) for ; Sat, 29 Oct 2022 05:01:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id gEqvIY2XXGMJJQEAauVa8A (envelope-from ) for ; Sat, 29 Oct 2022 05:01:33 +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 64F6A5A91 for ; Sat, 29 Oct 2022 05:01:33 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ooc46-0007pa-Gw; Fri, 28 Oct 2022 22:59:18 -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 1ooc44-0007nT-3k for emacs-orgmode@gnu.org; Fri, 28 Oct 2022 22:59:16 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ooc42-0003Mn-8K for emacs-orgmode@gnu.org; Fri, 28 Oct 2022 22:59:15 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id C49E2240026 for ; Sat, 29 Oct 2022 04:59:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667012351; bh=8kR5gBIyWfPCSrUBgsNL18Ym4nH1Tz/VwD3V2HuZk+0=; h=From:To:Cc:Subject:Date:From; b=EQ2zXMhOquicRuxZ+JY7Jzu5armmLtVjQKQHAgh83x7nxU4+qXw0OrIHacWvgQ22t 6kiRDNooKfguI2ekj6v1RaXl7C+DF7fabq4vbhFNcnCLtkT5VI8eBIss/1cHd9s8Y8 +m0A3fEBsKeu1WGh46P3E6SowcgM99QgVImBOCSOfzVuvpQYa7m8q0s3pBLAKc5Cv5 xwLiBdME2gthL2TtOJ2KWbCdMQr8Hu44L5TyrAHCVfpyiZrCvRUPy7l78rJtIsEFeC okOVlGJcqYOw+iT4GCNIHBoO7Aupe953i+rHwMlgGp+yNuylFVJ1HMm4wgTSzj72l+ OPGwBrNeZLuQg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Mzkdl4tRKz9rxF; Sat, 29 Oct 2022 04:59:07 +0200 (CEST) From: Ihor Radchenko To: Max Nikulin Cc: 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> Date: Sat, 29 Oct 2022 02:59:51 +0000 Message-ID: <87bkpvl4go.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.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, 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=1667012493; 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=jSsthvkzkhXA9WGxP84V/E5QargFYwUw7ZAWOlrnPhU=; b=B6NxeJeNg4C0s5bwX+qIc5yFhFWnD8X9U8VTTZXjrilxBZQ+p8GZuFFfiXfUEpcgta2bS5 rbhnOwqrzfieXP8LTkoRWrq5GlhtQ7s8fLUf9rYko8IZ19zvjFhtBhoSvFdkQKrFSQp6IL cvxF/250dR02bmXrnCopxxvJ5/Ay7gGxkAY36m5b0NZAf3KjWg7knS+I/EIaHXPenBTrIw 5si2xApIlMklegXoymAFn2Hpk2VraaQInEMhIGWW+D79zv9W5Ed2724n3CV9ZFneRnuQt/ +YQu6eQ0aMi38Ne0cB3k+058+NvqU4sTSKIWFVXpFawftKh7kKFpVmcfbKIMRA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667012493; a=rsa-sha256; cv=none; b=cXArRoadm+3046MP9Rh1a9eI+hyD1NCWB6ckXsqk9xeRM4dNgJ1rflf6JBJAQ/YoHl6CTL 4telqP9oAWo42gly+6l6szTVWTggLB9jL5JF7Z0TS2W/RL+eGp/MkDVPof4JeF13n48VBA OeeaQUj3yhYzn2PXLzZHHb4O45aJk9l3DJ8vnv28DGHKsEExRYAn8MJ8P+eDo/Y8OnO6I+ Xrr8/BekiQ+aOilzSpnh4Vsz978kkLJth9v19Pk5qDQN48z/CMlTB6Iri/5dupii54D+08 jrMpXCodnrE4r0Pl8srzeJZZiZw8CEgf/eD4qIMXVHPN9gX9cIoUm3afDinHfw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=EQ2zXMhO; 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: -5.43 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=EQ2zXMhO; 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: 64F6A5A91 X-Spam-Score: -5.43 X-Migadu-Scanner: scn0.migadu.com X-TUID: T8PpBDEyIydY Max Nikulin writes: > %(org-get-x-clipboard 'PRIMARY) > " > :immediate-finish t) > > However to be at the safe side I would check if (org-get-x-clipboard > 'PRIMARY) value is not nil at first. My approach to this is simply showing a popup with captured heading after capture. If anything is wrong, I can quickly notice. Not sure if it is suitable for Samuel though. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at