From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 2K5HGEgJdmM/igAAbAwnHQ (envelope-from ) for ; Thu, 17 Nov 2022 11:13:28 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id cLQ7GEgJdmO5vgAAauVa8A (envelope-from ) for ; Thu, 17 Nov 2022 11:13:28 +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 2AC2F1D7F1 for ; Thu, 17 Nov 2022 11:13:28 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovbs4-000554-BY; Thu, 17 Nov 2022 05:11:48 -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 1ovbs2-00051M-M5 for emacs-orgmode@gnu.org; Thu, 17 Nov 2022 05:11:46 -0500 Received: from stw1.rcdrun.com ([217.170.207.13]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovbs0-0006yc-V7 for emacs-orgmode@gnu.org; Thu, 17 Nov 2022 05:11:46 -0500 Received: from localhost ([::ffff:197.239.35.241]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 00000000000F6133.00000000637608E0.00000F6D; Thu, 17 Nov 2022 03:11:43 -0700 Date: Thu, 17 Nov 2022 12:42:10 +0300 From: Jean Louis To: Samuel Wales Cc: Max Nikulin , emacs-orgmode@gnu.org Subject: Re: Debugging firefox extension (Re: idea for capture anywhere in x) Message-ID: Mail-Followup-To: Samuel Wales , Max Nikulin , emacs-orgmode@gnu.org References: <875yg7qiyb.fsf@localhost> <875yfj8nf7.fsf@localhost> <877czyguhp.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.2.7+37 (a90f69b) (2022-09-02) Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-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=1668680008; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=2nNUqpJiOII5HELo9q+/NdtI8hNdBLcMqTHyCFOQNoQ=; b=GZ8qfM5WiC0kxWmlONlvFZaYp1fjPFgoj0W12xM2Ls09NSz75EiqJhnEcNiE5uBN1N+pXM E2B5LJrdnE4iA87RbKMsrytqxmVn4K+RGftALCkOWR6xSIWZPRz475cZnNlcXR5SIgupPr DbcbyTRwiCPx5A8hRblw7zfuYei5b2gPZmTHdhSH1oVPqp6P1niUVTpN4AuA7O1D7SqYFi QU8nl6wY2jtjs3bFHfik2kDVKd9te7P4/Lz821XEUIXb2kI9JVE+qW2gDAPhwor/7EyOxT RBNm4inZZOl4iUWdfO5i2bmPrrc1V9TyLIszPSZYoIHPJM7j7jNNtLEVuvUgWw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668680008; a=rsa-sha256; cv=none; b=SFnFUo6PZfhMLK60nURuu5bNh/Urr8nd0GhONDzPx/j37sB0KJuT7TclYqXD9hXo9ifPJm Tg7I9VoG1bzB8QHhqkLdzXJzCNqNXXIWfEBY8PFJq6VoFW0FioI6VKqSVY09SypByv8OgI FVdpNeNhjCb18mPebub5Iob1A6ZZ989hdWCSVNTvVio/Hui1kE/ffAI3dX91PY3XsJFdfw Mup6ihvLrWG+CoVRDGojtdT/Xj2J4r58qqdiZjl/MZt7VW1Br0urSWqrCAAceiT9pe4VAS GJIc1GDB83hzP72N94BVx0jQ3m9sPGzDkSUC7k/4c1dVGqQWiWvSaR6GR7FWaw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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: -2.33 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: 2AC2F1D7F1 X-Spam-Score: -2.33 X-Migadu-Scanner: scn1.migadu.com X-TUID: yJqyBXwulTO4 * Samuel Wales [2022-11-17 06:19]: > in other words, you click unicorn, it does some org-protocol call, and > then it flashes that nice but misleading message. That is why I am using Emacs to tell me audibly that bookmark was recorded. Forgive me for not using really Org to record what org-protocol extension does, but this example may help people by principle to people to get better notification: (defun hyperscope-org-protocol-store-link (query) (if (hyperscope-user-www-set) (let* ((splitparts (org-protocol-parse-parameters query t)) (uri (org-protocol-sanitize-uri (plist-get splitparts :url))) (title (plist-get splitparts :title)) (hlink-exist (hyperscope-link-exists-p uri 2))) (if hlink-exist (progn (rcd-warning-message "Link: %s already exists." uri) (rcd-speak "Link exists already") nil) (let* ((parent (hyperscope-user-www-set)) (id (hyperscope-add-generic title uri nil 2 nil parent))) (if id (progn (message "Added Hyperlink: %s to Hyperscope ID: %s" title id) (hyperscope-update-tokens id) (rcd-speak "Done") ;; speaking "Done" on my loud speaker tells me it was ;; made well nil) (progn (message "Could not insert: %s" query) (rcd-speak "Did not work") nil))))) (rcd-warning-message "Define WWW set for user `%s' in table `usersdefaults'" (rcd-db-current-user)))) -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/