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 6EcFIDOxXGOLcQEAbAwnHQ (envelope-from ) for ; Sat, 29 Oct 2022 06:50:59 +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 oMI3HzOxXGPuAQEAG6o9tA (envelope-from ) for ; Sat, 29 Oct 2022 06:50:59 +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 222438877 for ; Sat, 29 Oct 2022 06:50:59 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oodnS-0004jx-7y; Sat, 29 Oct 2022 00:50:14 -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 1oodnQ-0004jH-Gp for emacs-orgmode@gnu.org; Sat, 29 Oct 2022 00:50:12 -0400 Received: from mail-lj1-x22e.google.com ([2a00:1450:4864:20::22e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oodnO-0002rv-Q1 for emacs-orgmode@gnu.org; Sat, 29 Oct 2022 00:50:12 -0400 Received: by mail-lj1-x22e.google.com with SMTP id j14so10640687ljh.12 for ; Fri, 28 Oct 2022 21:50:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=9odnkrQ5JA36q/lZqdFB7ZR4XvP8VKqf8OOp5uraGcs=; b=EqbxWp31uIYGILNPMmJ97SUfBh4DUglCLz7YvlOUHptMT9dsmAYWzFR56edlbJupe8 5eQ54CPdsOYoB3C4mHzO6VquZOYCV73w3z2qWzB1zsJClqGl6c04NZkv2rjj3qKHnYuS gJvDfL3/QUopghJi6BK31pvnfnDqxtUTEciYoWGrS85tvzlEwiNO9Uk5Y6PXl3DFhB6R aAlNzAb4+Urk3lyoSsHVWXuDtSyDIqJ+gXvaY9Aczk+PHuYH9B9yvxLuuiGNo2f/Fr5D kI5sCmPxaYgwMQOaQF7HJ/uue4FqD3hKcLK/vkRYSwzOJofcKv2t3jdgmEUOfoVfC7TR X8pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9odnkrQ5JA36q/lZqdFB7ZR4XvP8VKqf8OOp5uraGcs=; b=G2OdZ5eLwbsNwCtFN6LtDyG8LXH1lYZQ76vTJ2AwEQHFd3ySjDoL5X23WBUyl37Pdb xeZVJ3FlC3Z+oXQLyKLCFMZM+DjHIZr5GYoNPXWKev5eg7RFwl40MyIoomZ+FgcVd9RQ WKIKYs26dExQVJhx+MfFFZwdRv39+WZn6paD1X2f7TwBnRmu479/+Fd1o8lLCAE4qnrU ukxSxInt7rbBfi1cj+a47FjPXk7lZrO1puszwsRFtSK9WRNTtJSgYJK2ff5IhjIy/Lqs K/q2kdA7ORYUWTXQik9oQj74j+oI0eK9UCwULoElmN7dTaxYVN9xLDjQm2GuDwwOfG49 OItg== X-Gm-Message-State: ACrzQf0c6Ex8cjOXjjDAq/8BKljWzbn4Tzd09p5fMa6xb9shO8muvhqf RQ84/zaeQaNKHK4a4w2cB9mv13py/zAvJ7Wludk= X-Google-Smtp-Source: AMsMyM570t9k3GJprSOP8gCLjPLj2fvvpmeCeRaAKIRuKo45b748U6VmW/xExgWYPNdFnEXiiFur1RF0I3oy5Jx4O2k= X-Received: by 2002:a05:651c:98a:b0:26d:fd1f:10 with SMTP id b10-20020a05651c098a00b0026dfd1f0010mr1050648ljq.323.1667019008876; Fri, 28 Oct 2022 21:50:08 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:6520:4af1:b0:22a:e96a:7f9b with HTTP; Fri, 28 Oct 2022 21:50:07 -0700 (PDT) In-Reply-To: <87bkpvl4go.fsf@localhost> References: <87tuw31iub.fsf@mm.st> <87r0zelo7e.fsf@posteo.net> <875yg7qiyb.fsf@localhost> <87bkpvl4go.fsf@localhost> From: Samuel Wales Date: Fri, 28 Oct 2022 21:50:07 -0700 Message-ID: Subject: Re: Getting X selection reliably (Re: idea for capture anywhere in x) To: Ihor Radchenko Cc: Max Nikulin , emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::22e; envelope-from=samologist@gmail.com; helo=mail-lj1-x22e.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.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=1667019059; 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=9odnkrQ5JA36q/lZqdFB7ZR4XvP8VKqf8OOp5uraGcs=; b=rvEVWeUr2VdllC41n6a5qph0SDAUv0APCD1A2fB/AX48wha5kbmj6TvywvsdOygHZFoaT5 FDxXJPmA/XsKb2aYahEX+iAxDUBu3DseIDSRFwAPlaRQjfs23X5truqrvCQ47SSXCF7PV/ 2EZKAn7jfvtTtGEno2at/jsYUytO3B6uDG1ebkza6tkGkIzmVvrg1UKuWPso7CNY5M34tA 7/sK9Hv9eTQfTAV4745DN/vhlJau+S6b+oeI48ss5tlm2PUKKllYFDMcgPNSFo5u/e5zDh FPjr0oCFlrbw2BDYc3j4jDEUkN7B9z5RuGHTziEKByW4YnkYFlqvvpfsWNn0lw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667019059; a=rsa-sha256; cv=none; b=u/HYh5g26dAmyjyrQ5b3n9hGsGgDpLKE9MsFmefZJiEIxZVyq126jRUsq0k6qMaIiKwRqx enTznXi8bt44NJrUXrSTTnS904bv/olfbIvAi58RbUkUFbrMkHD0INEl+LAj00gbHugWrm u4tEnMbVfEPbDn9/L53pVeN3TkC3gYbcV3wyyWX9qyLCeM0adDkNAsNN5XPjtGRqGgymy2 GdVzWlMzBZU/R/wAfRpQuxDOZ8MHK94vprVCjUi0vQufrJDd9NK6R2PVPymxHo9heGXiCu 08jgw+40Us8/nfato5mQTtMAiGtt3c9wUyr0bNE7IMMBP0QGJIZbWBxmuzRw9w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=EqbxWp31; dmarc=pass (policy=none) header.from=gmail.com; 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: -3.93 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=EqbxWp31; dmarc=pass (policy=none) header.from=gmail.com; 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: 222438877 X-Spam-Score: -3.93 X-Migadu-Scanner: scn1.migadu.com X-TUID: ycbvXhq06dQw 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? On 10/28/22, Ihor Radchenko wrote: > 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 > > -- The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com