From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 3sD8IYyqXWMsBgEAbAwnHQ (envelope-from ) for ; Sun, 30 Oct 2022 00:34:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 6FBCIIyqXWO69gAAG6o9tA (envelope-from ) for ; Sun, 30 Oct 2022 00:34:52 +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 E998B2C505 for ; Sun, 30 Oct 2022 00:34:51 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oouOn-0000mZ-6x; Sat, 29 Oct 2022 18:33:53 -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 1oouOk-0000mQ-Qp for emacs-orgmode@gnu.org; Sat, 29 Oct 2022 18:33:50 -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 1oouOg-0000Na-UK for emacs-orgmode@gnu.org; Sat, 29 Oct 2022 18:33:50 -0400 Received: by mail-lj1-x22e.google.com with SMTP id z24so12565669ljn.4 for ; Sat, 29 Oct 2022 15:33:46 -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=DPUdVKKve7bk8nMtpJuEch59qyJo5arYmEWCc5dhiK4=; b=o4bKg74cN4OnfRrMb9nmENQCfSLwpfq7QlTxsIjfkOtQeYvXijRdiHv1Y87WHMF39K cFGG42/wtAeHLv80N/5BK53cuoVGS/OLJL+vQbKuGBCzwtVs+n2hedb+zP7raKxoqF1g Q/qgGmZp0yrVXCGcEUR9rHUt00xI8WVt9qBtBn8rdAlHkm5MapxC2nni9DgqGKi/jjWh nhuHkdBMBW0Wdz4fa3z4DYSldM1nNqG+v6SK12+7cBFyPG68l4onIAAVuMvUI01Cf9aN J4XrBVrANWOJIzHou9uQk4remHfQVQE6YtgBBqD71FLu6iejoNrM9vGSlAWw+JgL+ZQU XMpw== 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=DPUdVKKve7bk8nMtpJuEch59qyJo5arYmEWCc5dhiK4=; b=7NckRcDctR3glKKUURKdgAnDsJ8uxUNYdchrK5L7AaRPxpudNlmmyitm+btvWdZYgr hbLFqt9V7Kc6+Zndq5xr+JdhwRTP1leVTeIQey87DqiK/les7cVv5cItdZcAj/1VnCTH jJ0M5Z4etcecMc8q44BO+i8AzsJNhj0zPFgIi693lLO1xEvNH/2wr75503gfE2ImoYtm UD9LkY8hCghzPoxcxHT7GMn6rRXLUxEbBOslF4I0e2NKy/DSTHHn/FrjdykWmu3lHVrq FCaipXM4eJs9RTAuT6ETp/tOkZttCCJB19fWmndNVerBJK5gE1BCyZzSaStSPYgrBA0G /7/w== X-Gm-Message-State: ACrzQf1U0y69Up1xQxxejzMaOj8SbrhH/gWXtF8+B8i+U0hWa93GbDZk xkBP3e3f/I6UWKtTnmVD7Q+l7FuLNKeXLKjif6o= X-Google-Smtp-Source: AMsMyM7ySp4Eh7IU+5Tj8H1HQxwolU9Yi9xLy1CpwPI1rlp3aPu4W5Nnsdr/lBiGPR7Q+mvoWUZps5EHydBWqza5+mw= X-Received: by 2002:a05:651c:542:b0:277:fb6:b88a with SMTP id q2-20020a05651c054200b002770fb6b88amr2595706ljp.208.1667082824105; Sat, 29 Oct 2022 15:33:44 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:6520:4af1:b0:22a:e96a:7f9b with HTTP; Sat, 29 Oct 2022 15:33:42 -0700 (PDT) In-Reply-To: References: <87tuw31iub.fsf@mm.st> <87r0zelo7e.fsf@posteo.net> <875yg7qiyb.fsf@localhost> <87bkpvl4go.fsf@localhost> From: Samuel Wales Date: Sat, 29 Oct 2022 15:33:42 -0700 Message-ID: Subject: Re: Getting X selection reliably (Re: idea for capture anywhere in x) To: Max Nikulin Cc: 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=1667082892; 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=DPUdVKKve7bk8nMtpJuEch59qyJo5arYmEWCc5dhiK4=; b=skgib4CBivFVD0I/6r1cibQWC9d9Wn3ic2V/Y3rq5HxH1hsg+foc04TNL2G6ZIJEEejBPF 7GNtV1ZrWQ6ZlPfgmf2UbPQpyUH4ROMVx+ZpydtFba4hIYQqTILQm8XMpv1Lo2QJ3rVqug QPYkSlZiBaKZV/qNW5lVRGDM8CqnYl97d9MucIWd4WclrUTYQ8qzaPGlXKOUjUsz9SH+md saQJv2IXMC+CTDYxpEqk3tRYz6S5GJKiHpnC96u8iIVZeaFxEPN7rW7fNh63KwYjd0imd9 FBm0vvlFKGw5GfMXWZwSMTBSFpHLVGmTN9sK8pC1t2KYumY2CnZ0MlsVxLW2Og== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667082892; a=rsa-sha256; cv=none; b=Fj8ZWrhZM7CWTTQ8vgeGwX8ZcmJQItpCkBI8IZ0iCzVb//RRxJ2kMjTcJhLWIMApiG2+3Z EtBt7BcdTIJ9gJIfsgyJpm3mZaqP+lAdGh4dE4BwPpyV3oYUiI80cu4IEDmgpHvO8Pg7Lr PfLxHuPeuSyYZtD3VV30qFHWMIAy9GVlssnJqmj1EDVDRDbSAttQMo9pvp5ICEArRquz27 RBkWBGWgohxrm7C0uuNUv9ChG9iYjqMBdvEFIIoJW5H0zjcG2FUb3xfeKAo5LdeqiOYGon uVYRxwEPj/g9IULcmYgAKSF8y+FPDyoAgZ2U4rm8iTqXGglEg+PJRc2ijvVNsw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=o4bKg74c; 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: -9.23 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=o4bKg74c; 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: E998B2C505 X-Spam-Score: -9.23 X-Migadu-Scanner: scn0.migadu.com X-TUID: 0ZkSlip3WEOm i am still slightly lost [varying cognitive issues] but wanted to make one correction. i think i have my capture set up so that my typical capture location shows, although it is underneath ff so cannot be seen at the time. so a new frame in many cases is not necessary; the existing emacs frame could pop up for a brief period in principle. not much of a correction but there it is. On 10/28/22, Samuel Wales wrote: > if what we are talking about is checking the text or metadata as org > capture or emacs understands it against what we are capturing in a > maximized application, by means of a popup and a human [myself], then: > > i'd say an emacs frame popping up over the application [whether the > application is emacs or firefox or whatever] as just another frame for > my normal emacs [which has some degree of optimization for ergo and > accessibiity], but frame shrunk to fit the text, would actually be > preferable to a separate popup application/notifier tool [which would > require unfamiliar configuration and might not even be ergo or > accessible or portable/lts], provided that it goes away after a > configured delay, and does not require the keyboard or the mouse to > make it go away. so an emacs frame is not a bad idea, just has to be > done right. i think. > >> For other applications, since you have a requirement of maximized >> application window and purely mouse action, I am > unsure if you managed to configure fluxbox to add a custom menu entry > accessible in such layout. > > fluxbox is the only wm or de that seems to do everything i need. in > this case, it is quite straightforward for me [or else i have put out > of my mind any annoyance at previous years' efforts in making it > work]. > > what it does is have a bar that drops down when mouse pointer hits top > edge of window. this only works if the application is maximized or > normalized rather than fullscreen in fluxbox's terminology. and that > is the case for everything i'd need to capture. the only fullscreen > apps i have are video players, and idk what the point of fullscreen is > but with video players they seem to get fit to screen right then as > opposed to having the video extend off teh edge of the screen or be > tiny or whatever. i do not need to capture from vlc or mpv. > [although a super-fancy doug englebart demo type of pov might have me > grabbing a few minutes of video and capturing it and then speech to > text from the video and metadata would be captured but i am not > holding my breath or expecting that.] > > then rclick on that fluxbox bar drops down a fluxbox menu of highly > useful things, which i can add a line to in .fluxbox/.menu to add one. > usually shell commands. and also various fluxbox items like maximize > and close. and menus i never use courtesy of fluxbox and debian]. it > is copacetic. except for one rather annoying bug, which is that the > bar stays there if i select anything from that manu, so i have to move > pointer to the top again and then back to make it go away again. i > gave up trying to fix that bug, wish it could be fixed. but adding a > menu item is for me trivial. so that part is not part of the problem. > i just open .menu and cargo cult a line that says capture. > > > On 10/28/22, Max Nikulin wrote: >> On 29/10/2022 09:59, 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. >> >> I started with a small wrapper that checks if Emacs server is running >> and creates a new frame if it does not exist yet. So I avoided a pitfall >> with empty string instead of selection. I intentionally do not use >> :immediate-finish to inspect capture and to add some comment. >> >> Samuel wish to have minimal distraction: no sound, no popup window, >> Emacs window is not raised in front of current application, visual >> notification should disappear after some pause. >> >> That is why I believe that additional checks are required in such silent >> workflow to avoid missed data in notes. >> >> >> >> > > > -- > The Kafka Pandemic > > A blog about science, health, human rights, and misopathy: > https://thekafkapandemic.blogspot.com > -- The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com