From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 oCUZF9yndWOBPgEAbAwnHQ (envelope-from ) for ; Thu, 17 Nov 2022 04:17:48 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id IJoQF9yndWOn8AAA9RJhRA (envelope-from ) for ; Thu, 17 Nov 2022 04:17:48 +0100 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 E170F2BA3C for ; Thu, 17 Nov 2022 04:17:47 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovVOR-0002cj-3q; Wed, 16 Nov 2022 22:16:47 -0500 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 1ovVOP-0002ac-72 for emacs-orgmode@gnu.org; Wed, 16 Nov 2022 22:16:45 -0500 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ovVOC-0002o7-Ta for emacs-orgmode@gnu.org; Wed, 16 Nov 2022 22:16:44 -0500 Received: by mail-lf1-x134.google.com with SMTP id g12so721617lfh.3 for ; Wed, 16 Nov 2022 19:16:22 -0800 (PST) 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=F9cT2wANWqRj+zwLOSBV/fHoW+2CWjm/wv6UPVhZxKE=; b=oBXHJVb6l/Or4YOVLtmVZvlGgohwIOFNia+dd7LUBZQrVqs7oM7iWNMAIZprgkNdfC VIL0KAQKvq3xR8JvqHIn/1El3GsVGRHLj9O4LRf7O6I+6+muYVwJHP1c67w8wAJyc4oW 5wDPr81pqu1sJNMXbxdeNnjsioRKe54TnzKGrwhIzkgPSs7R8j+lcab5hTsbLAhsIjH7 AnLFbPnU+wDBd+AYwPYNKz2r2DT3W8hJrVviJUxL/eedGKhSURlfXDSD6VPJHbcAUE/j iOocf6/NDg/LwSq4MnsfjV9LkVDyRyG/jHWcVAzIal/unmDyQoPF7D9wWT0pzpEiqtCh pzSg== 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=F9cT2wANWqRj+zwLOSBV/fHoW+2CWjm/wv6UPVhZxKE=; b=trOMDB9ZARQ8u5RlxcfhX7CzxppBdluFxuXQYF2Vkg8CCXavFPsE8jAMAIC5jq8LmV IXBoHXb+S+vo+GIXYHvO55LtC2O2jWGmcbWrKeNgqQmBoNwq54AaU4ZvU4oVVpBJXgJr 6Jofa+RV01RYiY5uHxZJgJlgvucdOvswvAB1qhMqqIMCpdD6vhF7n3paJpOCkPbC0CA6 ++SphoUhdCr9x2iXu6f0F0PjYGCD8lZgMLS82X5hoKY0sBDonA4K3y2YaQSG6YoJSyG4 aZ2HsHUwNiYmAhW4jSuVrXPn5c45UA+/cU4CAtprPsh2YaV/zjXke/xNfcGYYNE+/AZd NB+A== X-Gm-Message-State: ANoB5pl8OBgUj2huSXVMTexYZq4HkubLRC5jWviCYqngZQjlVsgCbVTv P2/K/4kSqMzhepK6dFuYnD0al1+g8KHELce/Fq8= X-Google-Smtp-Source: AA0mqf7ULwPlFiOMmQbDUHJwyL5p5dfcNBs7d/p7zyLyGEn7bSEp2E3Uj5ejmkycjDmCS2DRCi24NVtkM0ozG/utTfc= X-Received: by 2002:a19:4913:0:b0:4ab:faae:693b with SMTP id w19-20020a194913000000b004abfaae693bmr302175lfa.597.1668654980842; Wed, 16 Nov 2022 19:16:20 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a05:6520:4af1:b0:22a:e96a:7f9b with HTTP; Wed, 16 Nov 2022 19:16:19 -0800 (PST) In-Reply-To: References: <87tuw31iub.fsf@mm.st> <87r0zelo7e.fsf@posteo.net> <875yg7qiyb.fsf@localhost> <875yfj8nf7.fsf@localhost> <877czyguhp.fsf@localhost> From: Samuel Wales Date: Wed, 16 Nov 2022 20:16:19 -0700 Message-ID: Subject: Re: Debugging firefox extension (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::134; envelope-from=samologist@gmail.com; helo=mail-lf1-x134.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, 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: 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=1668655068; 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=F9cT2wANWqRj+zwLOSBV/fHoW+2CWjm/wv6UPVhZxKE=; b=MUf54qEWSr3PzQ+5JBEU3iIWq0FBwZpnhX0MqX8gZ0cMpmlI0lKFkytWlFmyrQ/iqg79UU URGqiYE2ovhqmSW0+Bs92JpMuD3VobpyWlAcJasZVliZsrXJ0v81mvmQozGaymqzi6LMl1 tSpezkqE/qb+So/6wHSeKvyP5iOj4pjNeflWPCSX3yQxqNw45ShtWOKYfDqsFCy/4e9c5z 2YP5g171Z6TrmfbeOyGlEo5AEW8Ag1HHZIR3zawNVb76F1PHI2bCX7J9AWgZ7bCVqhPy51 nKtRAxVtiM3Bk9AT+hIpikjMH/+lQwkUhgONm2rVxuYgJHkTaQao6MRzrZCMMA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668655068; a=rsa-sha256; cv=none; b=F+k8nWeyQ0ZHis3ScnIVrsTz+e+rsumUw53M5zDqB/XwgCNH3jyL/2WU3XuGIvUNyz1xXw ztFGjInCx1vAM09cQfZMrldcuOUu9blHw4jnJSPHu0x3XjHrC251Y9s2a8fAGwcscb5U9t EZ08gtq+SjQ5wKUZZ/aoyRUhJdoeMjDAL1jK2EDFa5GNeiWQEhZypWOYjdFbr/YacVA2NA RAvSxdKploAMajQIyJ5Q4zyXF5/YmvHLCPbVBLaKQyvy8lHmN4gmfCT4wS7b41YHcs+Dk0 RCyvHaxwEiVNJszzp4nSoqIPDaBf+S6b/qWbF50jcsRvQ0d4iDGD9oGK6q6Maw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=oBXHJVb6; 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: -4.04 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=oBXHJVb6; 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: E170F2BA3C X-Spam-Score: -4.04 X-Migadu-Scanner: scn1.migadu.com X-TUID: i+zh/b23hQez more below. On 11/16/22, Max Nikulin wrote: > Since recently we were discussing desktop notifications and temporary > rising emacs window, I am unsure if capture indication is related to the > firefox extension, notification daemon, or emacs. my brain is not connecting the first part of your sentence with the second part [this has to do with my brain, not your english], but i have been assuming that it is the firefox org-capture extension saying "i sent the request". in other words, you click unicorn, it does some org-protocol call, and then it flashes that nice but misleading message. misleading because it only indicates sending, not [desirable] emacs receipt or [perhaps overkill?] emacs handling. > >> this is with or without selecting any text. >> >> could a kind soul remind me how to debug this again? > > Max Nikulin. Re: org-capture firefox extension broken [silently] Sat, 11 > Jun 2022 09:30:11 +0700. > https://list.orgmode.org/t80unm$7ud$1@ciao.gmane.io and the earlier > message https://list.orgmode.org/t7vdnm$ddo$1@ciao.gmane.io oh /very nice/ thanks. it is going to take me a long time to digest that but i want to start with trying "have you"'s. > > Launching org-protocol handler from browser is unreliable, there is > almost no way to detect an error. One indirect technique relies on > switching focus from firefox to another application, but it is not > applicable for your workflow. do you mean like popping up emacs frame? which would indeed undesirably require me to move ff to front again? but would at least prove that the capture worked as i can inspect the new subentry in my xyzzy-remember entry? at this point, ff capture is so needed for me that i'd consider something like the following: pop up emacs frame for a fraction of a second, which then, in elisp, pops back down again. it might be possible to make it tolerabie [visual overstimulation, cognitive burden] if the frame is full screen on width but only a few lines on height. i would have to try it to be sure but it seems worth trying. however, idk if it is possible in elisp. i think i can maybe figure out the frame dimensions part if there is a place to put it in capture template. > > More robust approach is a native messaging application that is a bridge > between sandboxed firefox extension and emacs. It makes setup more > complicated however and no simple org-protocol extensions use this > approach. not sure i understand what native or sandboxed mean here or why, and whether org-protocol is needed or if you are saying that there might be a non-simple-to-install extension for it or so. > > > > -- The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com