From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id GPLJK6fDamcYMAEA62LTzQ:P1 (envelope-from ) for ; Tue, 24 Dec 2024 14:22:31 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id GPLJK6fDamcYMAEA62LTzQ (envelope-from ) for ; Tue, 24 Dec 2024 15:22:31 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=FjsEP2zC; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1735050151; 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=+KG6AM7EDu80BfyxrCqZgERjD7Nl9tnBjufmoq/NT0k=; b=F/wM+x/iCA0VBttOFTF6AXeTlyGW7Pmq+9gTo1Gk1xYoTibM7qAlMZldNZzZnecWe3EMWP mjjHeByyRrl82r9Rj+mbZXcu/VJesoRIu35gM4zXrMrmQZ/NGbL2dGK6pbuOEWEjGcoPR0 tlLK0CzZBD2jip0kfVfRfaBx0hgpUdDy5+60ABQJhX3a67l+g7AjOLXBz9/4m4JnSezIK9 0Dl6cUDFniTmixOgfK0XqsDen59nvohS46li2mNKzkVMfL/GdQTSkA0Av0SSX0PhDBgrJw K79aPmNaEYhbEJQD5B/e3BkAH5dBJCzJY3uuYDy2Cz8jtBLZFjdZDfqNQnD+BA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=FjsEP2zC; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1735050151; a=rsa-sha256; cv=none; b=p+DqhKjFEnPI6vNq6Ic48hNoztD+ulwsqlLfiDxe6wf9USPtvXLGgfc/Q8Wi5nri30NOu0 tZodZHLbve7IfnPv3jH/EKPU0zb/CwTKzWo+WN/LyL4n27ick7unbybwGgWlzx7CrD8rbi k2FDvlAAORYOKPGvi3173ffjPFGpOmdA35L8yFDMDiimuYbo5AdErXX5XJ+fPhXG0UCkdZ Dnh+SOE1i8Qk6BwIuF+qXbHOMlhlAgu5hEu+vV7iXScAMBGj73d0eSssWpP4wTzk5zVvkX P4MDD4M+RwnqkJU5FMGm9WqSu4fzAjxV0+hcPvULXpiuHwrWmOlS5h1Pp2pwqg== 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 65FD233B5B for ; Tue, 24 Dec 2024 15:22:31 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tQ5n8-0004u9-1I; Tue, 24 Dec 2024 09:21:46 -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 1tQ5n6-0004tr-K6 for emacs-orgmode@gnu.org; Tue, 24 Dec 2024 09:21:44 -0500 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tQ5n4-0005Ca-C9 for emacs-orgmode@gnu.org; Tue, 24 Dec 2024 09:21:44 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 3F154240103 for ; Tue, 24 Dec 2024 15:21:40 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1735050100; bh=Ur8Gds2X1bfoXs4oZshBpU2SwhqhElz4vjbWxJny/9k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=FjsEP2zCfbwUo+PU2QSbET+LYVTugl8vSPgbv4d3YQz8mJRWr2FbG+m7inJus7ZjY OrZBmsJWs0LFi1mEditFRB+fkX05c3CaslAdweEaeYwTa/CLB7+/10KKLGZM1iCWZy I9NMC4hKKeSjNaQnOBTCbrAbrXngTsln5ua/HjkQq/A8O5EmgzgYrRieHp6bXsClAD asj9/52Z+g/wKgfQdyXHf0A1sMtwr4COy/KNH4roC29bxerVWUdo7kQmbRJCCFunYC qO4jGfrbyI9/a1dFWb1zwCxNF1uFjkiu5AZlx/HvJLFojigrFE+ZYZYKXGJ6HGyBgP 0AXvBLHNUDG4Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4YHcX34fJPz6tw4; Tue, 24 Dec 2024 15:21:39 +0100 (CET) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] org-protocol: Add void() to bookmarklets In-Reply-To: References: <87pllx7219.fsf@gmail.com> <9aea6ebe-66a2-47d6-a7cc-a7ad9e8af284@gmail.com> <366e2a83-3703-40fd-b8eb-f5746a17864d@gmail.com> <878qsk68ma.fsf@gmail.com> <87frmf99dq.fsf@localhost> Date: Tue, 24 Dec 2024 14:23:11 +0000 Message-ID: <87ed1xgnxs.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=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 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -2.08 X-Spam-Score: -2.08 X-Migadu-Queue-Id: 65FD233B5B X-TUID: GRqOd0DnAPYz Max Nikulin writes: >> Another variant from reddit is >> >> javascript:location.href='org-protocol://store-link?'+new URLSearchParams({url:location.href, title:document.title}); void(0); > > If you think that ";void(0)" variant is less prone to errors then I may > update my patch. I have no idea if balanced void(...) parenthesis around > the whole expressions would cause more user mistakes. Otherwise both > variants are equivalent. Then, no need to change your variant. >>> Should ORG-NEWS be updated as well? >> >> Yes, I think. In announcement section. >> This is one of the cases when we want people to consider changing their >> usual configs. > > My idea is to fix existing examples in place, perhaps with a small > remark on update reason. Sure. > Maybe experienced users of bookmarklets are aware of the "void" trick > and provided examples were enough for them. The news are aiming at non-experienced users in this case. > I consider the change as a minor fix that does not deserves loud > announcement, especially taking into account that browsers discourages > protocol handlers launched on behalf of web pages nowadays. It is indeed minor. However, ORG-NEWS is not about minor or major, but about answering a question: "should some users update their configuration?" or "should some users consider changing the existing workflow?". In this case, it is a good idea for users of the previously suggested bookmarklet to update to the new version. This way, they will be less likely to meet breakage one day when they decide to upgrade Firefox. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at . Support Org development at , or support my work at